Home
last modified time | relevance | path

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

/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.c418 const EVP_CIPHER *kekcipher; in cms_wrap_init() local
425 kekcipher = EVP_CIPHER_CTX_get0_cipher(ctx); in cms_wrap_init()
426 if (kekcipher != NULL) { in cms_wrap_init()
436 0, &kekcipher); in cms_wrap_init()
440 if (kekcipher != NULL) { in cms_wrap_init()
441 if (EVP_CIPHER_get_mode(kekcipher) != EVP_CIPH_WRAP_MODE) in cms_wrap_init()
443 kekcipher_name = EVP_CIPHER_get0_name(kekcipher); in cms_wrap_init()
H A Dcms_pwri.c316 EVP_CIPHER *kekcipher; in ossl_cms_RecipientInfo_pwri_crypt() local
345 kekcipher = EVP_CIPHER_fetch(ossl_cms_ctx_get0_libctx(cms_ctx), name, in ossl_cms_RecipientInfo_pwri_crypt()
348 if (kekcipher == 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()
414 EVP_CIPHER_free(kekcipher); in ossl_cms_RecipientInfo_pwri_crypt()

Completed in 11 milliseconds