mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2025-11-11 19:08:26 -06:00
MacOSX: various changes for assembly files build. Don't use 32-bit assembly code of SHA-512 since it is not compatible with PIE configuration of OSX compiler (absolute addressing used)
This commit is contained in:
@@ -26,7 +26,7 @@ extern "C"
|
||||
void sha512_avx(const void* M, void* D, uint_64t l);
|
||||
#endif
|
||||
|
||||
#if CRYPTOPP_BOOL_X86 || CRYPTOPP_BOOL_X32 || CRYPTOPP_BOOL_X64
|
||||
#if CRYPTOPP_BOOL_X64 || ((CRYPTOPP_BOOL_X86 || CRYPTOPP_BOOL_X32) && !defined (TC_MACOSX))
|
||||
void sha512_compress_nayuki(uint_64t state[8], const uint_8t block[128]);
|
||||
#endif
|
||||
#if defined(__cplusplus)
|
||||
@@ -173,7 +173,7 @@ void SSE4Transform(sha512_ctx* ctx, void* mp, uint_64t num_blks)
|
||||
}
|
||||
#endif
|
||||
|
||||
#if CRYPTOPP_BOOL_X86 || CRYPTOPP_BOOL_X32 || CRYPTOPP_BOOL_X64
|
||||
#if CRYPTOPP_BOOL_X64 || ((CRYPTOPP_BOOL_X86 || CRYPTOPP_BOOL_X32) && !defined (TC_MACOSX))
|
||||
|
||||
void SSE2Transform(sha512_ctx* ctx, void* mp, uint_64t num_blks)
|
||||
{
|
||||
@@ -216,7 +216,7 @@ void sha512_begin(sha512_ctx* ctx)
|
||||
else
|
||||
#endif
|
||||
|
||||
#if CRYPTOPP_BOOL_X86 || CRYPTOPP_BOOL_X32 || CRYPTOPP_BOOL_X64
|
||||
#if CRYPTOPP_BOOL_X64 || ((CRYPTOPP_BOOL_X86 || CRYPTOPP_BOOL_X32) && !defined (TC_MACOSX))
|
||||
if (HasSSE2() && HasMMX())
|
||||
transfunc = SSE2Transform;
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user