|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.crypto.spec.RC5ParameterSpec
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.
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 |
public RC5ParameterSpec(int version, int rounds, int wordsize)
version
- the version numberrounds
- the number of roundswordsize
- the wordsize (block size in bits)public RC5ParameterSpec(int version, int rounds, int wordsize, byte[] initVector)
version
- the version numberrounds
- the number of roundswordsize
- the wordsize (block size in bits)initVector
- the byte array holding the IVpublic RC5ParameterSpec(int version, int rounds, int wordsize, byte[] initVector, int offset)
version
- the version numberrounds
- the number of roundswordsize
- the wordsize (block size in bits)initVector
- the byte array holding the IVoffset
- the offset indicating the start position within the input IV byte arrayMethod Detail |
public byte[] getIV()
public int getVersion()
public int getRounds()
public int getWordSize()
|
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). | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |