Home
last modified time | relevance | path

Searched refs:evp_ctx (Results 1 – 4 of 4) sorted by relevance

/freebsd/crypto/openssl/crypto/evp/
H A Dlegacy_sha.c72 static int shake_ctrl(EVP_MD_CTX *evp_ctx, int cmd, int p1, void *p2) in shake_ctrl() argument
76 if (evp_ctx == NULL) in shake_ctrl()
78 ctx = evp_ctx->md_data; in shake_ctrl()
/freebsd/crypto/openssl/crypto/crmf/
H A Dcrmf_lib.c614 EVP_CIPHER_CTX *evp_ctx = NULL; /* context for symmetric encryption */ in OSSL_CRMF_ENCRYPTEDVALUE_get1_encCert() local
688 || (evp_ctx = EVP_CIPHER_CTX_new()) == NULL) in OSSL_CRMF_ENCRYPTEDVALUE_get1_encCert()
690 EVP_CIPHER_CTX_set_padding(evp_ctx, 0); in OSSL_CRMF_ENCRYPTEDVALUE_get1_encCert()
692 if (!EVP_DecryptInit(evp_ctx, cipher, ek, iv) in OSSL_CRMF_ENCRYPTEDVALUE_get1_encCert()
693 || !EVP_DecryptUpdate(evp_ctx, outbuf, &outlen, in OSSL_CRMF_ENCRYPTEDVALUE_get1_encCert()
696 || !EVP_DecryptFinal(evp_ctx, outbuf + outlen, &n)) { in OSSL_CRMF_ENCRYPTEDVALUE_get1_encCert()
710 EVP_CIPHER_CTX_free(evp_ctx); in OSSL_CRMF_ENCRYPTEDVALUE_get1_encCert()
/freebsd/crypto/openssl/crypto/pkcs7/
H A Dpk7_doit.c405 EVP_CIPHER_CTX *evp_ctx = NULL; in PKCS7_dataDecode() local
595 evp_ctx = NULL; in PKCS7_dataDecode()
596 BIO_get_cipher_ctx(etmp, &evp_ctx); in PKCS7_dataDecode()
597 if (EVP_CipherInit_ex(evp_ctx, cipher, NULL, NULL, NULL, 0) <= 0) in PKCS7_dataDecode()
599 if (EVP_CIPHER_asn1_to_param(evp_ctx, enc_alg->parameter) <= 0) in PKCS7_dataDecode()
602 len = EVP_CIPHER_CTX_get_key_length(evp_ctx); in PKCS7_dataDecode()
609 if (EVP_CIPHER_CTX_rand_key(evp_ctx, tkey) <= 0) in PKCS7_dataDecode()
617 if (eklen != EVP_CIPHER_CTX_get_key_length(evp_ctx)) { in PKCS7_dataDecode()
623 if (EVP_CIPHER_CTX_set_key_length(evp_ctx, eklen) <= 0) { in PKCS7_dataDecode()
633 if (EVP_CipherInit_ex(evp_ctx, NULL, NULL, ek, NULL, 0) <= 0) in PKCS7_dataDecode()
/freebsd/contrib/unbound/util/
H A Dnet_help.c118 unsigned char* iv, EVP_CIPHER_CTX *evp_ctx,