/openssl/crypto/evp/ |
H A D | p_open.c | 19 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 D | p_enc.c | 21 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 D | p_dec.c | 21 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 D | p_seal.c | 20 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 D | pk7_doit.c | 151 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 D | i_skey.c | 61 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 D | cms_env.c | 512 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 D | EVP_SealInit.pod | 12 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 D | EVP_OpenInit.pod | 11 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 D | idea.h | 47 OSSL_DEPRECATEDIN_3_0 void IDEA_set_decrypt_key(IDEA_KEY_SCHEDULE *ek,
|
H A D | evp.h | 856 const unsigned char *ek, int ekl, 861 unsigned char **ek, int *ekl, unsigned char *iv,
|
/openssl/crypto/crmf/ |
H A D | crmf_lib.c | 629 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 D | aria.c | 1198 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()
|