Interface HardwareSecurity.DecryptionCallback
- Enclosing class:
- HardwareSecurity
public static interface HardwareSecurity.DecryptionCallback
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]
decryptSessionKey
(long keyId, int keyAlgorithm, byte[] sessionKeyData, int pkeskVersion) Delegate decryption of a Public-Key-Encrypted-Session-Key (PKESK) to an external API for dealing with hardware security modules such as smartcards or TPMs.
-
Method Details
-
decryptSessionKey
byte[] decryptSessionKey(long keyId, int keyAlgorithm, byte[] sessionKeyData, int pkeskVersion) throws HardwareSecurity.HardwareSecurityException Delegate decryption of a Public-Key-Encrypted-Session-Key (PKESK) to an external API for dealing with hardware security modules such as smartcards or TPMs. If decryption fails for some reason, a subclass of theHardwareSecurity.HardwareSecurityException
is thrown.- Parameters:
keyId
- id of the keykeyAlgorithm
- algorithmsessionKeyData
- encrypted session keypkeskVersion
- Public-Key Encrypted Session-Key Packet version- Returns:
- decrypted session key
- Throws:
HardwareSecurity.HardwareSecurityException
- exception
-