diff options
author | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2021-01-01 23:58:06 +0100 |
---|---|---|
committer | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2021-01-02 01:16:31 +0100 |
commit | 9881744c95737264c7cd9f13b3c70042c03584aa (patch) | |
tree | d3400963fd7884c674a622c052e23b585f3e9043 /src/Common/Crypto.c | |
parent | dc3700e8bb53bac72eb429554ef6a017ae071fde (diff) | |
download | VeraCrypt-9881744c95737264c7cd9f13b3c70042c03584aa.tar.gz VeraCrypt-9881744c95737264c7cd9f13b3c70042c03584aa.zip |
Windows: Add support for ARM64 platform (e.g. Microsoft Surface Pro X). System encryption still not implemented on ARM64
Diffstat (limited to 'src/Common/Crypto.c')
-rw-r--r-- | src/Common/Crypto.c | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/Common/Crypto.c b/src/Common/Crypto.c index 550de2b3..4745f981 100644 --- a/src/Common/Crypto.c +++ b/src/Common/Crypto.c @@ -1195,6 +1195,8 @@ BOOL IsAesHwCpuSupported () } return state && !HwEncryptionDisabled; +#elif defined (_M_ARM64) + return 0; #else return (HasAESNI() && !HwEncryptionDisabled)? TRUE : FALSE; #endif @@ -1476,3 +1478,29 @@ void VcUnprotectKeys (PCRYPTO_INFO pCryptoInfo, uint64 encID) #endif +#ifdef _M_ARM64 +/* dummy implementation that should never be called */ +void aes_hw_cpu_decrypt(const byte* ks, byte* data) +{ + ks = ks; + data = data; +} + +void aes_hw_cpu_decrypt_32_blocks(const byte* ks, byte* data) +{ + ks = ks; + data = data; +} + +void aes_hw_cpu_encrypt(const byte* ks, byte* data) +{ + ks = ks; + data = data; +} + +void aes_hw_cpu_encrypt_32_blocks(const byte* ks, byte* data) +{ + ks = ks; + data = data; +} +#endif |