Class SecureMessagingCommandAPDUDecoder
Object
|
+--SecureMessagingCommandAPDUDecoder
- class
SecureMessagingCommandAPDUDecoder
Decoder for a secure messaging APDU
Defined in securechannel.js
Method Summary |
ByteString
|
buildMACInput()
Build the MAC input block
|
ByteString
|
decryptBody(<Key> key)
Decrypt the body of a secure messaging APDU
|
Number
|
getLe()
Return value of optional Le element with tag '97'
|
boolean
|
verifyMAC()
Verify the message authentication code (MAC)
|
apdu
Object apdu
channel
Object channel
tlvlist
Object tlvlist
SecureMessagingCommandAPDUDecoder
SecureMessagingCommandAPDUDecoder(<SecureChannel> channel, <APDU> apdu)
Creates a decoder for a single secure messaging command APDU
Parameters:
channel
- the secure channel object
apdu
- the secure messaging APDU
buildMACInput
ByteString buildMACInput()
Build the MAC input block
Returns:
the MAC calculation input block
decryptBody
ByteString decryptBody(<Key> key)
Decrypt the body of a secure messaging APDU
getLe
Number getLe()
Return value of optional Le element with tag '97'
Returns:
the value of the Le element
verifyMAC
boolean verifyMAC()
Verify the message authentication code (MAC)
Documentation generated by
JSDoc on Tue Sep 3 22:29:41 2013