Lines Matching refs:pkey_ctx
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
496 if (!EVP_PKEY_CTX_set_rsa_oaep_md(pkey_ctx, digest_algorithm_)) in SetOaepDigestIfRequired()
500 if (!EVP_PKEY_CTX_set_rsa_mgf1_md(pkey_ctx, EVP_sha1())) in SetOaepDigestIfRequired()