package org.bouncycastle.jce.spec; import java.security.spec.AlgorithmParameterSpec; import org.bouncycastle.util.Arrays; /* loaded from: classes6.dex */ public class IESParameterSpec implements AlgorithmParameterSpec { private int cipherKeySize; private byte[] derivation; private byte[] encoding; private int macKeySize; private byte[] nonce; private boolean usePointCompression; public void setPointCompression(boolean z) { this.usePointCompression = z; } public boolean getPointCompression() { return this.usePointCompression; } public byte[] getNonce() { return Arrays.clone(this.nonce); } public int getMacKeySize() { return this.macKeySize; } public byte[] getEncodingV() { return Arrays.clone(this.encoding); } public byte[] getDerivationV() { return Arrays.clone(this.derivation); } public int getCipherKeySize() { return this.cipherKeySize; } public IESParameterSpec(byte[] bArr, byte[] bArr2, int i, int i2, byte[] bArr3, boolean z) { if (bArr != null) { byte[] bArr4 = new byte[bArr.length]; this.derivation = bArr4; System.arraycopy(bArr, 0, bArr4, 0, bArr.length); } else { this.derivation = null; } if (bArr2 != null) { byte[] bArr5 = new byte[bArr2.length]; this.encoding = bArr5; System.arraycopy(bArr2, 0, bArr5, 0, bArr2.length); } else { this.encoding = null; } this.macKeySize = i; this.cipherKeySize = i2; this.nonce = Arrays.clone(bArr3); this.usePointCompression = z; } public IESParameterSpec(byte[] bArr, byte[] bArr2, int i, int i2, byte[] bArr3) { this(bArr, bArr2, i, i2, bArr3, false); } public IESParameterSpec(byte[] bArr, byte[] bArr2, int i, int i2) { this(bArr, bArr2, i, i2, null, false); } public IESParameterSpec(byte[] bArr, byte[] bArr2, int i) { this(bArr, bArr2, i, -1, null, false); } }