javax.crypto.spec
public class RC5ParameterSpec extends Object implements AlgorithmParameterSpec
Since: 1.4
Constructor Summary | |
---|---|
RC5ParameterSpec(int version, int rounds, int wordSize)
Create RC5 parameters without an IV.
| |
RC5ParameterSpec(int version, int rounds, int wordSize, byte[] iv)
Create RC5 parameters with an IV. | |
RC5ParameterSpec(int version, int rounds, int wordSize, byte[] iv, int off)
Create RC5 parameters with an IV. |
Method Summary | |
---|---|
boolean | equals(Object o) |
byte[] | getIV()
Return the initializaiton vector, or null if none was
specified.
|
int | getRounds()
Get the number of rounds.
|
int | getVersion()
Get the version number.
|
int | getWordSize()
Get the word size, in bits.
|
int | hashCode() |
Parameters: version The version number. rounds The number of rounds. wordSize The size of a word, in bits.
iv
in
the range [0, 2*(wordSize/8)-1]
are used.
Parameters: version The version number. rounds The number of rounds. wordSize The size of a word, in bits. iv The IV data.
iv
in
the range [off, off+2*(wordSize/8)-1]
are used.
Parameters: version The version number. rounds The number of rounds. wordSize The size of a word, in bits. iv The IV data. off From where in the array the IV starts.
null
if none was
specified.
Returns: The IV, or null.
Returns: The number of rounds.
Returns: The version number.
Returns: The word size, in bits.