|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.crypto.spec.IvParameterSpec
Initialization vector (IV) 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) for being used by any algorithm that needs an Iv, e.g. when running a DES, TripleDES, IDEA,... cipher in CBC, PCBC, CFB or OFB mode.
AlgorithmParameterSpec
Constructor Summary | |
IvParameterSpec(byte[] iv)
Creates a IvParameterSpec from the given byte array. |
|
IvParameterSpec(byte[] iv,
int offset,
int len)
Creates an IvParameterSpec by using the given number of 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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public IvParameterSpec(byte[] iv)
iv
- the byte array holding the IVpublic IvParameterSpec(byte[] iv, int offset, int len)
iv
- the byte array holding the IVoffset
- the offset indicating the start position within the input IV byte arraylen
- the number bytes to be taken for the IVMethod Detail |
public byte[] getIV()
|
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 |