public static final class RC2.Parameters extends GeneralParameters<GeneralAlgorithm> implements ParametersWithIV
Modifier and Type | Method and Description |
---|---|
int |
getEffectiveKeySizeInBits() |
byte[] |
getIV()
Return the initialization vector associated with this parameter set.
|
RC2.Parameters |
withEffectiveKeySizeInBits(int effectiveKeySizeInBits) |
RC2.Parameters |
withIV(byte[] iv)
Create a new parameter set with a different IV.
|
RC2.Parameters |
withIV(java.security.SecureRandom random)
Create a new parameter set with a different IV based on the output
of the passed in random.
|
getAlgorithm
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAlgorithm
public RC2.Parameters withEffectiveKeySizeInBits(int effectiveKeySizeInBits)
public RC2.Parameters withIV(byte[] iv)
ParametersWithIV
withIV
in interface ParametersWithIV
iv
- the IV to use.public RC2.Parameters withIV(java.security.SecureRandom random)
ParametersWithIV
withIV
in interface ParametersWithIV
random
- the SecureRandom to use as the source of IV data.public byte[] getIV()
ParametersWithIV
getIV
in interface ParametersWithIV
public int getEffectiveKeySizeInBits()