diff options
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; |