Home
last modified time | relevance | path

Searched refs:pkey_ctx (Results 1 – 4 of 4) sorted by relevance

/system/keymaster/
Drsa_operation.cpp175 keymaster_error_t RsaOperation::SetRsaPaddingInEvpContext(EVP_PKEY_CTX* pkey_ctx, bool signing) { in SetRsaPaddingInEvpContext() argument
181 if (EVP_PKEY_CTX_set_rsa_padding(pkey_ctx, openssl_padding) <= 0) in SetRsaPaddingInEvpContext()
188 if (EVP_PKEY_CTX_set_rsa_pss_saltlen(pkey_ctx, EVP_MD_size(digest_algorithm_)) <= 0) in SetRsaPaddingInEvpContext()
271 EVP_PKEY_CTX* pkey_ctx; in Begin() local
272 if (EVP_DigestSignInit(&digest_ctx_, &pkey_ctx, digest_algorithm_, nullptr /* engine */, in Begin()
275 return SetRsaPaddingInEvpContext(pkey_ctx, true /* signing */); in Begin()
395 EVP_PKEY_CTX* pkey_ctx; in Begin() local
396 if (EVP_DigestVerifyInit(&digest_ctx_, &pkey_ctx, digest_algorithm_, NULL, rsa_key_) != 1) in Begin()
398 return SetRsaPaddingInEvpContext(pkey_ctx, false /* signing */); in Begin()
487 keymaster_error_t RsaCryptOperation::SetOaepDigestIfRequired(EVP_PKEY_CTX* pkey_ctx) { in SetOaepDigestIfRequired() argument
[all …]
Decdsa_operation.cpp118 EVP_PKEY_CTX* pkey_ctx; in Begin() local
119 if (EVP_DigestSignInit(&digest_ctx_, &pkey_ctx, digest_algorithm_, nullptr /* engine */, in Begin()
183 EVP_PKEY_CTX* pkey_ctx; in Begin() local
184 if (EVP_DigestVerifyInit(&digest_ctx_, &pkey_ctx, digest_algorithm_, nullptr /* engine */, in Begin()
Drsa_operation.h57 keymaster_error_t SetRsaPaddingInEvpContext(EVP_PKEY_CTX* pkey_ctx, bool signing);
139 keymaster_error_t SetOaepDigestIfRequired(EVP_PKEY_CTX* pkey_ctx);
Dandroid_keymaster_test.cpp1161 EVP_PKEY_CTX* pkey_ctx; in TEST_P() local
1162 EXPECT_EQ(1, EVP_DigestVerifyInit(&digest_ctx, &pkey_ctx, EVP_sha224(), nullptr /* engine */, in TEST_P()
1164 EXPECT_EQ(1, EVP_PKEY_CTX_set_rsa_padding(pkey_ctx, RSA_PKCS1_PSS_PADDING)); in TEST_P()
1256 EVP_PKEY_CTX* pkey_ctx; in TEST_P() local
1257 EXPECT_EQ(1, EVP_DigestVerifyInit(&digest_ctx, &pkey_ctx, EVP_sha224(), nullptr /* engine */, in TEST_P()