FileDocCategorySizeDatePackage
IvParameter.javaAPI DocphoneME MR2 API (J2ME)2411Wed May 02 18:00:24 BST 2007com.sun.midp.crypto

IvParameter

public class IvParameter extends Object implements CryptoParameter
This 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[]
IV
Initial 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.

param
iv the buffer with the IV
param
offset the offset in iv where the IV starts
param
len the number of IV bytes

        IV = Util.cloneSubarray(iv, offset, len);
    
Methods Summary
public byte[]getIV()
Returns the initialization vector (IV).

return
the initialization vector (IV)

        return Util.cloneArray(IV);