Home
last modified time | relevance | path

Searched refs:pkctx (Results 1 – 3 of 3) sorted by relevance

/external/boringssl/src/crypto/evp/
Dsign.c83 EVP_PKEY_CTX *pkctx = NULL; in EVP_SignFinal() local
94 pkctx = EVP_PKEY_CTX_new(pkey, NULL); in EVP_SignFinal()
95 if (!pkctx || !EVP_PKEY_sign_init(pkctx) || in EVP_SignFinal()
96 !EVP_PKEY_CTX_set_signature_md(pkctx, ctx->digest) || in EVP_SignFinal()
97 !EVP_PKEY_sign(pkctx, sig, &sig_len, m, m_len)) { in EVP_SignFinal()
104 if (pkctx) { in EVP_SignFinal()
105 EVP_PKEY_CTX_free(pkctx); in EVP_SignFinal()
129 EVP_PKEY_CTX *pkctx = NULL; in EVP_VerifyFinal() local
139 pkctx = EVP_PKEY_CTX_new(pkey, NULL); in EVP_VerifyFinal()
140 if (!pkctx || in EVP_VerifyFinal()
[all …]
/external/rust/crates/quiche/deps/boringssl/src/crypto/evp/
Dsign.c83 EVP_PKEY_CTX *pkctx = NULL; in EVP_SignFinal() local
94 pkctx = EVP_PKEY_CTX_new(pkey, NULL); in EVP_SignFinal()
95 if (!pkctx || !EVP_PKEY_sign_init(pkctx) || in EVP_SignFinal()
96 !EVP_PKEY_CTX_set_signature_md(pkctx, ctx->digest) || in EVP_SignFinal()
97 !EVP_PKEY_sign(pkctx, sig, &sig_len, m, m_len)) { in EVP_SignFinal()
104 if (pkctx) { in EVP_SignFinal()
105 EVP_PKEY_CTX_free(pkctx); in EVP_SignFinal()
129 EVP_PKEY_CTX *pkctx = NULL; in EVP_VerifyFinal() local
139 pkctx = EVP_PKEY_CTX_new(pkey, NULL); in EVP_VerifyFinal()
140 if (!pkctx || in EVP_VerifyFinal()
[all …]
/external/wpa_supplicant_8/src/crypto/
Dcrypto_openssl.c2279 EVP_PKEY_CTX *pkctx; in crypto_ec_key_sign() local
2288 pkctx = EVP_PKEY_CTX_new(key->pkey, NULL); in crypto_ec_key_sign()
2289 if (!pkctx || in crypto_ec_key_sign()
2290 EVP_PKEY_sign_init(pkctx) <= 0 || in crypto_ec_key_sign()
2291 EVP_PKEY_sign(pkctx, wpabuf_put(sig_der, 0), &sig_len, in crypto_ec_key_sign()
2299 EVP_PKEY_CTX_free(pkctx); in crypto_ec_key_sign()
2307 EVP_PKEY_CTX *pkctx; in crypto_ec_key_verify_signature() local
2310 pkctx = EVP_PKEY_CTX_new(key->pkey, NULL); in crypto_ec_key_verify_signature()
2311 if (!pkctx || EVP_PKEY_verify_init(pkctx) <= 0) { in crypto_ec_key_verify_signature()
2312 EVP_PKEY_CTX_free(pkctx); in crypto_ec_key_verify_signature()
[all …]