From 997b47be801fa8c02aab25ec600184625403634e Mon Sep 17 00:00:00 2001 From: Toni Uhlig Date: Thu, 19 Dec 2024 15:07:54 +0100 Subject: nDPId decryption example Signed-off-by: Toni Uhlig --- ncrypt.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'ncrypt.c') 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; -- cgit v1.2.3