X-Git-Url: https://git.distorted.org.uk/~mdw/secnet/blobdiff_plain/14f78812a935c8f050f12112c19f359eb12f0686..refs/heads/master:/transform-cbcmac.c diff --git a/transform-cbcmac.c b/transform-cbcmac.c index 5e59e21..ad9e901 100644 --- a/transform-cbcmac.c +++ b/transform-cbcmac.c @@ -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; }