Home
last modified time | relevance | path

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

/openbsd/lib/libcrypto/cms/
H A Dcms_kari.c405 const EVP_CIPHER *kekcipher; in cms_wrap_init() local
409 kekcipher = EVP_CIPHER_CTX_cipher(ctx); in cms_wrap_init()
411 if (kekcipher) { in cms_wrap_init()
427 kekcipher = EVP_des_ede3_wrap(); in cms_wrap_init()
432 kekcipher = EVP_aes_128_wrap(); in cms_wrap_init()
434 kekcipher = EVP_aes_192_wrap(); in cms_wrap_init()
436 kekcipher = EVP_aes_256_wrap(); in cms_wrap_init()
438 return EVP_EncryptInit_ex(ctx, kekcipher, NULL, NULL, NULL); in cms_wrap_init()
H A Dcms_pwri.c338 const EVP_CIPHER *kekcipher; in cms_RecipientInfo_pwri_crypt() local
368 kekcipher = EVP_get_cipherbyobj(kekalg->algorithm); in cms_RecipientInfo_pwri_crypt()
369 if (!kekcipher) { in cms_RecipientInfo_pwri_crypt()
380 if (!EVP_CipherInit_ex(kekctx, kekcipher, NULL, NULL, NULL, en_de)) in cms_RecipientInfo_pwri_crypt()
/openbsd/lib/libcrypto/ec/
H A Dec_ameth.c803 const EVP_CIPHER *kekcipher; in ecdh_cms_set_shared_info() local
835 if ((kekcipher = EVP_get_cipherbyobj(kekalg->algorithm)) == NULL) in ecdh_cms_set_shared_info()
837 if (EVP_CIPHER_mode(kekcipher) != EVP_CIPH_WRAP_MODE) in ecdh_cms_set_shared_info()
839 if (!EVP_EncryptInit_ex(kekctx, kekcipher, NULL, NULL, NULL)) in ecdh_cms_set_shared_info()