javax.crypto.spec
Class RC5ParameterSpec

java.lang.Object
  |
  +--javax.crypto.spec.RC5ParameterSpec
All Implemented Interfaces:
AlgorithmParameterSpec

public class RC5ParameterSpec
extends Object
implements AlgorithmParameterSpec

RC5 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 RC5 algorithm.

Version:
File Revision 17
See Also:
AlgorithmParameterSpec

Constructor Summary
RC5ParameterSpec(int version, int rounds, int wordsize)
          Creates a RC5ParameterSpec from given version, rounds and wordsize.
RC5ParameterSpec(int version, int rounds, int wordsize, byte[] initVector)
          Creates a RC5 Parameter specification by using the first 8 bytes of the supplied byte array as initialization vector (IV).
RC5ParameterSpec(int version, int rounds, int wordsize, byte[] initVector, int offset)
          Creates a RC5 Parameter specification by using 8 bytes of the supplied byte array as IV, beginning at the given offset.
 
Method Summary
 byte[] getIV()
          Returns a copy of the initialization vector (IV) as byte array representation.
 int getRounds()
          Returns the rounds number.
 int getVersion()
          Returns the version number.
 int getWordSize()
          Returns the word size.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RC5ParameterSpec

public RC5ParameterSpec(int version,
                        int rounds,
                        int wordsize)
Creates a RC5ParameterSpec from given version, rounds and wordsize.
Parameters:
version - the version number
rounds - the number of rounds
wordsize - the wordsize (block size in bits)

RC5ParameterSpec

public RC5ParameterSpec(int version,
                        int rounds,
                        int wordsize,
                        byte[] initVector)
Creates a RC5 Parameter specification by using the first 8 bytes of the supplied byte array as initialization vector (IV).
Parameters:
version - the version number
rounds - the number of rounds
wordsize - the wordsize (block size in bits)
initVector - the byte array holding the IV

RC5ParameterSpec

public RC5ParameterSpec(int version,
                        int rounds,
                        int wordsize,
                        byte[] initVector,
                        int offset)
Creates a RC5 Parameter specification by using 8 bytes of the supplied byte array as IV, beginning at the given offset.
Parameters:
version - the version number
rounds - the number of rounds
wordsize - the wordsize (block size in bits)
initVector - the byte array holding the IV
offset - the offset indicating the start position within the input IV byte array
Method Detail

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

getVersion

public int getVersion()
Returns the version number.
Returns:
the version

getRounds

public int getRounds()
Returns the rounds number.
Returns:
the number of rounds

getWordSize

public int getWordSize()
Returns the word size.
Returns:
the word size (block size in bits)

This Javadoc may contain text parts from Internet Standard specifications (RFC 2459, 3280, 3039, 2560, 1521, 821, 822, 2253, 1319, 1321, ,2630, 2631, 2268, 3058, 2984, 2104, 2144, 2040, 2311, 2279, see copyright note) and RSA Data Security Public-Key Cryptography Standards (PKCS#1,3,5,7,8,9,10,12, see copyright note).

IAIK-JCE 3.1 with IAIK-JCE CC Core 3.1, (c) 1997-2004 IAIK