Class SecureChannel

Object
   |
   +--SecureChannel

class SecureChannel


Class implementing a secure messaging channel
Defined in securechannel.js


Field Summary
 Object crypto
          
 Object policy
          
 
Constructor Summary
SecureChannel(<Crypto> crypto)
            Create a secure channel
 
Method Summary
 ByteString getIV()
           Return an initialisation vector based on the defined policy
 void setEncKey(<Key> key)
           Sets the key used for encryption
 void setEncSendSequenceCounter(<ByteString> ssc)
           Set the send sequence counter for encryption calculation
 void setMacKey(<Key> key)
           Sets the key used for message authentication
 void setMACSendSequenceCounter(<ByteString> ssc)
           Set the send sequence counter for MAC calculation
 void setSendSequenceCounterPolicy(<Number> policy)
           Sets the policy for handling send sequence counters
 void unwrap(<APDU> apdu)
           Unwrap a secure messaging APDU recovering the content
 void wrap(<APDU> apdu)
           Wrap an APDU for secure messaging
<static> ByteBuffer pad(<ByteBuffer> buffer, <Number> blocksize)
           Applies ISO padding to the input buffer
<static> ByteString removePadding(<ByteString> buffer)
           Removes the ISO padding

Field Detail

crypto

Object crypto

policy

Object policy

Constructor Detail

SecureChannel

SecureChannel(<Crypto> crypto)

Method Detail

getIV

ByteString getIV()

setEncKey

void setEncKey(<Key> key)

setEncSendSequenceCounter

void setEncSendSequenceCounter(<ByteString> ssc)

setMacKey

void setMacKey(<Key> key)

setMACSendSequenceCounter

void setMACSendSequenceCounter(<ByteString> ssc)

setSendSequenceCounterPolicy

void setSendSequenceCounterPolicy(<Number> policy)

unwrap

void unwrap(<APDU> apdu)

wrap

void wrap(<APDU> apdu)

pad

<static> ByteBuffer pad(<ByteBuffer> buffer, <Number> blocksize)

removePadding

<static> ByteString removePadding(<ByteString> buffer)


Documentation generated by JSDoc on Tue Sep 3 22:29:41 2013