decryptMessage

fun decryptMessage(messageData: ByteArray): Pair<ByteArray?, Long?>

Decrypts a message received from the remote device.

This method expects the passed-in data to conform to the SessionData DDL as defined in ISO 18013-5 9.1.1 Session encryption.

Return

The decrypted message as data and status.

Parameters

messageData

the bytes of the SessionData CBOR as described above.

Throws

if the passed in data does not conform to the CDDL.

if decryption fails.