Class Index | File Index

Classes


Class SecureChannel

Class implementing a secure messaging channel
Defined in: securechannel.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
SecureChannel(crypto)
Create a secure channel
Method Summary
Method Attributes Method Name and Description
 
Return an initialisation vector based on the defined policy
<static>  
SecureChannel.pad(buffer, blocksize)
Applies ISO padding to the input buffer
<static>  
SecureChannel.removePadding(buffer)
Removes the ISO padding
 
setEncKey(key)
Sets the key used for encryption
 
Set the send sequence counter for encryption calculation
 
setMacKey(key)
Sets the key used for message authentication
 
Set the send sequence counter for MAC calculation
 
Sets the policy for handling send sequence counters See IsoSecureChannel for details
 
unwrap(apdu)
Unwrap a secure messaging APDU recovering the content
 
wrap(apdu)
Wrap an APDU for secure messaging
Class Detail
SecureChannel(crypto)
Create a secure channel
Parameters:
{Crypto} crypto
the crypto provider
Method Detail
{ByteString} getIV()
Return an initialisation vector based on the defined policy
Returns:
the IV

<static> {ByteBuffer} SecureChannel.pad(buffer, blocksize)
Applies ISO padding to the input buffer
Parameters:
{ByteBuffer} buffer
the input buffer
{Number} blocksize
the block size
Returns:
the buffer argument

<static> {ByteString} SecureChannel.removePadding(buffer)
Removes the ISO padding
Parameters:
{ByteString} buffer
the input with with padding
Returns:
the buffer without padding

setEncKey(key)
Sets the key used for encryption
Parameters:
{Key} key
the encryption key

setEncSendSequenceCounter(ssc)
Set the send sequence counter for encryption calculation
Parameters:
{ByteString} ssc
the send sequence counter

setMacKey(key)
Sets the key used for message authentication
Parameters:
{Key} key
the message authentication key

setMACSendSequenceCounter(ssc)
Set the send sequence counter for MAC calculation
Parameters:
{ByteString} ssc
the send sequence counter

setSendSequenceCounterPolicy(policy)
Sets the policy for handling send sequence counters See IsoSecureChannel for details
Parameters:
{Number} policy
one of IsoSecureChannel.SSC_DEFAULT_POLICY, SSC_SYNC_POLICY or SSC_SYNC_ENC_POLICY

unwrap(apdu)
Unwrap a secure messaging APDU recovering the content
Parameters:
{APDU} apdu
the APDU to unwrap

wrap(apdu)
Wrap an APDU for secure messaging
Parameters:
{APDU} apdu
the APDU to wrap

Documentation generated by JsDoc Toolkit 2.4.0 on Mon Jun 30 2014 21:39:53 GMT+0200 (CEST)