what-the-bank/sources/org/bouncycastle/jcajce/PBKDF1KeyWithParameters.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 PBKDF1KeyWithParameters extends PBKDF1Key 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 PBKDF1KeyWithParameters(char[] cArr, CharToByteConverter charToByteConverter, byte[] bArr, int i) {
super(cArr, charToByteConverter);
this.salt = Arrays.clone(bArr);
this.iterationCount = i;
}
}