| Modifier and Type | Field and Description |
|---|---|
| protected final int |
| Access | Constructor and Description |
|---|---|
| protected | GeneralAuthParameters(GeneralAlgorithm
algorithm mode. algorithm, int block size of the cipher in bytes. blockSize, byte[] iv, or nonce, to be used with this algorithm. iv, int length of the checksum tag in bits. macSizeInBits)Base Constructor that takes an iv (nonce) and a tag length. |
| Modifier and Type | Method and Description |
|---|---|
| protected T | create(GeneralAlgorithm algorithm, byte[] iv)
Implements abstract org. |
| pack-priv abstract T | |
| public int | Returns: the MAC size in bits.Implements org. |
| public T | Returns: a new instance of our parameterized type with a new IV.the SecureRandom to use as the source of IV data. random, int the length (in bytes) of the IV to be generated. ivLen)Implements org. |
| public T | Returns: the new parameter set.bit length of the MAC length. macSizeInBits)Implements org. |
| macLenInBits | back to summary |
|---|---|
| protected final int macLenInBits | |
| GeneralAuthParameters | back to summary |
|---|---|
| protected GeneralAuthParameters(GeneralAlgorithm algorithm, int blockSize, byte[] iv, int macSizeInBits) Base Constructor that takes an iv (nonce) and a tag length.
| |
| create | back to summary |
|---|---|
| protected T create(GeneralAlgorithm algorithm, byte[] iv) Implements abstract org. | |
| create | back to summary |
|---|---|
| pack-priv abstract T create(GeneralAlgorithm algorithm, byte[] iv, int macSizeInBits) | |
| getMACSizeInBits | back to summary |
|---|---|
| public int getMACSizeInBits() Implements org. Return the size of the MAC these parameters are for.
| |
| withIV | back to summary |
|---|---|
| public T withIV(SecureRandom random, int ivLen) Implements org. Return an implementation of our parameterized type with an IV constructed from the passed in SecureRandom.
| |
| withMACSize | back to summary |
|---|---|
| public T withMACSize(int macSizeInBits) Implements org. Create a parameter set with the specified MAC size associated with it.
| |