Suggested by jsing@.
ok jsing@ miod@
-/* $OpenBSD: bs_cbs.c,v 1.14 2015/06/19 00:23:36 doug Exp $ */
+/* $OpenBSD: bs_cbs.c,v 1.15 2015/06/20 01:21:51 doug Exp $ */
/*
* Copyright (c) 2014, Google Inc.
*
if (len != cbs->len)
return 0;
- return CRYPTO_memcmp(cbs->data, data, len) == 0;
+ return timingsafe_memcmp(cbs->data, data, len) == 0;
}
static int
-/* $OpenBSD: bs_cbs.c,v 1.14 2015/06/19 00:23:36 doug Exp $ */
+/* $OpenBSD: bs_cbs.c,v 1.15 2015/06/20 01:21:51 doug Exp $ */
/*
* Copyright (c) 2014, Google Inc.
*
if (len != cbs->len)
return 0;
- return CRYPTO_memcmp(cbs->data, data, len) == 0;
+ return timingsafe_memcmp(cbs->data, data, len) == 0;
}
static int