java.lang.Object | |
↳ | javax.crypto.spec.RC5ParameterSpec |
The algorithm parameter specification for the RC5 algorithm.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a new
RC5ParameterSpec instance with the specified
version, round count an word size (in bits). | |||||||||||
Creates a new
RC5ParameterSpec instance with the specified
version, round count, word size (in bits) and an initialization
vector. | |||||||||||
Creates a new
RC5ParameterSpec instance with the specified
version, round count, wordSize (in bits), an initialization vector
and an offset. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Compares the specified object with this
RC5ParameterSpec
instance. | |||||||||||
Returns a copy of the initialization vector.
| |||||||||||
Returns the round count.
| |||||||||||
Returns the version.
| |||||||||||
Returns the word size (in bits).
| |||||||||||
Returns the hash code of this
RC5ParameterSpec instance. |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class java.lang.Object
|
Creates a new RC5ParameterSpec
instance with the specified
version, round count an word size (in bits).
version | the version. |
---|---|
rounds | the round count. |
wordSize | the word size (in bits). |
Creates a new RC5ParameterSpec
instance with the specified
version, round count, word size (in bits) and an initialization
vector.
The size of the initialization vector must be at least
2 * (wordSize / 8)
bytes which are copied to protect them
against modification.
version | the version. |
---|---|
rounds | the round count. |
wordSize | the word size (in bits). |
iv | the initialization vector. |
IllegalArgumentException | if the initialization vector is null or shorter than 2
* (wordSize / 8) .
|
---|
Creates a new RC5ParameterSpec
instance with the specified
version, round count, wordSize (in bits), an initialization vector
and an offset.
The size of the initialization vector must be at least
offset + (2 * (wordSize / 8))
bytes. The bytes starting at
offset
are copied to protect them against modification.
version | the version. |
---|---|
rounds | the round count. |
wordSize | the word size (in bits). |
iv | the initialization vector. |
offset | the offset in the initialization vector. |
IllegalArgumentException | if the initialization vector is null of shorter than
offset + (2 * (wordSize / 8)) . |
---|---|
ArrayIndexOutOfBoundsException | if offset is negative.
|
Compares the specified object with this RC5ParameterSpec
instance.
obj | the object to compare. |
---|
Returns a copy of the initialization vector.
Returns the round count.
Returns the version.
Returns the word size (in bits).
Returns the hash code of this RC5ParameterSpec
instance.