Package org.bouncycastle.crypto.params
Class AEADParameters
java.lang.Object
org.bouncycastle.crypto.params.AEADParameters
- All Implemented Interfaces:
CipherParameters
- Direct Known Subclasses:
CCMParameters
-
Constructor Summary
ConstructorDescriptionAEADParameters
(KeyParameter key, int macSize, byte[] nonce) Base constructor.AEADParameters
(KeyParameter key, int macSize, byte[] nonce, byte[] associatedText) Base constructor. -
Method Summary
-
Constructor Details
-
AEADParameters
Base constructor.- Parameters:
key
- key to be used by underlying ciphermacSize
- macSize in bitsnonce
- nonce to be used
-
AEADParameters
Base constructor.- Parameters:
key
- key to be used by underlying ciphermacSize
- macSize in bitsnonce
- nonce to be usedassociatedText
- initial associated text, if any
-
-
Method Details
-
getKey
-
getMacSize
public int getMacSize() -
getAssociatedText
public byte[] getAssociatedText() -
getNonce
public byte[] getNonce()
-