Searched refs:evp_ctx (Results 1 – 3 of 3) sorted by relevance
/openssl/crypto/evp/ |
H A D | legacy_sha.c | 73 static int shake_ctrl(EVP_MD_CTX *evp_ctx, int cmd, int p1, void *p2) in shake_ctrl() argument 77 if (evp_ctx == NULL) in shake_ctrl() 79 ctx = evp_ctx->md_data; in shake_ctrl()
|
/openssl/crypto/crmf/ |
H A D | crmf_lib.c | 628 EVP_CIPHER_CTX *evp_ctx = NULL; /* context for symmetric encryption */ in OSSL_CRMF_ENCRYPTEDVALUE_get1_encCert() local 686 || (evp_ctx = EVP_CIPHER_CTX_new()) == NULL) in OSSL_CRMF_ENCRYPTEDVALUE_get1_encCert() 688 EVP_CIPHER_CTX_set_padding(evp_ctx, 0); in OSSL_CRMF_ENCRYPTEDVALUE_get1_encCert() 690 if (!EVP_DecryptInit(evp_ctx, cipher, ek, iv) in OSSL_CRMF_ENCRYPTEDVALUE_get1_encCert() 691 || !EVP_DecryptUpdate(evp_ctx, outbuf, &outlen, in OSSL_CRMF_ENCRYPTEDVALUE_get1_encCert() 694 || !EVP_DecryptFinal(evp_ctx, outbuf + outlen, &n)) { in OSSL_CRMF_ENCRYPTEDVALUE_get1_encCert() 708 EVP_CIPHER_CTX_free(evp_ctx); in OSSL_CRMF_ENCRYPTEDVALUE_get1_encCert()
|
/openssl/crypto/pkcs7/ |
H A D | pk7_doit.c | 446 EVP_CIPHER_CTX *evp_ctx = NULL; in PKCS7_dataDecode() local 636 evp_ctx = NULL; in PKCS7_dataDecode() 637 BIO_get_cipher_ctx(etmp, &evp_ctx); in PKCS7_dataDecode() 638 if (EVP_CipherInit_ex(evp_ctx, cipher, NULL, NULL, NULL, 0) <= 0) in PKCS7_dataDecode() 640 if (EVP_CIPHER_asn1_to_param(evp_ctx, enc_alg->parameter) <= 0) in PKCS7_dataDecode() 643 len = EVP_CIPHER_CTX_get_key_length(evp_ctx); in PKCS7_dataDecode() 650 if (EVP_CIPHER_CTX_rand_key(evp_ctx, tkey) <= 0) in PKCS7_dataDecode() 658 if (eklen != EVP_CIPHER_CTX_get_key_length(evp_ctx)) { in PKCS7_dataDecode() 664 if (EVP_CIPHER_CTX_set_key_length(evp_ctx, eklen) <= 0) { in PKCS7_dataDecode() 674 if (EVP_CipherInit_ex(evp_ctx, NULL, NULL, ek, NULL, 0) <= 0) in PKCS7_dataDecode()
|
Completed in 20 milliseconds