VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Crypto
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2016-09-24 21:25:58 (GMT)
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2016-10-17 16:40:13 (GMT)
commit194b641ebdf0a8bd8c090afc373643cba788825e (patch)
tree0f7c45060d1e5d4a934e17cd602186202c43fa21 /src/Crypto
parent7c154a3f262212d49086fd381676502a42269513 (diff)
downloadVeraCrypt-194b641ebdf0a8bd8c090afc373643cba788825e.zip
VeraCrypt-194b641ebdf0a8bd8c090afc373643cba788825e.tar.gz
Crypto: remove specific PBKDF2 optimization for block index encoding (except in 16-bit bootloader) in order to make code clearer and avoid bad usage in the future if this implementation is used to generate more bytes than today.
Diffstat (limited to 'src/Crypto')
-rw-r--r--src/Crypto/misc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Crypto/misc.h b/src/Crypto/misc.h
index e739176..31fa118 100644
--- a/src/Crypto/misc.h
+++ b/src/Crypto/misc.h
@@ -85,6 +85,7 @@
#define CRYPTOPP_BYTESWAP_AVAILABLE
#include <byteswap.h>
#elif defined(_MSC_VER) && _MSC_VER >= 1300 && !defined(_UEFI)
+#pragma intrinsic(_byteswap_ulong,_byteswap_uint64)
#define CRYPTOPP_BYTESWAP_AVAILABLE
#define bswap_32(x) _byteswap_ulong(x)
#define bswap_64(x) _byteswap_uint64(x)