what-the-bank/sources/org/bouncycastle/jcajce/spec/PBKDF2KeySpec.java

26 lines
837 B
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package org.bouncycastle.jcajce.spec;
import javax.crypto.spec.PBEKeySpec;
import org.bouncycastle.asn1.DERNull;
import org.bouncycastle.asn1.pkcs.PKCSObjectIdentifiers;
import org.bouncycastle.asn1.x509.AlgorithmIdentifier;
/* loaded from: classes6.dex */
public class PBKDF2KeySpec extends PBEKeySpec {
private static final AlgorithmIdentifier defaultPRF = new AlgorithmIdentifier(PKCSObjectIdentifiers.id_hmacWithSHA1, DERNull.INSTANCE);
private AlgorithmIdentifier prf;
public boolean isDefaultPrf() {
return defaultPRF.equals(this.prf);
}
public AlgorithmIdentifier getPrf() {
return this.prf;
}
public PBKDF2KeySpec(char[] cArr, byte[] bArr, int i, int i2, AlgorithmIdentifier algorithmIdentifier) {
super(cArr, bArr, i, i2);
this.prf = algorithmIdentifier;
}
}