aboutsummaryrefslogtreecommitdiff
path: root/ncrypt.c
diff options
context:
space:
mode:
authorToni Uhlig <matzeton@googlemail.com>2024-12-19 15:07:54 +0100
committerToni Uhlig <matzeton@googlemail.com>2025-01-26 20:40:37 +0100
commit997b47be801fa8c02aab25ec600184625403634e (patch)
treeb9af775d38c263e13d991a025500681600e7d597 /ncrypt.c
parent5efda1e6a4d32d89bcc948193bb32648a5008d84 (diff)
nDPId decryption example
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'ncrypt.c')
-rw-r--r--ncrypt.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/ncrypt.c b/ncrypt.c
index 36277b8f6..36ebecbab 100644
--- a/ncrypt.c
+++ b/ncrypt.c
@@ -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;