Class SecureMessagingCommandAPDUDecoder
Decoder for a secure messaging APDU
Defined in: securechannel.js.
Constructor Attributes | Constructor Name and Description |
---|---|
SecureMessagingCommandAPDUDecoder(channel, apdu)
Creates a decoder for a single secure messaging command APDU
|
Method Attributes | Method Name and Description |
---|---|
Build the MAC input block
|
|
decryptBody(key)
Decrypt the body of a secure messaging APDU
|
|
getLe()
Return value of optional Le element with tag '97'
|
|
Verify the message authentication code (MAC)
|
Class Detail
SecureMessagingCommandAPDUDecoder(channel, apdu)
Creates a decoder for a single secure messaging command APDU
- Parameters:
- {SecureChannel} channel
- the secure channel object
- {APDU} apdu
- the secure messaging APDU
Method Detail
{ByteString}
buildMACInput()
Build the MAC input block
- Returns:
- the MAC calculation input block
{ByteString}
decryptBody(key)
Decrypt the body of a secure messaging APDU
- Parameters:
- {Key} key
- the encryption key
- Returns:
- the plain body
{Number}
getLe()
Return value of optional Le element with tag '97'
- Returns:
- the value of the Le element
{boolean}
verifyMAC()
Verify the message authentication code (MAC)
- Returns:
- true if the MAC is valid