X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=transform-cbcmac.c;fp=transform-cbcmac.c;h=ad9e901ac332094d9dc0e116493b7855d10ecee7;hb=30ba82a584441fc730ad733081805d15fd07bd09;hp=5e59e212c71857a922459df8e55878299401be40;hpb=bdc4c1f98661ec308337b90b8e3134c5c5947904;p=secnet.git 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; }