diff options
author | Toni Uhlig <matzeton@googlemail.com> | 2024-12-19 15:07:54 +0100 |
---|---|---|
committer | Toni Uhlig <matzeton@googlemail.com> | 2025-01-26 20:40:37 +0100 |
commit | 997b47be801fa8c02aab25ec600184625403634e (patch) | |
tree | b9af775d38c263e13d991a025500681600e7d597 /ncrypt.c | |
parent | 5efda1e6a4d32d89bcc948193bb32648a5008d84 (diff) |
nDPId decryption example
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'ncrypt.c')
-rw-r--r-- | ncrypt.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -278,7 +278,7 @@ int ncrypt_init_encrypt(struct ncrypt * const nc) return 0; } -int ncrypt_init_decrypt(struct ncrypt * const nc, unsigned char iv[NCRYPT_AES_IVLEN]) +int ncrypt_init_decrypt(struct ncrypt * const nc) { if (nc->aesctx == NULL) { @@ -299,8 +299,6 @@ int ncrypt_init_decrypt(struct ncrypt * const nc, unsigned char iv[NCRYPT_AES_IV } } - memcpy(nc->iv, iv, NCRYPT_AES_IVLEN); - if (EVP_DecryptInit_ex(nc->aesctx, NULL, NULL, nc->shared_secret, nc->iv) == 0) { return -4; |