浏览代码

fix pointer check

Steffen Jaeckel 10 年之前
父节点
当前提交
b25d04ed94
共有 1 个文件被更改,包括 1 次插入1 次删除
  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;
       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 */
 	   /* use accelerated decryption for whole blocks */
 	   if ((err = cipher_descriptor[xts->cipher].accel_xts_decrypt(ct, pt,
 	   if ((err = cipher_descriptor[xts->cipher].accel_xts_decrypt(ct, pt,