Searched refs:pkey_ctx (Results 1 – 4 of 4) sorted by relevance
/system/keymaster/km_openssl/ |
D | rsa_operation.cpp | 177 keymaster_error_t RsaOperation::SetRsaPaddingInEvpContext(EVP_PKEY_CTX* pkey_ctx, bool signing) { in SetRsaPaddingInEvpContext() argument 183 if (EVP_PKEY_CTX_set_rsa_padding(pkey_ctx, openssl_padding) <= 0) in SetRsaPaddingInEvpContext() 190 if (EVP_PKEY_CTX_set_rsa_pss_saltlen(pkey_ctx, EVP_MD_size(digest_algorithm_)) <= 0) in SetRsaPaddingInEvpContext() 275 EVP_PKEY_CTX* pkey_ctx; in Begin() local 276 if (EVP_DigestSignInit(&digest_ctx_, &pkey_ctx, digest_algorithm_, nullptr /* engine */, in Begin() 279 return SetRsaPaddingInEvpContext(pkey_ctx, true /* signing */); in Begin() 399 EVP_PKEY_CTX* pkey_ctx; in Begin() local 400 if (EVP_DigestVerifyInit(&digest_ctx_, &pkey_ctx, digest_algorithm_, nullptr, rsa_key_) != 1) in Begin() 402 return SetRsaPaddingInEvpContext(pkey_ctx, false /* signing */); in Begin() 491 keymaster_error_t RsaCryptOperation::SetOaepDigestIfRequired(EVP_PKEY_CTX* pkey_ctx) { in SetOaepDigestIfRequired() argument [all …]
|
D | ecdsa_operation.cpp | 118 EVP_PKEY_CTX* pkey_ctx; in Begin() local 119 if (EVP_DigestSignInit(&digest_ctx_, &pkey_ctx, digest_algorithm_, nullptr /* engine */, in Begin() 187 EVP_PKEY_CTX* pkey_ctx; in Begin() local 188 if (EVP_DigestVerifyInit(&digest_ctx_, &pkey_ctx, digest_algorithm_, nullptr /* engine */, in Begin()
|
/system/keymaster/include/keymaster/km_openssl/ |
D | rsa_operation.h | 58 keymaster_error_t SetRsaPaddingInEvpContext(EVP_PKEY_CTX* pkey_ctx, bool signing); 146 keymaster_error_t SetOaepDigestIfRequired(EVP_PKEY_CTX* pkey_ctx);
|
/system/keymaster/tests/ |
D | android_keymaster_test.cpp | 1112 EVP_PKEY_CTX* pkey_ctx; in TEST_P() local 1113 EXPECT_EQ(1, EVP_DigestVerifyInit(&digest_ctx, &pkey_ctx, EVP_sha224(), nullptr /* engine */, in TEST_P() 1115 EXPECT_EQ(1, EVP_PKEY_CTX_set_rsa_padding(pkey_ctx, RSA_PKCS1_PSS_PADDING)); in TEST_P() 1207 EVP_PKEY_CTX* pkey_ctx; in TEST_P() local 1208 EXPECT_EQ(1, EVP_DigestVerifyInit(&digest_ctx, &pkey_ctx, EVP_sha224(), nullptr /* engine */, in TEST_P()
|