Windows EFI: don't use optimized Serpent implementation for EFI bootloader because lack of C++ support in EDKII framework
This commit is contained in:
parent
0ac4009720
commit
5547a605bd
|
@ -232,7 +232,7 @@ void EncipherBlocks (int cipher, void *dataPtr, void *ks, size_t blockCount)
|
||||||
KeRestoreFloatingPointState (&floatingPointState);
|
KeRestoreFloatingPointState (&floatingPointState);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
#if CRYPTOPP_BOOL_SSE2_INTRINSICS_AVAILABLE
|
#if CRYPTOPP_BOOL_SSE2_INTRINSICS_AVAILABLE && !defined (_UEFI)
|
||||||
else if (cipher == SERPENT
|
else if (cipher == SERPENT
|
||||||
&& (blockCount >= 4)
|
&& (blockCount >= 4)
|
||||||
&& HasSSE2()
|
&& HasSSE2()
|
||||||
|
@ -327,7 +327,7 @@ void DecipherBlocks (int cipher, void *dataPtr, void *ks, size_t blockCount)
|
||||||
KeRestoreFloatingPointState (&floatingPointState);
|
KeRestoreFloatingPointState (&floatingPointState);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
#if CRYPTOPP_BOOL_SSE2_INTRINSICS_AVAILABLE
|
#if CRYPTOPP_BOOL_SSE2_INTRINSICS_AVAILABLE && !defined (_UEFI)
|
||||||
else if (cipher == SERPENT
|
else if (cipher == SERPENT
|
||||||
&& (blockCount >= 4)
|
&& (blockCount >= 4)
|
||||||
&& HasSSE2()
|
&& HasSSE2()
|
||||||
|
@ -415,7 +415,7 @@ BOOL CipherSupportsIntraDataUnitParallelization (int cipher)
|
||||||
{
|
{
|
||||||
return (cipher == AES && IsAesHwCpuSupported())
|
return (cipher == AES && IsAesHwCpuSupported())
|
||||||
|| (cipher == GOST89)
|
|| (cipher == GOST89)
|
||||||
#if CRYPTOPP_BOOL_SSE2_INTRINSICS_AVAILABLE
|
#if CRYPTOPP_BOOL_SSE2_INTRINSICS_AVAILABLE && !defined (_UEFI)
|
||||||
|| (cipher == SERPENT && HasSSE2())
|
|| (cipher == SERPENT && HasSSE2())
|
||||||
#endif
|
#endif
|
||||||
;
|
;
|
||||||
|
|
|
@ -193,7 +193,7 @@ typedef struct
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "Aes_hw_cpu.h"
|
#include "Aes_hw_cpu.h"
|
||||||
#if !defined (TC_WINDOWS_BOOT)
|
#if !defined (TC_WINDOWS_BOOT) && !defined (_UEFI)
|
||||||
# include "SerpentFast.h"
|
# include "SerpentFast.h"
|
||||||
#else
|
#else
|
||||||
# include "Serpent.h"
|
# include "Serpent.h"
|
||||||
|
|
Loading…
Reference in New Issue