#include <mLib/sub.h>
#include "cc.h"
+#include "ct.h"
#include "key.h"
#include "gmac.h"
#include "getdate.h"
GH_HASH(h, argv[optind + 1], strlen(argv[optind + 1]));
t = GH_DONE(h, 0);
- if (memcmp(t, d.buf + COOKIE_SZ, cbits / 8) != 0) {
+ if (!ct_memeq(t, d.buf + COOKIE_SZ, cbits / 8)) {
if (v) printf("FAIL bad authentication token\n");
goto fail;
}