|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.crypto.spec.RC2ParameterSpec
RC2 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 RC2 algorithm.
AlgorithmParameterSpec
Constructor Summary | |
RC2ParameterSpec(int effectiveKeyBits)
Creates a RC2ParametersSpec from the given effectiveKeyBits value. |
|
RC2ParameterSpec(int effectiveKeyBits,
byte[] initVector)
Creates a RC2 Parameter specification by using the first 8 bytes of the supplied byte array as initialization vector (IV). |
|
RC2ParameterSpec(int effectiveKeyBits,
byte[] initVector,
int offset)
Creates a RC2 Parameter specification by using 8 bytes of the supplied byte array as IV, beginning at the given offset. |
Method Summary | |
boolean |
equals(Object otherObject)
This object and the other object are considered equal if the other object is an instance of this class and if their effective key sizes and IVs are equal (they are also considered equal if both are null). |
int |
getEffectiveKeyBits()
Return the number of effective key bits. |
byte[] |
getIV()
Returns a copy of the initialization vector (IV) as byte array representation. |
int |
hashCode()
Calculate a hash code for this object. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public RC2ParameterSpec(int effectiveKeyBits)
effectiveKeyBits
- the number of effective key bitspublic RC2ParameterSpec(int effectiveKeyBits, byte[] initVector)
effectiveKeyBits
- the number of effective key bitsinitVector
- the byte array holding the IVpublic RC2ParameterSpec(int effectiveKeyBits, byte[] initVector, int offset)
effectiveKeyBits
- the number of effective key bitsinitVector
- the byte array holding the IVoffset
- the offset indicating the start position within the input IV byte arrayMethod Detail |
public int getEffectiveKeyBits()
public byte[] getIV()
public boolean equals(Object otherObject)
equals
in class Object
otherObject
- The other object for comparison.true
, if effective key sizes and IVs are equal.
false
, otherwise.public int hashCode()
hashCode
in class Object
|
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 |