IvParameterpublic class IvParameter extends Object implements CryptoParameterThis 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 IvParameter(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 = Util.cloneSubarray(iv, offset, len);
|
Methods Summary |
---|
public byte[] | getIV()Returns the initialization vector (IV).
return Util.cloneArray(IV);
|
|