1
0
mirror of https://github.com/veracrypt/VeraCrypt.git synced 2025-11-11 02:58:02 -06:00

Windows: Enable Twofish optimized 64-bit assembly for UEFI bootloader since a pre-compiled object file was included to its build system.

This commit is contained in:
Mounir IDRASSI
2016-12-19 17:46:38 +01:00
parent 1ef6177ae3
commit 5493de11d5
3 changed files with 9 additions and 9 deletions

View File

@@ -247,7 +247,7 @@ void EncipherBlocks (int cipher, void *dataPtr, void *ks, size_t blockCount)
#endif
}
#endif
#if CRYPTOPP_BOOL_X64 && !defined(_UEFI)
#if CRYPTOPP_BOOL_X64
else if (cipher == TWOFISH) {
twofish_encrypt_blocks(ks, data, data, (uint32) blockCount);
}
@@ -347,7 +347,7 @@ void DecipherBlocks (int cipher, void *dataPtr, void *ks, size_t blockCount)
#endif
}
#endif
#if CRYPTOPP_BOOL_X64 && !defined(_UEFI)
#if CRYPTOPP_BOOL_X64
else if (cipher == TWOFISH) {
twofish_decrypt_blocks(ks, data, data, (uint32) blockCount);
}
@@ -428,7 +428,7 @@ BOOL CipherSupportsIntraDataUnitParallelization (int cipher)
#if CRYPTOPP_BOOL_SSE2_INTRINSICS_AVAILABLE && !defined (_UEFI)
|| (cipher == SERPENT && HasSSE2())
#endif
#if CRYPTOPP_BOOL_X64 && !defined(_UEFI)
#if CRYPTOPP_BOOL_X64
|| (cipher == TWOFISH)
#endif
;