45 lines
1.4 KiB
Java
45 lines
1.4 KiB
Java
|
package org.bouncycastle.asn1.pkcs;
|
||
|
|
||
|
import org.bouncycastle.asn1.ASN1Encodable;
|
||
|
import org.bouncycastle.asn1.ASN1Object;
|
||
|
import org.bouncycastle.asn1.ASN1ObjectIdentifier;
|
||
|
import org.bouncycastle.asn1.ASN1Primitive;
|
||
|
import org.bouncycastle.asn1.ASN1Sequence;
|
||
|
import org.bouncycastle.asn1.x509.AlgorithmIdentifier;
|
||
|
|
||
|
/* loaded from: classes6.dex */
|
||
|
public class KeyDerivationFunc extends ASN1Object {
|
||
|
private AlgorithmIdentifier algId;
|
||
|
|
||
|
@Override // org.bouncycastle.asn1.ASN1Object, org.bouncycastle.asn1.ASN1Encodable
|
||
|
public ASN1Primitive toASN1Primitive() {
|
||
|
return this.algId.toASN1Primitive();
|
||
|
}
|
||
|
|
||
|
public ASN1Encodable getParameters() {
|
||
|
return this.algId.getParameters();
|
||
|
}
|
||
|
|
||
|
public ASN1ObjectIdentifier getAlgorithm() {
|
||
|
return this.algId.getAlgorithm();
|
||
|
}
|
||
|
|
||
|
public static KeyDerivationFunc getInstance(Object obj) {
|
||
|
if (obj instanceof KeyDerivationFunc) {
|
||
|
return (KeyDerivationFunc) obj;
|
||
|
}
|
||
|
if (obj != null) {
|
||
|
return new KeyDerivationFunc(ASN1Sequence.getInstance(obj));
|
||
|
}
|
||
|
return null;
|
||
|
}
|
||
|
|
||
|
private KeyDerivationFunc(ASN1Sequence aSN1Sequence) {
|
||
|
this.algId = AlgorithmIdentifier.getInstance(aSN1Sequence);
|
||
|
}
|
||
|
|
||
|
public KeyDerivationFunc(ASN1ObjectIdentifier aSN1ObjectIdentifier, ASN1Encodable aSN1Encodable) {
|
||
|
this.algId = new AlgorithmIdentifier(aSN1ObjectIdentifier, aSN1Encodable);
|
||
|
}
|
||
|
}
|