    001    package org.bouncycastle.crypto.params;
    002
    003    import org.bouncycastle.crypto.CipherParameters;
    004
    005    public class ParametersWithIV implements CipherParameters
    006    {
    007        private byte[] iv;
    008        private CipherParameters parameters;
    009
    010        public ParametersWithIV(CipherParameters par1CipherParameters, byte[] par2ArrayOfByte, int par3, int par4)
    011        {
    012            this.iv = new byte[par4];
    013            this.parameters = par1CipherParameters;
    014            System.arraycopy(par2ArrayOfByte, par3, this.iv, 0, par4);
    015        }
    016
    017        public byte[] getIV()
    018        {
    019            return this.iv;
    020        }
    021
    022        public CipherParameters getParameters()
    023        {
    024            return this.parameters;
    025        }
    026    }