what-the-bank/sources/org/bouncycastle/jcajce/PKCS12KeyWithParameters.java

33 lines
884 B
Java

package org.bouncycastle.jcajce;
import javax.crypto.interfaces.PBEKey;
import org.bouncycastle.util.Arrays;
/* loaded from: classes6.dex */
public class PKCS12KeyWithParameters extends PKCS12Key implements PBEKey {
private final int iterationCount;
private final byte[] salt;
@Override // javax.crypto.interfaces.PBEKey
public byte[] getSalt() {
return this.salt;
}
@Override // javax.crypto.interfaces.PBEKey
public int getIterationCount() {
return this.iterationCount;
}
public PKCS12KeyWithParameters(char[] cArr, byte[] bArr, int i) {
super(cArr);
this.salt = Arrays.clone(bArr);
this.iterationCount = i;
}
public PKCS12KeyWithParameters(char[] cArr, boolean z, byte[] bArr, int i) {
super(cArr, z);
this.salt = Arrays.clone(bArr);
this.iterationCount = i;
}
}