javax.crypto.spec
Class IvParameterSpec

java.lang.Object
  |
  +--javax.crypto.spec.IvParameterSpec
All Implemented Interfaces:
AlgorithmParameterSpec

public class IvParameterSpec
extends Object
implements AlgorithmParameterSpec

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.

Version:
File Revision 14
See Also:
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

IvParameterSpec

public IvParameterSpec(byte[] iv)
Creates a IvParameterSpec from the given byte array.
Parameters:
iv - the byte array holding the IV

IvParameterSpec

public 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.
Parameters:
iv - the byte array holding the IV
offset - the offset indicating the start position within the input IV byte array
len - the number bytes to be taken for the IV
Method Detail

getIV

public byte[] getIV()
Returns a copy of the initialization vector (IV) as byte array representation.
Returns:
a copy of the initialization vector (IV) as byte array representation

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).

IAIK-JCE 3.1 with IAIK-JCE CC Core 3.1, (c) 1997-2004 IAIK