Searched refs:kekctx (Results 1 - 6 of 6) sorted by relevance
/third_party/node/deps/openssl/openssl/crypto/cms/ |
H A D | cms_pwri.c | 297 EVP_CIPHER_CTX *kekctx = NULL; in ossl_cms_RecipientInfo_pwri_crypt() local 336 kekctx = EVP_CIPHER_CTX_new(); in ossl_cms_RecipientInfo_pwri_crypt() 337 if (kekctx == NULL) { in ossl_cms_RecipientInfo_pwri_crypt() 342 if (!EVP_CipherInit_ex(kekctx, kekcipher, NULL, NULL, NULL, en_de)) in ossl_cms_RecipientInfo_pwri_crypt() 344 EVP_CIPHER_CTX_set_padding(kekctx, 0); in ossl_cms_RecipientInfo_pwri_crypt() 345 if (EVP_CIPHER_asn1_to_param(kekctx, kekalg->parameter) <= 0) { in ossl_cms_RecipientInfo_pwri_crypt() 356 algtmp->parameter, kekctx, en_de) < 0) { in ossl_cms_RecipientInfo_pwri_crypt() 365 if (!kek_wrap_key(NULL, &keylen, ec->key, ec->keylen, kekctx, cms_ctx)) in ossl_cms_RecipientInfo_pwri_crypt() 373 if (!kek_wrap_key(key, &keylen, ec->key, ec->keylen, kekctx, cms_ctx)) in ossl_cms_RecipientInfo_pwri_crypt() 386 pwri->encryptedKey->length, kekctx)) { in ossl_cms_RecipientInfo_pwri_crypt() [all...] |
H A D | cms_dh.c | 90 EVP_CIPHER_CTX *kekctx; in dh_cms_set_shared_info() local 117 kekctx = CMS_RecipientInfo_kari_get0_ctx(ri); in dh_cms_set_shared_info() 118 if (kekctx == NULL) in dh_cms_set_shared_info() 128 if (!EVP_EncryptInit_ex(kekctx, kekcipher, NULL, NULL, NULL)) in dh_cms_set_shared_info() 130 if (EVP_CIPHER_asn1_to_param(kekctx, kekalg->parameter) <= 0) in dh_cms_set_shared_info() 133 keylen = EVP_CIPHER_CTX_get_key_length(kekctx); in dh_cms_set_shared_info()
|
H A D | cms_ec.c | 167 EVP_CIPHER_CTX *kekctx; in ecdh_cms_set_shared_info() local 186 kekctx = CMS_RecipientInfo_kari_get0_ctx(ri); in ecdh_cms_set_shared_info() 187 if (kekctx == NULL) in ecdh_cms_set_shared_info() 193 if (!EVP_EncryptInit_ex(kekctx, kekcipher, NULL, NULL, NULL)) in ecdh_cms_set_shared_info() 195 if (EVP_CIPHER_asn1_to_param(kekctx, kekalg->parameter) <= 0) in ecdh_cms_set_shared_info() 198 keylen = EVP_CIPHER_CTX_get_key_length(kekctx); in ecdh_cms_set_shared_info()
|
/third_party/openssl/crypto/cms/ |
H A D | cms_pwri.c | 297 EVP_CIPHER_CTX *kekctx = NULL; in ossl_cms_RecipientInfo_pwri_crypt() local 336 kekctx = EVP_CIPHER_CTX_new(); in ossl_cms_RecipientInfo_pwri_crypt() 337 if (kekctx == NULL) { in ossl_cms_RecipientInfo_pwri_crypt() 342 if (!EVP_CipherInit_ex(kekctx, kekcipher, NULL, NULL, NULL, en_de)) in ossl_cms_RecipientInfo_pwri_crypt() 344 EVP_CIPHER_CTX_set_padding(kekctx, 0); in ossl_cms_RecipientInfo_pwri_crypt() 345 if (EVP_CIPHER_asn1_to_param(kekctx, kekalg->parameter) <= 0) { in ossl_cms_RecipientInfo_pwri_crypt() 356 algtmp->parameter, kekctx, en_de) < 0) { in ossl_cms_RecipientInfo_pwri_crypt() 365 if (!kek_wrap_key(NULL, &keylen, ec->key, ec->keylen, kekctx, cms_ctx)) in ossl_cms_RecipientInfo_pwri_crypt() 373 if (!kek_wrap_key(key, &keylen, ec->key, ec->keylen, kekctx, cms_ctx)) in ossl_cms_RecipientInfo_pwri_crypt() 386 pwri->encryptedKey->length, kekctx)) { in ossl_cms_RecipientInfo_pwri_crypt() [all...] |
H A D | cms_dh.c | 90 EVP_CIPHER_CTX *kekctx; in dh_cms_set_shared_info() local 117 kekctx = CMS_RecipientInfo_kari_get0_ctx(ri); in dh_cms_set_shared_info() 118 if (kekctx == NULL) in dh_cms_set_shared_info() 128 if (!EVP_EncryptInit_ex(kekctx, kekcipher, NULL, NULL, NULL)) in dh_cms_set_shared_info() 130 if (EVP_CIPHER_asn1_to_param(kekctx, kekalg->parameter) <= 0) in dh_cms_set_shared_info() 133 keylen = EVP_CIPHER_CTX_get_key_length(kekctx); in dh_cms_set_shared_info()
|
H A D | cms_ec.c | 167 EVP_CIPHER_CTX *kekctx; in ecdh_cms_set_shared_info() local 186 kekctx = CMS_RecipientInfo_kari_get0_ctx(ri); in ecdh_cms_set_shared_info() 187 if (kekctx == NULL) in ecdh_cms_set_shared_info() 193 if (!EVP_EncryptInit_ex(kekctx, kekcipher, NULL, NULL, NULL)) in ecdh_cms_set_shared_info() 195 if (EVP_CIPHER_asn1_to_param(kekctx, kekalg->parameter) <= 0) in ecdh_cms_set_shared_info() 198 keylen = EVP_CIPHER_CTX_get_key_length(kekctx); in ecdh_cms_set_shared_info()
|
Completed in 5 milliseconds