declare namespace javax { namespace crypto { namespace spec { /** * 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. * @author Jan Luehe * @since 1.4 */ // @ts-ignore class IvParameterSpec extends java.lang.Object implements java.security.spec.AlgorithmParameterSpec { /** * Creates an IvParameterSpec object using the bytes in iv * as the IV. * @param iv the buffer with the IV. The contents of the * buffer are copied to protect against subsequent modification. * @throws NullPointerException if iv is null */ // @ts-ignore constructor(iv: number /*byte*/[]) /** * Creates an IvParameterSpec object using 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. The first len * bytes of the buffer beginning at offset inclusive * are copied to protect against subsequent modification. * @param offset the offset in iv where the IV * starts. * @param len the number of IV bytes. * @throws IllegalArgumentException if iv is null * or {#code (iv.length - offset < len)} * @throws ArrayIndexOutOfBoundsException is thrown if offset * or len index bytes outside the iv. */ // @ts-ignore constructor(iv: number /*byte*/[], offset: number /*int*/, len: number /*int*/) /** * Returns the initialization vector (IV). * @return the initialization vector (IV). Returns a new array * each time this method is called. */ // @ts-ignore public getIV(): number /*byte*/[] } } } }