diff options
author | alt3r 3go <alt3r.3go@protonmail.com> | 2019-12-09 17:43:33 +0100 |
---|---|---|
committer | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2019-12-09 17:43:33 +0100 |
commit | 0364a36f84b2a08c690ec008d4cbb160bdf27a67 (patch) | |
tree | a6b9f9968539a06603f4ff5e3b8f18434e27e3ae /src/Crypto/Twofish.h | |
parent | 07bb27e3b94ee26128d5c7f800cdcf3232ff281a (diff) | |
download | VeraCrypt-0364a36f84b2a08c690ec008d4cbb160bdf27a67.tar.gz VeraCrypt-0364a36f84b2a08c690ec008d4cbb160bdf27a67.zip |
Linux: fix NOASM compilation (#563) (#568)
Signed-off-by: alt3r 3go <alt3r.3go@protonmail.com>
Diffstat (limited to 'src/Crypto/Twofish.h')
-rw-r--r-- | src/Crypto/Twofish.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Crypto/Twofish.h b/src/Crypto/Twofish.h index cec99c7c..e74826eb 100644 --- a/src/Crypto/Twofish.h +++ b/src/Crypto/Twofish.h @@ -35,7 +35,7 @@ extern "C" #endif typedef struct { -#if CRYPTOPP_BOOL_X64 +#if CRYPTOPP_BOOL_X64 && !defined(CRYPTOPP_DISABLE_ASM) u4byte mk_tab[4][256], w[8], k[32]; #else u4byte l_key[40]; @@ -54,7 +54,7 @@ typedef struct /* in_key must be 32-bytes long */ void twofish_set_key(TwofishInstance *instance, const u4byte in_key[]); -#if CRYPTOPP_BOOL_X64 +#if CRYPTOPP_BOOL_X64 && !defined(CRYPTOPP_DISABLE_ASM) void twofish_encrypt_blocks(TwofishInstance *instance, const byte* in_blk, byte* out_blk, uint32 blockCount); void twofish_decrypt_blocks(TwofishInstance *instance, const byte* in_blk, byte* out_blk, uint32 blockCount); #define twofish_encrypt(instance,in_blk,out_blk) twofish_encrypt_blocks(instance, (const byte*) in_blk, (byte*) out_blk, 1) |