hwsecurity-openpgp / de.cotech.hw.openpgp.pairedkey / PairedDecryptor / decryptSessionSecret /
decryptSessionSecret
open fun decryptSessionSecret(encryptedData: Array< Byte>): ByteSecret
Decrypts data using the injected OpenPgpSecurityKey, PinProvider, and PairedSecurityKey.
Parameters
Name | Summary |
---|---|
encryptedData | the data to decrypt |
Throws
Name | Summary |
---|---|
java.io.IOException | if communication with the card failed |
de.cotech.hw.openpgp.pairedkey.PairedSecurityKeyException | if the connected security key doesn’t match the paired one |