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/tdecryptographiccarddevice.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/tdecryptographiccarddevice.h')
-rw-r--r-- | tdecore/tdehw/tdecryptographiccarddevice.h | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/tdecore/tdehw/tdecryptographiccarddevice.h b/tdecore/tdehw/tdecryptographiccarddevice.h index fd5256d23..db0f08289 100644 --- a/tdecore/tdehw/tdecryptographiccarddevice.h +++ b/tdecore/tdehw/tdecryptographiccarddevice.h @@ -110,14 +110,29 @@ class TDECORE_EXPORT TDECryptographicCardDevice : public TDEGenericDevice * decrypt data originally encrypted using a public key from one of the certificates * stored on the card. * This operation takes place on the card, and in most cases will require PIN entry. + * This method decrypts one data object only * @param ciphertext Encrypted data * @param plaintext Decrypted data * @param errstr Pointer to TQString to be loaded with error description on failure - * @return 0 on success, -1 on general failure, -2 on encryption failure + * @return 0 on success, -1 on general failure, -2 on encryption failure, -3 on user cancel */ int decryptDataEncryptedWithCertPublicKey(TQByteArray &ciphertext, TQByteArray &plaintext, TQString *errstr=NULL); /** + * If monitoring of insert / remove events is enabled, and a card has been inserted, + * decrypt data originally encrypted using a public key from one of the certificates + * stored on the card. + * This operation takes place on the card, and in most cases will require PIN entry. + * This method is used to decrypt multiple data objects in one pass. + * @param cipherTextList Encrypted data object list + * @param plainTextList Decrypted data object list + * @param retcodes Return code for each data object + * @param errstr Pointer to TQString to be loaded with error description on failure + * @return 0 on success, -1 on general failure, -2 on encryption failure, -3 on user cancel + */ + int decryptDataEncryptedWithCertPublicKey(TQValueList<TQByteArray> &cipherTextList, TQValueList<TQByteArray> &plainTextList, TQValueList<int> &retcodes, TQString *errstr); + + /** * Create a new random key and encrypt with the public key * contained in the given certificate. * @param plaintext Generated (decrypted) random key |