Home
last modified time | relevance | path

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

/system/keymaster/km_openssl/
Drsa_operation.cpp208 keymaster_error_t RsaOperation::SetRsaPaddingInEvpContext(EVP_PKEY_CTX* pkey_ctx, bool signing) { in SetRsaPaddingInEvpContext() argument
213 if (EVP_PKEY_CTX_set_rsa_padding(pkey_ctx, openssl_padding) <= 0) in SetRsaPaddingInEvpContext()
220 if (EVP_PKEY_CTX_set_rsa_pss_saltlen(pkey_ctx, EVP_MD_size(digest_algorithm_)) <= 0) in SetRsaPaddingInEvpContext()
282 EVP_PKEY_CTX* pkey_ctx; in Begin() local
283 if (EVP_DigestSignInit(&digest_ctx_, &pkey_ctx, digest_algorithm_, nullptr /* engine */, in Begin()
286 return SetRsaPaddingInEvpContext(pkey_ctx, true /* signing */); in Begin()
394 EVP_PKEY_CTX* pkey_ctx; in Begin() local
395 if (EVP_DigestVerifyInit(&digest_ctx_, &pkey_ctx, digest_algorithm_, nullptr, rsa_key_) != 1) in Begin()
397 return SetRsaPaddingInEvpContext(pkey_ctx, false /* signing */); in Begin()
480 keymaster_error_t RsaCryptOperation::SetOaepDigestIfRequired(EVP_PKEY_CTX* pkey_ctx) { in SetOaepDigestIfRequired() argument
[all …]
Decdsa_operation.cpp115 EVP_PKEY_CTX* pkey_ctx; in Begin() local
116 if (EVP_DigestSignInit(&digest_ctx_, &pkey_ctx, digest_algorithm_, nullptr /* engine */, in Begin()
176 EVP_PKEY_CTX* pkey_ctx; in Begin() local
177 if (EVP_DigestVerifyInit(&digest_ctx_, &pkey_ctx, digest_algorithm_, nullptr /* engine */, in Begin()
/system/security/keystore2/src/crypto/tests/
Dcertificate_utils_test.cpp153 EVP_PKEY_CTX_Ptr pkey_ctx(EVP_PKEY_CTX_new_id(EVP_PKEY_EC, NULL)); in TEST_P() local
154 ASSERT_TRUE((bool)pkey_ctx); in TEST_P()
155 ASSERT_TRUE(EVP_PKEY_keygen_init(pkey_ctx.get())); in TEST_P()
156 ASSERT_TRUE(EVP_PKEY_CTX_set_ec_paramgen_curve_nid(pkey_ctx.get(), curve_nid)); in TEST_P()
159 ASSERT_TRUE(EVP_PKEY_keygen(pkey_ctx.get(), &pkey_ptr)); in TEST_P()
/system/keymaster/include/keymaster/km_openssl/
Drsa_operation.h58 keymaster_error_t SetRsaPaddingInEvpContext(EVP_PKEY_CTX* pkey_ctx, bool signing);
151 keymaster_error_t SetOaepDigestIfRequired(EVP_PKEY_CTX* pkey_ctx);
/system/security/keystore2/src/km_compat/
Dkm_compat.cpp1199 keystore::EVP_PKEY_CTX_Ptr pkey_ctx(EVP_PKEY_CTX_new_id(EVP_PKEY_EC, NULL)); in getCertificate() local
1200 EVP_PKEY_keygen_init(pkey_ctx.get()); in getCertificate()
1201 EVP_PKEY_CTX_set_ec_paramgen_curve_nid(pkey_ctx.get(), NID_X9_62_prime256v1); in getCertificate()
1203 EVP_PKEY_keygen(pkey_ctx.get(), &pkey_ptr); in getCertificate()