1
0
mirror of https://github.com/veracrypt/VeraCrypt.git synced 2025-11-11 02:58:02 -06:00

Windows: Add support for ARM64 platform (e.g. Microsoft Surface Pro X). System encryption still not implemented on ARM64

This commit is contained in:
Mounir IDRASSI
2021-01-01 23:58:06 +01:00
parent dc3700e8bb
commit 9881744c95
28 changed files with 5320 additions and 24 deletions

View File

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