public class AEADParameters extends java.lang.Object implements CipherParameters
Modifier and Type | Field and Description |
---|---|
private byte[] |
associatedText |
private KeyParameter |
key |
private int |
macSize |
private byte[] |
nonce |
Constructor and Description |
---|
AEADParameters(KeyParameter key,
int macSize,
byte[] nonce,
byte[] associatedText)
Base constructor.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
getAssociatedText() |
KeyParameter |
getKey() |
int |
getMacSize() |
byte[] |
getNonce() |
private byte[] associatedText
private byte[] nonce
private KeyParameter key
private int macSize
public AEADParameters(KeyParameter key, int macSize, byte[] nonce, byte[] associatedText)
key
- key to be used by underlying ciphermacSize
- macSize in bitsnonce
- nonce to be usedassociatedText
- associated text, if anypublic KeyParameter getKey()
public int getMacSize()
public byte[] getAssociatedText()
public byte[] getNonce()