javax.crypto.spec

Class RC2ParameterSpec

public class RC2ParameterSpec extends Object implements AlgorithmParameterSpec

A wrapper for parameters for the RC2 block cipher ("RC" means either "Rivest Cipher" or "Ron's Code", depending upon who you ask and when).

Since: 1.4

Constructor Summary
RC2ParameterSpec(int effectiveKeyBits)
Create RC2 parameters without an IV.
RC2ParameterSpec(int effectiveKeyBits, byte[] iv)
Create RC2 parameters with an IV.
RC2ParameterSpec(int effectiveKeyBits, byte[] iv, int offset)
Create RC2 parameters with an IV.
Method Summary
booleanequals(Object o)
intgetEffectiveKeyBits()
Get the number of effective key bits.
byte[]getIV()
Return the initialization vector, or null if none was specified.
inthashCode()

Constructor Detail

RC2ParameterSpec

public RC2ParameterSpec(int effectiveKeyBits)
Create RC2 parameters without an IV.

Parameters: effectiveKeyBits The number of effective key bits.

RC2ParameterSpec

public RC2ParameterSpec(int effectiveKeyBits, byte[] iv)
Create RC2 parameters with an IV.

Parameters: effectiveKeyBits The number of effective key bits. iv The IV; the first eight bytes of this array are used.

RC2ParameterSpec

public RC2ParameterSpec(int effectiveKeyBits, byte[] iv, int offset)
Create RC2 parameters with an IV.

Parameters: effectiveKeyBits The number of effective key bits. iv The IV; the first eight bytes of this array after offset are used. offset From whence to start in the array.

Method Detail

equals

public boolean equals(Object o)

getEffectiveKeyBits

public int getEffectiveKeyBits()
Get the number of effective key bits.

Returns: The numer of effective key bits.

getIV

public byte[] getIV()
Return the initialization vector, or null if none was specified.

Returns: The IV, or null.

hashCode

public int hashCode()