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

29 lines
801 B
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package org.bouncycastle.crypto.params;
import org.bouncycastle.crypto.CipherParameters;
/* loaded from: classes6.dex */
public class ParametersWithSalt implements CipherParameters {
private CipherParameters parameters;
private byte[] salt;
public byte[] getSalt() {
return this.salt;
}
public CipherParameters getParameters() {
return this.parameters;
}
public ParametersWithSalt(CipherParameters cipherParameters, byte[] bArr, int i, int i2) {
byte[] bArr2 = new byte[i2];
this.salt = bArr2;
this.parameters = cipherParameters;
System.arraycopy(bArr, i, bArr2, 0, i2);
}
public ParametersWithSalt(CipherParameters cipherParameters, byte[] bArr) {
this(cipherParameters, bArr, 0, bArr.length);
}
}