VeraCrypt
aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatteo Baccan <matteo.baccan@gmail.com>2022-08-21 17:56:31 +0200
committerGitHub <noreply@github.com>2022-08-21 17:56:31 +0200
commit53b4019d1f2c69cd1b4ee528c31a78a3a5a0e817 (patch)
tree4a079ed4259668a5e1194c27ee7a2f4dea1911ec
parentcc5212fdb1a9165b1b4f63ad21198172a068ee43 (diff)
downloadVeraCrypt-53b4019d1f2c69cd1b4ee528c31a78a3a5a0e817.tar.gz
VeraCrypt-53b4019d1f2c69cd1b4ee528c31a78a3a5a0e817.zip
Fixed a typo error (#929)
Hi I have fixed a little typo error: a double semicolon at the end of one line ciao matteo
-rw-r--r--src/Crypto/jitterentropy-base-user.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Crypto/jitterentropy-base-user.h b/src/Crypto/jitterentropy-base-user.h
index 3a33dcd6..b32d8ed3 100644
--- a/src/Crypto/jitterentropy-base-user.h
+++ b/src/Crypto/jitterentropy-base-user.h
@@ -47,71 +47,71 @@
#include "misc.h"
#include "cpu.h"
#include <stdlib.h>
#include <string.h>
#ifdef _MSC_VER
typedef uint64 uint64_t;
typedef int64 int64_t;
#ifndef _UEFI
#define CONFIG_CRYPTO_CPU_JITTERENTROPY_SECURE_MEMORY
#endif
#ifndef _UEFI
typedef SSIZE_T ssize_t;
#else
#if CRYPTOPP_BOOL_X64
typedef int64 ssize_t;
#else
typedef int32 ssize_t;
#endif
#endif
static VC_INLINE void jent_get_nstime(uint64 *out)
{
#ifdef _M_ARM64
LARGE_INTEGER v = { 0 };
#ifdef TC_WINDOWS_DRIVER
v = KeQueryPerformanceCounter(NULL);
#else
QueryPerformanceCounter(&v);
#endif
* out = v.QuadPart;
#else
- *out = __rdtsc();;
+ *out = __rdtsc();
#endif
}
#else
#if CRYPTOPP_BOOL_X86 || CRYPTOPP_BOOL_X32 || CRYPTOPP_BOOL_X64
/* taken from Linux kernel */
#if CRYPTOPP_BOOL_X64
#define DECLARE_ARGS(val, low, high) unsigned low, high
#define EAX_EDX_VAL(val, low, high) ((low) | ((uint64)(high) << 32))
#define EAX_EDX_RET(val, low, high) "=a" (low), "=d" (high)
#else
#define DECLARE_ARGS(val, low, high) unsigned long long val
#define EAX_EDX_VAL(val, low, high) (val)
#define EAX_EDX_RET(val, low, high) "=A" (val)
#endif
VC_INLINE void jent_get_nstime(uint64 *out)
{
DECLARE_ARGS(val, low, high);
asm volatile("rdtsc" : EAX_EDX_RET(val, low, high));
*out = EAX_EDX_VAL(val, low, high);
}
#else
#include <time.h>
VC_INLINE void jent_get_nstime(uint64 *out)
{
/* we could use CLOCK_MONOTONIC(_RAW), but with CLOCK_REALTIME
* we get some nice extra entropy once in a while from the NTP actions
* that we want to use as well... though, we do not rely on that
* extra little entropy */