java.security.spec.AlgorithmParameterSpec
public class AEADParameterSpec
extends javax.crypto.spec.IvParameterSpec
Constructor | Description |
---|---|
AEADParameterSpec(byte[] nonce,
int macSizeInBits) |
Base constructor.
|
AEADParameterSpec(byte[] nonce,
int macSizeInBits,
byte[] associatedData) |
Base constructor with prepended associated data.
|
Modifier and Type | Method | Description |
---|---|---|
byte[] |
getAssociatedData() |
Return the associated data associated with this parameter spec.
|
int |
getMacSizeInBits() |
Return the size of the MAC associated with this parameter spec.
|
byte[] |
getNonce() |
Return the nonce (same as IV) associated with this parameter spec.
|
public AEADParameterSpec(byte[] nonce, int macSizeInBits)
nonce
- nonce/iv to be usedmacSizeInBits
- macSize in bitspublic AEADParameterSpec(byte[] nonce, int macSizeInBits, byte[] associatedData)
nonce
- nonce/iv to be usedmacSizeInBits
- macSize in bitsassociatedData
- associated data to be prepended to the cipher stream.public int getMacSizeInBits()
public byte[] getAssociatedData()
public byte[] getNonce()