fix pointer check

This commit is contained in:
Steffen Jaeckel 2015-08-25 23:07:47 +02:00
parent 5c3f177b34
commit b25d04ed94

View File

@ -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,