1
0
mirror of https://github.com/veracrypt/VeraCrypt.git synced 2025-11-12 19:38:26 -06:00

Crypto: Use Hyper-V AES-NI detection workaround when displaying AES hardware availability in GUI.

This commit is contained in:
Mounir IDRASSI
2016-07-29 15:50:30 +02:00
parent 2389561406
commit fe31cf5b83
4 changed files with 84 additions and 48 deletions

View File

@@ -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);