encryptMessage
Encrypt a message intended for the remote device.
This method returns SessionEstablishment
CBOR for the first call and SessionData
CBOR for subsequent calls. These CBOR data structures are defined in ISO 18013-5 9.1.1 Session encryption.
Return
the bytes of the SessionEstablishment
or SessionData
CBOR as described above.
Parameters
messagePlaintext
if not null
, the message to encrypt and include in SessionData
.
statusCode
if set, the status code to include in SessionData
.