chiark / gitweb /
Fix bizarre `if (!consttime_memeq(X, Y, N)!=0)' idioms.
[secnet.git] / transform-cbcmac.c
index 5e59e21..ad9e901 100644 (file)
@@ -231,7 +231,7 @@ static transform_apply_return transform_reverse(void *sst,
        serpentbe_encrypt(&ti->mackey,macplain,macacc);
     }
     serpentbe_encrypt(&ti->mackey,macacc,macacc);
-    if (!consttime_memeq(macexpected,macacc,16)!=0) {
+    if (!consttime_memeq(macexpected,macacc,16)) {
        *errmsg="invalid MAC";
        return transform_apply_err;
     }