Searched refs:kekctx (Results 1 – 2 of 2) sorted by relevance
/openbsd/lib/libcrypto/cms/ |
H A D | cms_pwri.c | 337 EVP_CIPHER_CTX *kekctx = NULL; in cms_RecipientInfo_pwri_crypt() local 374 kekctx = EVP_CIPHER_CTX_new(); in cms_RecipientInfo_pwri_crypt() 375 if (kekctx == NULL) { in cms_RecipientInfo_pwri_crypt() 380 if (!EVP_CipherInit_ex(kekctx, kekcipher, NULL, NULL, NULL, en_de)) in cms_RecipientInfo_pwri_crypt() 382 EVP_CIPHER_CTX_set_padding(kekctx, 0); in cms_RecipientInfo_pwri_crypt() 383 if (EVP_CIPHER_asn1_to_param(kekctx, kekalg->parameter) <= 0) { in cms_RecipientInfo_pwri_crypt() 393 pwri->passlen, algtmp->parameter, kekctx, en_de) < 0) { in cms_RecipientInfo_pwri_crypt() 401 if (!kek_wrap_key(NULL, &keylen, ec->key, ec->keylen, kekctx)) in cms_RecipientInfo_pwri_crypt() 408 if (!kek_wrap_key(key, &keylen, ec->key, ec->keylen, kekctx)) in cms_RecipientInfo_pwri_crypt() 419 pwri->encryptedKey->length, kekctx)) { in cms_RecipientInfo_pwri_crypt() [all …]
|
/openbsd/lib/libcrypto/ec/ |
H A D | ec_ameth.c | 804 EVP_CIPHER_CTX *kekctx; in ecdh_cms_set_shared_info() local 833 if ((kekctx = CMS_RecipientInfo_kari_get0_ctx(ri)) == NULL) in ecdh_cms_set_shared_info() 839 if (!EVP_EncryptInit_ex(kekctx, kekcipher, NULL, NULL, NULL)) in ecdh_cms_set_shared_info() 841 if (EVP_CIPHER_asn1_to_param(kekctx, kekalg->parameter) <= 0) in ecdh_cms_set_shared_info() 844 keylen = EVP_CIPHER_CTX_key_length(kekctx); in ecdh_cms_set_shared_info()
|