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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user