Explorar o código

fix pointer check

Steffen Jaeckel %!s(int64=10) %!d(string=hai) anos
pai
achega
b25d04ed94
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/modes/xts/xts_decrypt.c

+ 1 - 1
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,