X-Git-Url: https://git.distorted.org.uk/~mdw/catacomb/blobdiff_plain/89717a56084f7cac56330c8527fbaff99b15709b..141c12847a1c2f8cc8db03d420551584e689fb87:/symm/gcm.c diff --git a/symm/gcm.c b/symm/gcm.c index 73b28517..95718945 100644 --- a/symm/gcm.c +++ b/symm/gcm.c @@ -778,6 +778,7 @@ void gcm_concat(const gcm_params *p, uint32 *z, const uint32 *x, #ifdef TEST_RIG +#include #include #include @@ -820,7 +821,7 @@ static int test_mul(uint32 poly, dstr v[]) #define CHECK(E, what, ref) do { \ for (i = 0; i < nbits/32; i++) STORE32_##E(d.buf + 4*i, z[i]); \ - if (memcmp(d.buf, v[I_##ref].buf, nbits/8) != 0) \ + if (MEMCMP(d.buf, !=, v[I_##ref].buf, nbits/8)) \ { ok = 0; report_failure(what, nbits, #ref, v, &d); } \ } while (0)