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

28 lines
813 B
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package org.bouncycastle.jcajce;
import javax.crypto.interfaces.PBEKey;
import org.bouncycastle.crypto.CharToByteConverter;
import org.bouncycastle.util.Arrays;
/* loaded from: classes6.dex */
public class PBKDF2KeyWithParameters extends PBKDF2Key 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 PBKDF2KeyWithParameters(char[] cArr, CharToByteConverter charToByteConverter, byte[] bArr, int i) {
super(cArr, charToByteConverter);
this.salt = Arrays.clone(bArr);
this.iterationCount = i;
}
}