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 EncryptionScheme 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 EncryptionScheme getInstance(Object obj) { if (obj instanceof EncryptionScheme) { return (EncryptionScheme) obj; } if (obj != null) { return new EncryptionScheme(ASN1Sequence.getInstance(obj)); } return null; } private EncryptionScheme(ASN1Sequence aSN1Sequence) { this.algId = AlgorithmIdentifier.getInstance(aSN1Sequence); } public EncryptionScheme(ASN1ObjectIdentifier aSN1ObjectIdentifier, ASN1Encodable aSN1Encodable) { this.algId = new AlgorithmIdentifier(aSN1ObjectIdentifier, aSN1Encodable); } }