Lines Matching refs:eklen
153 size_t eklen; in pkcs7_encode_rinfo() local
168 if (EVP_PKEY_encrypt(pctx, NULL, &eklen, key, keylen) <= 0) in pkcs7_encode_rinfo()
171 ek = OPENSSL_malloc(eklen); in pkcs7_encode_rinfo()
175 if (EVP_PKEY_encrypt(pctx, ek, &eklen, key, keylen) <= 0) in pkcs7_encode_rinfo()
178 ASN1_STRING_set0(ri->enc_key, ek, eklen); in pkcs7_encode_rinfo()
196 size_t eklen; in pkcs7_decrypt_rinfo() local
215 ret = evp_pkey_decrypt_alloc(pctx, &ek, &eklen, fixlen, in pkcs7_decrypt_rinfo()
224 *peklen = eklen; in pkcs7_decrypt_rinfo()
452 int eklen = 0, tkeylen = 0; in PKCS7_dataDecode() local
623 if (pkcs7_decrypt_rinfo(&ek, &eklen, ri, pkey, in PKCS7_dataDecode()
631 if (pkcs7_decrypt_rinfo(&ek, &eklen, ri, pkey, 0) < 0) in PKCS7_dataDecode()
654 eklen = tkeylen; in PKCS7_dataDecode()
658 if (eklen != EVP_CIPHER_CTX_get_key_length(evp_ctx)) { in PKCS7_dataDecode()
664 if (EVP_CIPHER_CTX_set_key_length(evp_ctx, eklen) <= 0) { in PKCS7_dataDecode()
666 OPENSSL_clear_free(ek, eklen); in PKCS7_dataDecode()
668 eklen = tkeylen; in PKCS7_dataDecode()
677 OPENSSL_clear_free(ek, eklen); in PKCS7_dataDecode()
709 OPENSSL_clear_free(ek, eklen); in PKCS7_dataDecode()