Home
last modified time | relevance | path

Searched refs:eklen (Results 1 – 2 of 2) sorted by relevance

/third_party/openssl/crypto/pkcs7/
Dpk7_doit.c94 size_t eklen; in pkcs7_encode_rinfo() local
114 if (EVP_PKEY_encrypt(pctx, NULL, &eklen, key, keylen) <= 0) in pkcs7_encode_rinfo()
117 ek = OPENSSL_malloc(eklen); in pkcs7_encode_rinfo()
124 if (EVP_PKEY_encrypt(pctx, ek, &eklen, key, keylen) <= 0) in pkcs7_encode_rinfo()
127 ASN1_STRING_set0(ri->enc_key, ek, eklen); in pkcs7_encode_rinfo()
145 size_t eklen; in pkcs7_decrypt_rinfo() local
162 if (EVP_PKEY_decrypt(pctx, NULL, &eklen, in pkcs7_decrypt_rinfo()
166 ek = OPENSSL_malloc(eklen); in pkcs7_decrypt_rinfo()
173 if (EVP_PKEY_decrypt(pctx, ek, &eklen, in pkcs7_decrypt_rinfo()
175 || eklen == 0 in pkcs7_decrypt_rinfo()
[all …]
/third_party/openssl/crypto/cms/
Dcms_env.c299 size_t eklen; in cms_RecipientInfo_ktri_encrypt() local
330 if (EVP_PKEY_encrypt(pctx, NULL, &eklen, ec->key, ec->keylen) <= 0) in cms_RecipientInfo_ktri_encrypt()
333 ek = OPENSSL_malloc(eklen); in cms_RecipientInfo_ktri_encrypt()
340 if (EVP_PKEY_encrypt(pctx, ek, &eklen, ec->key, ec->keylen) <= 0) in cms_RecipientInfo_ktri_encrypt()
343 ASN1_STRING_set0(ktri->encryptedKey, ek, eklen); in cms_RecipientInfo_ktri_encrypt()
364 size_t eklen; in cms_RecipientInfo_ktri_decrypt() local
404 if (EVP_PKEY_decrypt(ktri->pctx, NULL, &eklen, in cms_RecipientInfo_ktri_decrypt()
409 ek = OPENSSL_malloc(eklen); in cms_RecipientInfo_ktri_decrypt()
416 if (EVP_PKEY_decrypt(ktri->pctx, ek, &eklen, in cms_RecipientInfo_ktri_decrypt()
419 || eklen == 0 in cms_RecipientInfo_ktri_decrypt()
[all …]