summaryrefslogtreecommitdiffstats
path: root/test/poly1305_internal_test.c
diff options
context:
space:
mode:
authorKurt Roeckx <kurt@roeckx.be>2017-11-19 17:40:56 +0100
committerKurt Roeckx <kurt@roeckx.be>2017-11-25 14:30:11 +0100
commitd807db26a403b4de69d7846656362e70f5083428 (patch)
tree936f89094f60f405956b2a19f1fccf5b4791cc91 /test/poly1305_internal_test.c
parent92793648945affdfe529fa711666d19528815789 (diff)
Create a prototype for OPENSSL_rdtsc
Switch to make it return an uint32_t instead of the various different types it returns now. Fixes: #3125 Reviewed-by: Andy Polyakov <appro@openssl.org> GH: #4757
Diffstat (limited to 'test/poly1305_internal_test.c')
-rw-r--r--test/poly1305_internal_test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/poly1305_internal_test.c b/test/poly1305_internal_test.c
index d1d71c92ee..3631f3488a 100644
--- a/test/poly1305_internal_test.c
+++ b/test/poly1305_internal_test.c
@@ -16,6 +16,7 @@
#include "internal/poly1305.h"
#include "../crypto/poly1305/poly1305_local.h"
#include "internal/nelem.h"
+#include "internal/cryptlib.h"
typedef struct {
size_t size;
@@ -40,8 +41,7 @@ static void benchmark_poly1305()
POLY1305 poly1305;
unsigned char key[32];
unsigned char buf[8192];
- unsigned long long stopwatch;
- unsigned long long OPENSSL_rdtsc();
+ uint32_t stopwatch;
unsigned int i;
memset (buf,0x55,sizeof(buf));