Searched refs:digest_algorithm_ (Results 1 – 4 of 4) sorted by relevance
/system/keymaster/km_openssl/ |
D | ecdsa_operation.cpp | 70 digest_algorithm_ = EVP_sha1(); in InitDigest() 73 digest_algorithm_ = EVP_sha224(); in InitDigest() 76 digest_algorithm_ = EVP_sha256(); in InitDigest() 79 digest_algorithm_ = EVP_sha384(); in InitDigest() 82 digest_algorithm_ = EVP_sha512(); in InitDigest() 116 if (EVP_DigestSignInit(&digest_ctx_, &pkey_ctx, digest_algorithm_, nullptr /* engine */, in Begin() 177 if (EVP_DigestVerifyInit(&digest_ctx_, &pkey_ctx, digest_algorithm_, nullptr /* engine */, in Begin()
|
D | rsa_operation.cpp | 219 assert(digest_algorithm_); in SetRsaPaddingInEvpContext() 220 if (EVP_PKEY_CTX_set_rsa_pss_saltlen(pkey_ctx, EVP_MD_size(digest_algorithm_)) <= 0) in SetRsaPaddingInEvpContext() 232 digest_algorithm_ = KmDigestToEvpDigest(digest_); in InitDigest() 233 if (digest_algorithm_ == nullptr) { in InitDigest() 262 if (EVP_MD_size(digest_algorithm_) * 2 + kPssOverhead > (size_t)EVP_PKEY_size(rsa_key_)) { in GetOpensslPadding() 265 EVP_MD_size(digest_algorithm_), EVP_PKEY_size(rsa_key_)); in GetOpensslPadding() 283 if (EVP_DigestSignInit(&digest_ctx_, &pkey_ctx, digest_algorithm_, nullptr /* engine */, in Begin() 395 if (EVP_DigestVerifyInit(&digest_ctx_, &pkey_ctx, digest_algorithm_, nullptr, rsa_key_) != 1) in Begin() 483 assert(digest_algorithm_ != nullptr); in SetOaepDigestIfRequired() 484 if (!EVP_PKEY_CTX_set_rsa_oaep_md(pkey_ctx, digest_algorithm_)) { in SetOaepDigestIfRequired()
|
/system/keymaster/include/keymaster/km_openssl/ |
D | ecdsa_operation.h | 35 digest_algorithm_(nullptr), ecdsa_key_(key) { in EcdsaOperation() 47 const EVP_MD* digest_algorithm_; variable
|
D | rsa_operation.h | 40 padding_(padding), digest_(digest), digest_algorithm_(nullptr) {} in RsaOperation() 65 const EVP_MD* digest_algorithm_; variable
|