aboutsummaryrefslogtreecommitdiff
path: root/ncrypt.c
diff options
context:
space:
mode:
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;