Home
last modified time | relevance | path

Searched refs:tkey (Results 1 – 3 of 3) sorted by relevance

/openssl/crypto/cms/
H A Dcms_enc.c35 unsigned char *tkey = NULL; in ossl_cms_EncryptedContent_init_bio() local
123 tkey = OPENSSL_malloc(tkeylen); in ossl_cms_EncryptedContent_init_bio()
124 if (tkey == NULL) in ossl_cms_EncryptedContent_init_bio()
126 if (EVP_CIPHER_CTX_rand_key(ctx, tkey) <= 0) in ossl_cms_EncryptedContent_init_bio()
131 ec->key = tkey; in ossl_cms_EncryptedContent_init_bio()
133 tkey = NULL; in ossl_cms_EncryptedContent_init_bio()
154 ec->key = tkey; in ossl_cms_EncryptedContent_init_bio()
156 tkey = NULL; in ossl_cms_EncryptedContent_init_bio()
198 OPENSSL_clear_free(tkey, tkeylen); in ossl_cms_EncryptedContent_init_bio()
/openssl/crypto/pkcs7/
H A Dpk7_doit.c400 unsigned char *ek = NULL, *tkey = NULL; in PKCS7_dataDecode() local
596 tkey = OPENSSL_malloc(tkeylen); in PKCS7_dataDecode()
597 if (tkey == NULL) in PKCS7_dataDecode()
599 if (EVP_CIPHER_CTX_rand_key(evp_ctx, tkey) <= 0) in PKCS7_dataDecode()
602 ek = tkey; in PKCS7_dataDecode()
604 tkey = NULL; in PKCS7_dataDecode()
616 ek = tkey; in PKCS7_dataDecode()
618 tkey = NULL; in PKCS7_dataDecode()
628 OPENSSL_clear_free(tkey, tkeylen); in PKCS7_dataDecode()
629 tkey = NULL; in PKCS7_dataDecode()
[all …]
/openssl/test/
H A Devp_extra_test.c3586 EVP_PKEY *tkey = NULL; in test_keygen_with_empty_template() local
3600 if (!TEST_ptr(tkey = EVP_PKEY_new()) in test_keygen_with_empty_template()
3601 || !TEST_true(EVP_PKEY_set_type(tkey, EVP_PKEY_RSA)) in test_keygen_with_empty_template()
3602 || !TEST_ptr(ctx = EVP_PKEY_CTX_new(tkey, NULL))) in test_keygen_with_empty_template()
3615 EVP_PKEY_free(tkey); in test_keygen_with_empty_template()

Completed in 26 milliseconds