package org.bouncycastle.crypto.params;

/* JADX INFO: loaded from: E:\ios\vf_dex\classes4.dex */
public class ParametersWithContext implements org.bouncycastle.crypto.CipherParameters {
    private org.bouncycastle.crypto.CipherParameters a;
    private byte[] b;

    public ParametersWithContext(org.bouncycastle.crypto.CipherParameters cipherParameters, byte[] bArr) {
        if (bArr == null) {
            throw new java.lang.NullPointerException("'context' cannot be null");
        }
        this.a = cipherParameters;
        this.b = org.bouncycastle.util.Arrays.j(bArr);
    }

    public void a(byte[] bArr, int i, int i2) {
        byte[] bArr2 = this.b;
        if (bArr2.length != i2) {
            throw new java.lang.IllegalArgumentException("len");
        }
        java.lang.System.arraycopy(bArr2, 0, bArr, i, i2);
    }

    public byte[] b() {
        return org.bouncycastle.util.Arrays.j(this.b);
    }

    public int c() {
        return this.b.length;
    }

    public org.bouncycastle.crypto.CipherParameters d() {
        return this.a;
    }
}
