T
- the actual parameters type that extends this class.public abstract class GeneralParametersWithIV<T extends GeneralParameters> extends GeneralParameters<GeneralAlgorithm> implements ParametersWithIV<T>
Modifier and Type | Field and Description |
---|---|
protected int |
blockSize |
protected byte[] |
iv |
Modifier and Type | Method and Description |
---|---|
byte[] |
getIV()
Return a copy of the current IV value.
|
T |
withIV(byte[] iv)
Return an implementation of our parameterized type containing the passed in IV.
|
T |
withIV(java.security.SecureRandom random)
Return an implementation of our parameterized type with an IV constructed from the passed in SecureRandom.
|
getAlgorithm
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAlgorithm
public byte[] getIV()
getIV
in interface ParametersWithIV<T extends GeneralParameters>
public T withIV(java.security.SecureRandom random)
withIV
in interface ParametersWithIV<T extends GeneralParameters>
random
- the SecureRandom to use as the source of IV data.public T withIV(byte[] iv)
withIV
in interface ParametersWithIV<T extends GeneralParameters>
iv
- the bytes making up the iv, or nonce, to use.