mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2025-11-11 02:58:02 -06:00
Windows Security: Add new entry point in driver that allows emergency clearing of all encryption keys from memory. This entry point requires administrative privileges and it will caused BSDO when system encryption is active. It can be useful for example to applications that monitors physical access to the machine and which need to erase sensitive key material from RAM when unauthorized access is detected.
This commit is contained in:
@@ -884,6 +884,16 @@ void crypto_loadkey (PKEY_INFO keyInfo, char *lpszUserKey, int nUserKeyLen)
|
||||
burn (keyInfo->userKey, sizeof (keyInfo->userKey));
|
||||
memcpy (keyInfo->userKey, lpszUserKey, nUserKeyLen);
|
||||
}
|
||||
|
||||
void crypto_eraseKeys (PCRYPTO_INFO cryptoInfo)
|
||||
{
|
||||
burn (cryptoInfo->ks, sizeof (cryptoInfo->ks));
|
||||
burn (cryptoInfo->ks2, sizeof (cryptoInfo->ks2));
|
||||
burn (cryptoInfo->master_keydata, sizeof (cryptoInfo->master_keydata));
|
||||
burn (cryptoInfo->k2, sizeof (cryptoInfo->k2));
|
||||
burn (&cryptoInfo->noIterations, sizeof (cryptoInfo->noIterations));
|
||||
burn (&cryptoInfo->volumePim, sizeof (cryptoInfo->volumePim));
|
||||
}
|
||||
#endif
|
||||
|
||||
void crypto_close (PCRYPTO_INFO cryptoInfo)
|
||||
|
||||
Reference in New Issue
Block a user