Home
last modified time | relevance | path

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

/src/crypto/openssl/crypto/cms/
H A Dcms_dh.c90 EVP_CIPHER *kekcipher = NULL; in dh_cms_set_shared_info() local
125 kekcipher = EVP_CIPHER_fetch(pctx->libctx, name, pctx->propquery); in dh_cms_set_shared_info()
126 if (kekcipher == NULL in dh_cms_set_shared_info()
127 || EVP_CIPHER_get_mode(kekcipher) != EVP_CIPH_WRAP_MODE) in dh_cms_set_shared_info()
129 if (!EVP_EncryptInit_ex(kekctx, kekcipher, NULL, NULL, NULL)) in dh_cms_set_shared_info()
139 OBJ_nid2obj(EVP_CIPHER_get_type(kekcipher))) in dh_cms_set_shared_info()
157 EVP_CIPHER_free(kekcipher); in dh_cms_set_shared_info()
H A Dcms_ec.c167 EVP_CIPHER *kekcipher = NULL; in ecdh_cms_set_shared_info() local
191 kekcipher = EVP_CIPHER_fetch(pctx->libctx, name, pctx->propquery); in ecdh_cms_set_shared_info()
192 if (kekcipher == NULL || EVP_CIPHER_get_mode(kekcipher) != EVP_CIPH_WRAP_MODE) in ecdh_cms_set_shared_info()
194 if (!EVP_EncryptInit_ex(kekctx, kekcipher, NULL, NULL, NULL)) in ecdh_cms_set_shared_info()
214 EVP_CIPHER_free(kekcipher); in ecdh_cms_set_shared_info()
H A Dcms_kari.c420 const EVP_CIPHER *kekcipher; in cms_wrap_init() local
427 kekcipher = EVP_CIPHER_CTX_get0_cipher(ctx); in cms_wrap_init()
428 if (kekcipher != NULL) { in cms_wrap_init()
438 0, &kekcipher); in cms_wrap_init()
442 if (kekcipher != NULL) { in cms_wrap_init()
443 if (EVP_CIPHER_get_mode(kekcipher) != EVP_CIPH_WRAP_MODE) in cms_wrap_init()
445 kekcipher_name = EVP_CIPHER_get0_name(kekcipher); in cms_wrap_init()
H A Dcms_pwri.c315 EVP_CIPHER *kekcipher; in ossl_cms_RecipientInfo_pwri_crypt() local
344 kekcipher = EVP_CIPHER_fetch(ossl_cms_ctx_get0_libctx(cms_ctx), name, in ossl_cms_RecipientInfo_pwri_crypt()
347 if (kekcipher == NULL) { in ossl_cms_RecipientInfo_pwri_crypt()
358 if (!EVP_CipherInit_ex(kekctx, kekcipher, NULL, NULL, NULL, en_de)) in ossl_cms_RecipientInfo_pwri_crypt()
413 EVP_CIPHER_free(kekcipher); in ossl_cms_RecipientInfo_pwri_crypt()