javax.crypto.spec
Class RC2ParameterSpec

java.lang.Object
  |
  +--javax.crypto.spec.RC2ParameterSpec

public class RC2ParameterSpec
extends java.lang.Object
implements AlgorithmParameterSpec

RC2 parameter specification.


Attention:  This is not a SUN implementation!

This class has been developed by IAIK according to the documentation publically available.
For SUNīs documentation of this class see http://java.sun.com/security/JCE1.2/spec/apidoc/index.html


This class represents an initialization vector (IV), used as parameter by the RC2 algorithm.

See Also:
AlgorithmParameterSpec

Constructor Summary
RC2ParameterSpec(int effectiveKeyBits)
           
RC2ParameterSpec(int effectiveKeyBits, byte[] initVector)
          Creates a RC2 Parameter specification by using the first 8 bytes of the supplied byte array as initialization vector (IV).
RC2ParameterSpec(int effectiveKeyBits, byte[] initVector, int offset)
          Creates a RC2 Parameter specification by using 8 bytes of the supplied byte array as IV, beginning at the given offset.
 
Method Summary
 int getEffectiveKeyBits()
          Return the number of effective key bits.
 byte[] getIV()
          Returns a copy of the initialization vector (IV) as byte array representation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RC2ParameterSpec

public RC2ParameterSpec(int effectiveKeyBits)

RC2ParameterSpec

public RC2ParameterSpec(int effectiveKeyBits,
                        byte[] initVector)
Creates a RC2 Parameter specification by using the first 8 bytes of the supplied byte array as initialization vector (IV).
Parameters:
initVector - the byte array holding the IV

RC2ParameterSpec

public RC2ParameterSpec(int effectiveKeyBits,
                        byte[] initVector,
                        int offset)
Creates a RC2 Parameter specification by using 8 bytes of the supplied byte array as IV, beginning at the given offset.
Parameters:
initVector - the byte array holding the IV
offset - the offset indicating the start position within the input IV byte array
Method Detail

getEffectiveKeyBits

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

getIV

public byte[] getIV()
Returns a copy of the initialization vector (IV) as byte array representation.
Returns:
a copy of the initialization vector (IV) as byte array representation