From b25d04ed94658e8ba0434e3b73daf3e83232ceeb Mon Sep 17 00:00:00 2001 From: Steffen Jaeckel Date: Tue, 25 Aug 2015 23:07:47 +0200 Subject: [PATCH] fix pointer check --- src/modes/xts/xts_decrypt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modes/xts/xts_decrypt.c b/src/modes/xts/xts_decrypt.c index 453ea00..90c2e36 100644 --- a/src/modes/xts/xts_decrypt.c +++ b/src/modes/xts/xts_decrypt.c @@ -93,7 +93,7 @@ static int tweak_uncrypt(const unsigned char *C, unsigned char *P, unsigned char lim = m - 1; } - if (cipher_descriptor[xts->cipher].accel_xts_encrypt && lim > 0) { + if (cipher_descriptor[xts->cipher].accel_xts_decrypt && lim > 0) { /* use accelerated decryption for whole blocks */ if ((err = cipher_descriptor[xts->cipher].accel_xts_decrypt(ct, pt,