FileDocCategorySizeDatePackage
CCMParameters.javaAPI DocAndroid 1.5 API1030Wed May 06 22:41:06 BST 2009org.bouncycastle.crypto.params

CCMParameters

public class CCMParameters extends Object implements org.bouncycastle.crypto.CipherParameters

Fields Summary
private byte[]
associatedText
private byte[]
nonce
private KeyParameter
key
private int
macSize
Constructors Summary
public CCMParameters(KeyParameter key, int macSize, byte[] nonce, byte[] associatedText)
Base constructor.

param
key key to be used by underlying cipher
param
macSize macSize in bits
param
nonce nonce to be used
param
associatedText associated text, if any

        this.key = key;
        this.nonce = nonce;
        this.macSize = macSize;
        this.associatedText = associatedText;
    
Methods Summary
public byte[]getAssociatedText()

        return associatedText;
    
public KeyParametergetKey()

        return key;
    
public intgetMacSize()

        return macSize;
    
public byte[]getNonce()

        return nonce;