#include <setjmp.h>
#include <signal.h>
#include <openssl/crypto.h>
+#include "internal/cryptlib.h"
#include "arm_arch.h"
{
}
-unsigned long OPENSSL_rdtsc(void)
+uint32_t OPENSSL_rdtsc(void)
{
return 0;
}
void _armv8_sha1_probe(void);
void _armv8_sha256_probe(void);
void _armv8_pmull_probe(void);
-unsigned long _armv7_tick(void);
+uint32_t _armv7_tick(void);
-unsigned long OPENSSL_rdtsc(void)
+uint32_t OPENSSL_rdtsc(void)
{
if (OPENSSL_armcap_P & ARMV7_TICK)
return _armv7_tick();
#include <sys/time.h>
#include <unistd.h>
#include <openssl/bn.h>
+#include "internal/cryptlib.h"
#include "sparc_arch.h"
size_t _sparcv9_vis1_instrument_bus(unsigned int *, size_t);
size_t _sparcv9_vis1_instrument_bus2(unsigned int *, size_t, size_t);
-unsigned long OPENSSL_rdtsc(void)
+uint32_t OPENSSL_rdtsc(void)
{
if (OPENSSL_sparcv9cap_P[0] & SPARCV9_TICK_PRIVILEGED)
#if defined(__sun) && defined(__SVR4)
void *openssl_fopen(const char *filename, const char *mode);
# endif
+#ifdef OPENSSL_CPUID_OBJ
+uint32_t OPENSSL_rdtsc();
+#endif
+
#ifdef __cplusplus
}
#endif
#include "../crypto/modes/modes_lcl.h"
#include "testutil.h"
#include "internal/nelem.h"
+#include "internal/cryptlib.h"
typedef struct {
size_t size;
#ifdef OPENSSL_CPUID_OBJ
GCM128_CONTEXT ctx;
AES_KEY key;
- size_t start, gcm_t, ctr_t, OPENSSL_rdtsc();
+ uint32_t start, gcm_t, ctr_t;
union {
u64 u;
u8 c[1024];
#include "internal/poly1305.h"
#include "../crypto/poly1305/poly1305_local.h"
#include "internal/nelem.h"
+#include "internal/cryptlib.h"
typedef struct {
size_t size;
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));
#include "internal/siphash.h"
#include "../crypto/siphash/siphash_local.h"
#include "internal/nelem.h"
+#include "internal/cryptlib.h"
static BIO* b_stderr = NULL;
static BIO* b_stdout = NULL;
SIPHASH siphash;
unsigned char key[SIPHASH_KEY_SIZE];
unsigned char buf[8192];
- unsigned long long stopwatch;
- unsigned long long OPENSSL_rdtsc();
+ uint32_t stopwatch;
unsigned int i;
memset (buf,0x55,sizeof(buf));