IvParameterSpecpublic class IvParameterSpec extends Object implements AlgorithmParameterSpecThis class specifies an initialization vector (IV).
Examples which use IVs are ciphers in feedback mode, e.g., DES in
CBC mode and RSA ciphers with OAEP encoding operation. |
Fields Summary |
---|
private byte[] | IVInitial vector. |
Constructors Summary |
---|
public IvParameterSpec(byte[] iv, int offset, int len)Uses the first len bytes in iv ,
beginning at offset inclusive, as the IV.
The bytes that constitute the IV are those between
iv[offset] and iv[offset+len-1] inclusive.
IV = new byte[len];
System.arraycopy(iv, offset, IV, 0, len);
|
Methods Summary |
---|
public byte[] | getIV()Returns the initialization vector (IV).
return Util.cloneArray(IV);
|
|