javax.crypto.spec
Class RC5ParameterSpec
java.lang.Object
|
+--javax.crypto.spec.RC5ParameterSpec
- public class RC5ParameterSpec
- extends java.lang.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.
- See Also:
AlgorithmParameterSpec
|
Constructor Summary |
RC5ParameterSpec(int version,
int rounds,
int 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. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
RC5ParameterSpec
public RC5ParameterSpec(int version,
int rounds,
int wordsize)
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:
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:
initVector - the byte array holding the IVoffset - the offset indicating the start position within the input IV byte array
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()
getRounds
public int getRounds()
getWordSize
public int getWordSize()