Home
last modified time | relevance | path

Searched refs:ek (Results 1 – 13 of 13) sorted by relevance

/openssl/crypto/evp/
H A Dp_open.c19 const unsigned char *ek, int ekl, const unsigned char *iv, in EVP_OpenInit() argument
42 || EVP_PKEY_decrypt(pctx, NULL, &keylen, ek, ekl) <= 0) in EVP_OpenInit()
48 if (EVP_PKEY_decrypt(pctx, key, &keylen, ek, ekl) <= 0) in EVP_OpenInit()
H A Dp_enc.c21 int EVP_PKEY_encrypt_old(unsigned char *ek, const unsigned char *key, in EVP_PKEY_encrypt_old() argument
37 RSA_public_encrypt(key_len, key, ek, rsa, RSA_PKCS1_PADDING); in EVP_PKEY_encrypt_old()
H A Dp_dec.c21 int EVP_PKEY_decrypt_old(unsigned char *key, const unsigned char *ek, int ekl, in EVP_PKEY_decrypt_old() argument
37 RSA_private_decrypt(ekl, ek, key, rsa, RSA_PKCS1_PADDING); in EVP_PKEY_decrypt_old()
H A Dp_seal.c20 unsigned char **ek, int *ekl, unsigned char *iv, in EVP_SealInit() argument
66 || EVP_PKEY_encrypt(pctx, ek[i], &keylen, key, keylen) <= 0) in EVP_SealInit()
/openssl/crypto/pkcs7/
H A Dpk7_doit.c151 unsigned char *ek = NULL; in pkcs7_encode_rinfo() local
172 if (ek == NULL) in pkcs7_encode_rinfo()
179 ek = NULL; in pkcs7_encode_rinfo()
185 OPENSSL_free(ek); in pkcs7_encode_rinfo()
195 unsigned char *ek = NULL; in pkcs7_decrypt_rinfo() local
223 *pek = ek; in pkcs7_decrypt_rinfo()
229 OPENSSL_free(ek); in pkcs7_decrypt_rinfo()
652 if (ek == NULL) { in PKCS7_dataDecode()
653 ek = tkey; in PKCS7_dataDecode()
667 ek = tkey; in PKCS7_dataDecode()
[all …]
/openssl/crypto/idea/
H A Di_skey.c61 void IDEA_set_decrypt_key(IDEA_KEY_SCHEDULE *ek, IDEA_KEY_SCHEDULE *dk) in IDEA_set_decrypt_key() argument
67 fp = &(ek->data[8][0]); in IDEA_set_decrypt_key()
/openssl/crypto/cms/
H A Dcms_env.c512 unsigned char *ek = NULL; in cms_RecipientInfo_ktri_encrypt() local
544 ek = OPENSSL_malloc(eklen); in cms_RecipientInfo_ktri_encrypt()
545 if (ek == NULL) in cms_RecipientInfo_ktri_encrypt()
548 if (EVP_PKEY_encrypt(pctx, ek, &eklen, ec->key, ec->keylen) <= 0) in cms_RecipientInfo_ktri_encrypt()
551 ASN1_STRING_set0(ktri->encryptedKey, ek, eklen); in cms_RecipientInfo_ktri_encrypt()
552 ek = NULL; in cms_RecipientInfo_ktri_encrypt()
559 OPENSSL_free(ek); in cms_RecipientInfo_ktri_encrypt()
570 unsigned char *ek = NULL; in cms_RecipientInfo_ktri_decrypt() local
630 if (evp_pkey_decrypt_alloc(ktri->pctx, &ek, &eklen, fixlen, in cms_RecipientInfo_ktri_decrypt()
638 ec->key = ek; in cms_RecipientInfo_ktri_decrypt()
[all …]
/openssl/doc/man3/
H A DEVP_SealInit.pod12 unsigned char **ek, int *ekl, unsigned char *iv,
29 decrypted using any of the corresponding private keys. B<ek> is an array of
32 B<ek[i]> must have room for B<EVP_PKEY_get_size(pubk[i])> bytes. The actual
H A DEVP_OpenInit.pod11 int EVP_OpenInit(EVP_CIPHER_CTX *ctx, EVP_CIPHER *type, unsigned char *ek,
25 B<ekl> bytes passed in the B<ek> parameter using the private key B<priv>.
/openssl/include/openssl/
H A Didea.h47 OSSL_DEPRECATEDIN_3_0 void IDEA_set_decrypt_key(IDEA_KEY_SCHEDULE *ek,
H A Devp.h856 const unsigned char *ek, int ekl,
861 unsigned char **ek, int *ekl, unsigned char *iv,
/openssl/crypto/crmf/
H A Dcrmf_lib.c629 unsigned char *ek = NULL; /* decrypted symmetric encryption key */ in OSSL_CRMF_ENCRYPTEDVALUE_get1_encCert() local
666 || evp_pkey_decrypt_alloc(pkctx, &ek, &eksize, (size_t)cikeysize, in OSSL_CRMF_ENCRYPTEDVALUE_get1_encCert()
690 if (!EVP_DecryptInit(evp_ctx, cipher, ek, iv) in OSSL_CRMF_ENCRYPTEDVALUE_get1_encCert()
710 OPENSSL_clear_free(ek, eksize); in OSSL_CRMF_ENCRYPTEDVALUE_get1_encCert()
/openssl/crypto/aria/
H A Daria.c1198 ARIA_KEY ek; in ossl_aria_set_decrypt_key() local
1199 const int r = ossl_aria_set_encrypt_key(userKey, bits, &ek); in ossl_aria_set_decrypt_key()
1200 unsigned int i, rounds = ek.rounds; in ossl_aria_set_decrypt_key()
1204 memcpy(&key->rd_key[0], &ek.rd_key[rounds], sizeof(key->rd_key[0])); in ossl_aria_set_decrypt_key()
1206 a(&key->rd_key[i], &ek.rd_key[rounds - i]); in ossl_aria_set_decrypt_key()
1207 memcpy(&key->rd_key[rounds], &ek.rd_key[0], sizeof(key->rd_key[rounds])); in ossl_aria_set_decrypt_key()

Completed in 25 milliseconds