what-the-bank/sources/org/bouncycastle/crypto/params/ParametersWithIV.java

29 lines
787 B
Java

package org.bouncycastle.crypto.params;
import org.bouncycastle.crypto.CipherParameters;
/* loaded from: classes6.dex */
public class ParametersWithIV implements CipherParameters {
private byte[] iv;
private CipherParameters parameters;
public CipherParameters getParameters() {
return this.parameters;
}
public byte[] getIV() {
return this.iv;
}
public ParametersWithIV(CipherParameters cipherParameters, byte[] bArr, int i, int i2) {
byte[] bArr2 = new byte[i2];
this.iv = bArr2;
this.parameters = cipherParameters;
System.arraycopy(bArr, i, bArr2, 0, i2);
}
public ParametersWithIV(CipherParameters cipherParameters, byte[] bArr) {
this(cipherParameters, bArr, 0, bArr.length);
}
}