X-Git-Url: https://tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=src%2Fgcrypt%2Fcipher.c;h=ce93fb1b8e60bf49d7e39fba3aba048eab2c1b1a;hp=cf46dec8220ab320b9553bc20a96c40441297ffe;hb=d917c8cb6b69475d568ccbe82389b9f2b3eb5e80;hpb=58f4b845b9a7d83739af77337f2ce263d8df7838 diff --git a/src/gcrypt/cipher.c b/src/gcrypt/cipher.c index cf46dec8..ce93fb1b 100644 --- a/src/gcrypt/cipher.c +++ b/src/gcrypt/cipher.c @@ -212,7 +212,7 @@ bool cipher_encrypt(cipher_t *cipher, const void *indata, size_t inlen, void *ou else pad[i] = padbyte; } - + if(oneshot) gcry_cipher_setiv(cipher->handle, cipher->key + cipher->keylen, cipher->blklen);