Home | History | Annotate | Download | only in pkcs7

Lines Matching defs:ek

146 	unsigned char *ek = NULL;
172 ek = OPENSSL_malloc(eklen);
174 if (ek == NULL)
180 if (EVP_PKEY_encrypt(pctx, ek, &eklen, key, keylen) <= 0)
183 ASN1_STRING_set0(ri->enc_key, ek, eklen);
184 ek = NULL;
193 if (ek)
194 OPENSSL_free(ek);
204 unsigned char *ek = NULL;
227 ek = OPENSSL_malloc(eklen);
229 if (ek == NULL)
235 if (EVP_PKEY_decrypt(pctx, ek, &eklen,
251 *pek = ek;
257 if (!ret && ek)
258 OPENSSL_free(ek);
433 unsigned char *ek = NULL, *tkey = NULL;
554 if (pkcs7_decrypt_rinfo(&ek, &eklen,
563 if (pkcs7_decrypt_rinfo(&ek, &eklen, ri, pkey) < 0)
581 if (ek == NULL)
583 ek = tkey;
596 OPENSSL_cleanse(ek, eklen);
597 OPENSSL_free(ek);
598 ek = tkey;
605 if (EVP_CipherInit_ex(evp_ctx,NULL,NULL,ek,NULL,0) <= 0)
608 if (ek)
610 OPENSSL_cleanse(ek,eklen);
611 OPENSSL_free(ek);
612 ek = NULL;
661 if (ek)
663 OPENSSL_cleanse(ek,eklen);
664 OPENSSL_free(ek);