RC2ParameterSpec

public class RC2ParameterSpec extends Object
implements AlgorithmParameterSpec

This class specifies the parameters used with the RC2 algorithm.

The parameters consist of an effective key size and optionally an 8-byte initialization vector (IV) (only in feedback mode).

This class can be used to initialize a Cipher object that implements the RC2 algorithm.

Public Constructor Summary

RC2ParameterSpec(int effectiveKeyBits)
Constructs a parameter set for RC2 from the given effective key size (in bits).
RC2ParameterSpec(int effectiveKeyBits, byte[] iv)
Constructs a parameter set for RC2 from the given effective key size (in bits) and an 8-byte IV.
RC2ParameterSpec(int effectiveKeyBits, byte[] iv, int offset)
Constructs a parameter set for RC2 from the given effective key size (in bits) and IV.

Public Method Summary

boolean
equals(Object obj)
Tests for equality between the specified object and this object.
int
getEffectiveKeyBits()
Returns the effective key size in bits.
byte[]
getIV()
Returns the IV or null if this parameter set does not contain an IV.
int
hashCode()
Calculates a hash code value for the object.

Inherited Method Summary