mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2025-11-11 11:08:02 -06:00
Linux/MacOSX: use x64 optimized SHA256 implementation instead of limiting it to Windows.
This commit is contained in:
@@ -774,7 +774,7 @@ void sha256_begin(sha256_ctx* ctx)
|
|||||||
if (!sha256transfunc)
|
if (!sha256transfunc)
|
||||||
{
|
{
|
||||||
#ifndef NO_OPTIMIZED_VERSIONS
|
#ifndef NO_OPTIMIZED_VERSIONS
|
||||||
#ifdef _M_X64
|
#ifdef CRYPTOPP_BOOL_X64
|
||||||
if (g_isIntel && HasSAVX2() && HasSBMI2())
|
if (g_isIntel && HasSAVX2() && HasSBMI2())
|
||||||
sha256transfunc = Avx2Sha256Transform;
|
sha256transfunc = Avx2Sha256Transform;
|
||||||
else if (g_isIntel && HasSAVX())
|
else if (g_isIntel && HasSAVX())
|
||||||
|
|||||||
Reference in New Issue
Block a user