Searched refs:kekcipher (Results 1 – 4 of 4) sorted by relevance
| /freebsd/crypto/openssl/crypto/cms/ |
| H A D | cms_dh.c | 90 EVP_CIPHER *kekcipher = NULL; in dh_cms_set_shared_info() local 130 kekcipher = EVP_CIPHER_fetch(pctx->libctx, name, pctx->propquery); in dh_cms_set_shared_info() 131 if (kekcipher == NULL in dh_cms_set_shared_info() 132 || EVP_CIPHER_get_mode(kekcipher) != EVP_CIPH_WRAP_MODE) in dh_cms_set_shared_info() 134 if (!EVP_EncryptInit_ex(kekctx, kekcipher, NULL, NULL, NULL)) in dh_cms_set_shared_info() 144 OBJ_nid2obj(EVP_CIPHER_get_type(kekcipher))) in dh_cms_set_shared_info() 162 EVP_CIPHER_free(kekcipher); in dh_cms_set_shared_info()
|
| H A D | cms_ec.c | 167 EVP_CIPHER *kekcipher = NULL; in ecdh_cms_set_shared_info() local 197 kekcipher = EVP_CIPHER_fetch(pctx->libctx, name, pctx->propquery); in ecdh_cms_set_shared_info() 198 if (kekcipher == NULL || EVP_CIPHER_get_mode(kekcipher) != EVP_CIPH_WRAP_MODE) in ecdh_cms_set_shared_info() 200 if (!EVP_EncryptInit_ex(kekctx, kekcipher, NULL, NULL, NULL)) in ecdh_cms_set_shared_info() 220 EVP_CIPHER_free(kekcipher); in ecdh_cms_set_shared_info()
|
| H A D | cms_kari.c | 420 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 D | cms_pwri.c | 315 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()
|