| Modifier and Type | Field and Description |
|---|---|
| private final byte[] | |
| private final int |
| Access | Constructor and Description |
|---|---|
| public | AEADParameterSpec(byte[]
nonce/iv to be used nonce, int macSize in bits macSizeInBits)Base constructor. |
| public | AEADParameterSpec(byte[]
nonce/iv to be used nonce, int macSize in bits macSizeInBits, byte[] associated data to be prepended to the cipher stream. associatedData)Base constructor with prepended associated data. |
| Modifier and Type | Method and Description |
|---|---|
| public byte[] | Returns: the associated data, null if there isn't any.Return the associated data associated with this parameter spec. |
| public int | Returns: the MAC size in bits.Return the size of the MAC associated with this parameter spec. |
| public byte[] |
| associatedData | back to summary |
|---|---|
| private final byte[] associatedData | |
| macSizeInBits | back to summary |
|---|---|
| private final int macSizeInBits | |
| AEADParameterSpec | back to summary |
|---|---|
| public AEADParameterSpec(byte[] nonce, int macSizeInBits) Base constructor.
| |
| AEADParameterSpec | back to summary |
|---|---|
| public AEADParameterSpec(byte[] nonce, int macSizeInBits, byte[] associatedData) Base constructor with prepended associated data.
| |
| getAssociatedData | back to summary |
|---|---|
| public byte[] getAssociatedData() Return the associated data associated with this parameter spec.
| |
| getMacSizeInBits | back to summary |
|---|---|
| public int getMacSizeInBits() Return the size of the MAC associated with this parameter spec.
| |
| getNonce | back to summary |
|---|---|
| public byte[] getNonce() Return the nonce (same as IV) associated with this parameter spec.
| |