Lines Matching refs:pkey_ctx
208 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
484 if (!EVP_PKEY_CTX_set_rsa_oaep_md(pkey_ctx, digest_algorithm_)) { in SetOaepDigestIfRequired()
489 if (!EVP_PKEY_CTX_set_rsa_mgf1_md(pkey_ctx, mgf_digest_algorithm_)) { in SetOaepDigestIfRequired()