diff options
author | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2016-07-29 15:50:30 +0200 |
---|---|---|
committer | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2016-07-29 22:40:44 +0200 |
commit | fe31cf5b83383cbc02f5bc31411367c0128f2df6 (patch) | |
tree | b43bf3351bf30671973ae39b7dc756568168e947 /src/Crypto/Aes_hw_cpu.asm | |
parent | 2389561406cb9e498008f884bed36e6e9d78ea80 (diff) | |
download | VeraCrypt-fe31cf5b83383cbc02f5bc31411367c0128f2df6.tar.gz VeraCrypt-fe31cf5b83383cbc02f5bc31411367c0128f2df6.zip |
Crypto: Use Hyper-V AES-NI detection workaround when displaying AES hardware availability in GUI.
Diffstat (limited to 'src/Crypto/Aes_hw_cpu.asm')
-rw-r--r-- | src/Crypto/Aes_hw_cpu.asm | 25 |
1 files changed, 14 insertions, 11 deletions
diff --git a/src/Crypto/Aes_hw_cpu.asm b/src/Crypto/Aes_hw_cpu.asm index faaba4f3..edc20b29 100644 --- a/src/Crypto/Aes_hw_cpu.asm +++ b/src/Crypto/Aes_hw_cpu.asm @@ -286,17 +286,20 @@ ; byte is_aes_hw_cpu_supported (); - export_function is_aes_hw_cpu_supported - push %[R]bx - - mov eax, 1 - cpuid - mov eax, ecx - shr eax, 25 - and eax, 1 - - pop %[R]bx - ret +; We comment this since we have an alternative C implementation +; that supports Hyper-V detection workaround +; +; export_function is_aes_hw_cpu_supported +; push %[R]bx +; +; mov eax, 1 +; cpuid +; mov eax, ecx +; shr eax, 25 +; and eax, 1 +; +; pop %[R]bx +; ret ; void aes_hw_cpu_decrypt (const byte *ks, byte *data); |