Home
last modified time | relevance | path

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

/netbsd-src/crypto/external/bsd/openssl.old/dist/crypto/kdf/
H A Dtls1_prf.c181 EVP_MD_CTX *ctx = NULL, *ctx_tmp = NULL, *ctx_init = NULL; in tls1_prf_P_hash() local
192 ctx_tmp = EVP_MD_CTX_new(); in tls1_prf_P_hash()
194 if (ctx == NULL || ctx_tmp == NULL || ctx_init == NULL) in tls1_prf_P_hash()
215 if (olen > (size_t)chunk && !EVP_MD_CTX_copy_ex(ctx_tmp, ctx)) in tls1_prf_P_hash()
227 if (!EVP_DigestSignFinal(ctx_tmp, A1, &A1_len)) in tls1_prf_P_hash()
241 EVP_MD_CTX_free(ctx_tmp); in tls1_prf_P_hash()
/netbsd-src/crypto/external/bsd/openssl/dist/test/
H A Dhmactest.c256 EVP_MD_CTX *ctx_tmp = NULL; in test_hmac_copy_uninited() local
263 || !TEST_ptr(ctx_tmp = EVP_MD_CTX_new()) in test_hmac_copy_uninited()
264 || !TEST_true(EVP_MD_CTX_copy(ctx_tmp, ctx))) in test_hmac_copy_uninited()
267 ctx = ctx_tmp; in test_hmac_copy_uninited()
268 ctx_tmp = NULL; in test_hmac_copy_uninited()
275 EVP_MD_CTX_free(ctx_tmp); in test_hmac_copy_uninited()
/netbsd-src/crypto/external/bsd/openssl.old/dist/crypto/pkcs7/
H A Dpk7_doit.c651 EVP_MD_CTX *mdc, *ctx_tmp; in PKCS7_dataFinal() local
666 ctx_tmp = EVP_MD_CTX_new(); in PKCS7_dataFinal()
667 if (ctx_tmp == NULL) { in PKCS7_dataFinal()
748 if (!EVP_MD_CTX_copy_ex(ctx_tmp, mdc)) in PKCS7_dataFinal()
758 if (!do_pkcs7_signed_attrib(si, ctx_tmp)) in PKCS7_dataFinal()
768 if (!EVP_SignFinal(ctx_tmp, abuf, &abuflen, si->pkey)) { in PKCS7_dataFinal()
815 EVP_MD_CTX_free(ctx_tmp); in PKCS7_dataFinal()