Home
last modified time | relevance | path

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

/external/openssl/crypto/pkcs7/
Dpk7_doit.c148 size_t eklen; in pkcs7_encode_rinfo() local
169 if (EVP_PKEY_encrypt(pctx, NULL, &eklen, key, keylen) <= 0) in pkcs7_encode_rinfo()
172 ek = OPENSSL_malloc(eklen); in pkcs7_encode_rinfo()
180 if (EVP_PKEY_encrypt(pctx, ek, &eklen, key, keylen) <= 0) in pkcs7_encode_rinfo()
183 ASN1_STRING_set0(ri->enc_key, ek, eklen); in pkcs7_encode_rinfo()
205 size_t eklen; in pkcs7_decrypt_rinfo() local
223 if (EVP_PKEY_decrypt(pctx, NULL, &eklen, in pkcs7_decrypt_rinfo()
227 ek = OPENSSL_malloc(eklen); in pkcs7_decrypt_rinfo()
235 if (EVP_PKEY_decrypt(pctx, ek, &eklen, in pkcs7_decrypt_rinfo()
252 *peklen = eklen; in pkcs7_decrypt_rinfo()
[all …]
/external/openssl/crypto/cms/
Dcms_env.c309 size_t eklen; in cms_RecipientInfo_ktri_encrypt() local
336 if (EVP_PKEY_encrypt(pctx, NULL, &eklen, ec->key, ec->keylen) <= 0) in cms_RecipientInfo_ktri_encrypt()
339 ek = OPENSSL_malloc(eklen); in cms_RecipientInfo_ktri_encrypt()
348 if (EVP_PKEY_encrypt(pctx, ek, &eklen, ec->key, ec->keylen) <= 0) in cms_RecipientInfo_ktri_encrypt()
351 ASN1_STRING_set0(ktri->encryptedKey, ek, eklen); in cms_RecipientInfo_ktri_encrypt()
373 size_t eklen; in cms_RecipientInfo_ktri_decrypt() local
399 if (EVP_PKEY_decrypt(pctx, NULL, &eklen, in cms_RecipientInfo_ktri_decrypt()
404 ek = OPENSSL_malloc(eklen); in cms_RecipientInfo_ktri_decrypt()
413 if (EVP_PKEY_decrypt(pctx, ek, &eklen, in cms_RecipientInfo_ktri_decrypt()
430 ec->keylen = eklen; in cms_RecipientInfo_ktri_decrypt()