Searched refs:kekctx (Results 1 – 3 of 3) sorted by relevance
/openssl/crypto/cms/ |
H A D | cms_pwri.c | 314 EVP_CIPHER_CTX *kekctx = NULL; in ossl_cms_RecipientInfo_pwri_crypt() local 353 kekctx = EVP_CIPHER_CTX_new(); in ossl_cms_RecipientInfo_pwri_crypt() 354 if (kekctx == NULL) { in ossl_cms_RecipientInfo_pwri_crypt() 359 if (!EVP_CipherInit_ex(kekctx, kekcipher, NULL, NULL, NULL, en_de)) in ossl_cms_RecipientInfo_pwri_crypt() 361 EVP_CIPHER_CTX_set_padding(kekctx, 0); in ossl_cms_RecipientInfo_pwri_crypt() 362 if (EVP_CIPHER_asn1_to_param(kekctx, kekalg->parameter) <= 0) { in ossl_cms_RecipientInfo_pwri_crypt() 373 algtmp->parameter, kekctx, en_de) < 0) { in ossl_cms_RecipientInfo_pwri_crypt() 382 if (!kek_wrap_key(NULL, &keylen, ec->key, ec->keylen, kekctx, cms_ctx)) in ossl_cms_RecipientInfo_pwri_crypt() 390 if (!kek_wrap_key(key, &keylen, ec->key, ec->keylen, kekctx, cms_ctx)) in ossl_cms_RecipientInfo_pwri_crypt() 400 pwri->encryptedKey->length, kekctx)) { in ossl_cms_RecipientInfo_pwri_crypt() [all …]
|
H A D | cms_dh.c | 91 EVP_CIPHER_CTX *kekctx; in dh_cms_set_shared_info() local 118 kekctx = CMS_RecipientInfo_kari_get0_ctx(ri); in dh_cms_set_shared_info() 119 if (kekctx == NULL) in dh_cms_set_shared_info() 129 if (!EVP_EncryptInit_ex(kekctx, kekcipher, NULL, NULL, NULL)) in dh_cms_set_shared_info() 131 if (EVP_CIPHER_asn1_to_param(kekctx, kekalg->parameter) <= 0) in dh_cms_set_shared_info() 134 keylen = EVP_CIPHER_CTX_get_key_length(kekctx); in dh_cms_set_shared_info()
|
H A D | cms_ec.c | 168 EVP_CIPHER_CTX *kekctx; in ecdh_cms_set_shared_info() local 187 kekctx = CMS_RecipientInfo_kari_get0_ctx(ri); in ecdh_cms_set_shared_info() 188 if (kekctx == NULL) in ecdh_cms_set_shared_info() 194 if (!EVP_EncryptInit_ex(kekctx, kekcipher, NULL, NULL, NULL)) in ecdh_cms_set_shared_info() 196 if (EVP_CIPHER_asn1_to_param(kekctx, kekalg->parameter) <= 0) in ecdh_cms_set_shared_info() 199 keylen = EVP_CIPHER_CTX_get_key_length(kekctx); in ecdh_cms_set_shared_info()
|
Completed in 10 milliseconds