mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2026-01-06 13:48:11 -06:00
Cryptography: Set 16-byte alignment for KEY_INFO structure that is used as input for Whirlpool hash. This helps improve performance.
This commit is contained in:
@@ -739,12 +739,14 @@ PCRYPTO_INFO crypto_open ()
|
||||
#endif // TC_WINDOWS_BOOT
|
||||
}
|
||||
|
||||
#ifndef TC_WINDOWS_BOOT
|
||||
void crypto_loadkey (PKEY_INFO keyInfo, char *lpszUserKey, int nUserKeyLen)
|
||||
{
|
||||
keyInfo->keyLength = nUserKeyLen;
|
||||
burn (keyInfo->userKey, sizeof (keyInfo->userKey));
|
||||
memcpy (keyInfo->userKey, lpszUserKey, nUserKeyLen);
|
||||
}
|
||||
#endif
|
||||
|
||||
void crypto_close (PCRYPTO_INFO cryptoInfo)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user