Generated by JsDoc Toolkit 2.3.3-beta on Wed Nov 06 2013 17:43:37 GMT+0100 (MEZ)
HTML template: Codeview

Namespace sjcl.mode.ccm

CTR mode with CBC MAC.
Defined in: ccm.js.

Namespace Summary
Constructor Attributes Constructor Name and Description
 
Field Summary
Field Attributes Field Name and Description
<static> <constant>  
sjcl.mode.ccm.name
The name of the mode.
Method Summary
Method Attributes Method Name and Description
<static>  
sjcl.mode.ccm.decrypt(prf, ciphertext, iv, [], 64)
Decrypt in CCM mode.
<static>  
sjcl.mode.ccm.encrypt(prf, plaintext, iv, adata, tlen)
Encrypt in CCM mode.
Namespace Detail
sjcl.mode.ccm
Field Detail
<static> <constant> sjcl.mode.ccm.name
The name of the mode.
Method Detail
<static> {bitArray} sjcl.mode.ccm.decrypt(prf, ciphertext, iv, [], 64)
Decrypt in CCM mode.
Parameters:
{Object} prf
The pseudorandom function. It must have a block size of 16 bytes.
{bitArray} ciphertext
The ciphertext data.
{bitArray} iv
The initialization value.
{bitArray} [] Optional
adata The authenticated data.
{Number} 64 Optional
tlen the desired tag length, in bits.
Returns:
{bitArray} The decrypted data.
<static> {bitArray} sjcl.mode.ccm.encrypt(prf, plaintext, iv, adata, tlen)
Encrypt in CCM mode.
Parameters:
{Object} prf
The pseudorandom function. It must have a block size of 16 bytes.
{bitArray} plaintext
The plaintext data.
{bitArray} iv
The initialization value.
{bitArray} adata Optional, Default: []
The authenticated data.
{Number} tlen Optional, Default: 64
the desired tag length, in bits.
Returns:
{bitArray} The encrypted data, an array of bytes.