diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2015-09-14 20:33:12 -0500 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2015-09-14 20:33:12 -0500 |
commit | 64fdd666ffad209bf51b73530b80e6868507e67c (patch) | |
tree | 93641f2c532c02909a4285e33f3c30e7fbc2bb9c /tdecore/tdehw/tdestoragedevice.h | |
parent | 402781f094e9a2450942f9d58215da281ba080c2 (diff) | |
download | tdelibs-64fdd666ffad209bf51b73530b80e6868507e67c.tar.gz tdelibs-64fdd666ffad209bf51b73530b80e6868507e67c.zip |
Add ability to decrypt multiple data objects in the same session using a cryptographic card
Add LUKS key verification routine
Diffstat (limited to 'tdecore/tdehw/tdestoragedevice.h')
-rw-r--r-- | tdecore/tdehw/tdestoragedevice.h | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/tdecore/tdehw/tdestoragedevice.h b/tdecore/tdehw/tdestoragedevice.h index d3d797686..b5922eec9 100644 --- a/tdecore/tdehw/tdestoragedevice.h +++ b/tdecore/tdehw/tdestoragedevice.h @@ -368,13 +368,27 @@ class TDECORE_EXPORT TDEStorageDevice : public TDEGenericDevice bool cryptOperationsUnlockPasswordSet(); /** - * Adds a new key to the specific keyslot, overwriting the existing key if present + * Checks the preloaded unlock password against the specified keyslot + * + * @param keyslot Keyslot number + * @return TDELUKSResult::TDELUKSResult containing the status code returned + * from the operation, or TDELUKSResult::LUKSNotSupported if LUKS support unavailable + * @return TDELUKSResult::Success on success + * + * @see cryptSetOperationsUnlockPassword + */ + TDELUKSResult::TDELUKSResult cryptCheckKey(unsigned int keyslot); + + /** + * Adds a new key to the specified keyslot, overwriting the existing key if present * * @param keyslot New keyslot number * @param password New keyslot password * @return TDELUKSResult::TDELUKSResult containing the status code returned * from the operation, or TDELUKSResult::LUKSNotSupported if LUKS support unavailable * @return TDELUKSResult::Success on success + * + * @see cryptSetOperationsUnlockPassword */ TDELUKSResult::TDELUKSResult cryptAddKey(unsigned int keyslot, TQByteArray password); |