Searched refs:pkeyCtx (Results 1 – 4 of 4) sorted by relevance
/base/security/crypto_framework/plugin/openssl_plugin/crypto_operation/signature/src/ |
D | dsa_openssl.c | 37 EVP_PKEY_CTX *pkeyCtx; member 49 EVP_PKEY_CTX *pkeyCtx; member 138 if (impl->pkeyCtx != NULL) { in DestroyDsaSign() 139 Openssl_EVP_PKEY_CTX_free(impl->pkeyCtx); in DestroyDsaSign() 140 impl->pkeyCtx = NULL; in DestroyDsaSign() 158 if (impl->pkeyCtx != NULL) { in DestroyDsaVerify() 159 Openssl_EVP_PKEY_CTX_free(impl->pkeyCtx); in DestroyDsaVerify() 160 impl->pkeyCtx = NULL; in DestroyDsaVerify() 219 impl->pkeyCtx = Openssl_EVP_PKEY_CTX_new(pKey, NULL); in EngineDsaSignWithoutDigestInit() 220 if (impl->pkeyCtx == NULL) { in EngineDsaSignWithoutDigestInit() [all …]
|
/base/security/appverify/interfaces/innerkits/appverify/src/util/ |
D | hap_verify_openssl_utils.cpp | 383 EVP_PKEY_CTX* pkeyCtx = EVP_PKEY_CTX_new(pkey, nullptr); in VerifyShaWithRsaPss() local 384 if (pkeyCtx == nullptr) { in VerifyShaWithRsaPss() 389 if (EVP_PKEY_verify_init(pkeyCtx) <= 0) { in VerifyShaWithRsaPss() 392 EVP_PKEY_CTX_free(pkeyCtx); in VerifyShaWithRsaPss() 397 EVP_PKEY_CTX_free(pkeyCtx); in VerifyShaWithRsaPss() 401 if ((isPss && EVP_PKEY_CTX_set_rsa_padding(pkeyCtx, RSA_PKCS1_PSS_PADDING) <= 0) || in VerifyShaWithRsaPss() 402 (EVP_PKEY_CTX_set_signature_md(pkeyCtx, EVP_get_digestbynid(mdType)) <= 0)) { in VerifyShaWithRsaPss() 405 EVP_PKEY_CTX_free(pkeyCtx); in VerifyShaWithRsaPss() 408 …if (EVP_PKEY_verify(pkeyCtx, signInfo->enc_digest->data, signInfo->enc_digest->length, digest, dig… in VerifyShaWithRsaPss() 411 EVP_PKEY_CTX_free(pkeyCtx); in VerifyShaWithRsaPss() [all …]
|
/base/security/crypto_framework/plugin/openssl_plugin/key/asy_key_generator/src/ |
D | dsa_asy_key_generator_openssl.c | 41 static void FreeCtx(EVP_PKEY_CTX *paramsCtx, EVP_PKEY *paramsPkey, EVP_PKEY_CTX *pkeyCtx) in FreeCtx() argument 49 if (pkeyCtx != NULL) { in FreeCtx() 50 Openssl_EVP_PKEY_CTX_free(pkeyCtx); in FreeCtx() 355 EVP_PKEY_CTX *pkeyCtx = NULL; in GenerateDsaEvpKey() local 379 pkeyCtx = Openssl_EVP_PKEY_CTX_new(paramsPkey, NULL); in GenerateDsaEvpKey() 380 if (pkeyCtx == NULL) { in GenerateDsaEvpKey() 385 if (Openssl_EVP_PKEY_keygen_init(pkeyCtx) != HCF_OPENSSL_SUCCESS) { in GenerateDsaEvpKey() 390 if (Openssl_EVP_PKEY_keygen(pkeyCtx, ppkey) != HCF_OPENSSL_SUCCESS) { in GenerateDsaEvpKey() 396 FreeCtx(paramsCtx, paramsPkey, pkeyCtx); in GenerateDsaEvpKey()
|
/base/update/updater/services/package/pkg_verify/ |
D | openssl_util.cpp | 169 EVP_PKEY_CTX *pkeyCtx = nullptr; in VerifyDigestByPubKey() local 170 if (EVP_DigestVerifyInit(mdCtx, &pkeyCtx, EVP_get_digestbynid(nid), nullptr, pubKey) != 1) { in VerifyDigestByPubKey()
|