package org.bouncycastle.asn1.bc;

/* JADX INFO: loaded from: E:\ios\vf_dex\classes4.dex */
public class PbkdMacIntegrityCheck extends org.bouncycastle.asn1.ASN1Object {
    private final org.bouncycastle.asn1.x509.AlgorithmIdentifier a;
    private final org.bouncycastle.asn1.pkcs.KeyDerivationFunc b;
    private final org.bouncycastle.asn1.ASN1OctetString c;

    private PbkdMacIntegrityCheck(org.bouncycastle.asn1.ASN1Sequence aSN1Sequence) {
        this.a = org.bouncycastle.asn1.x509.AlgorithmIdentifier.o(aSN1Sequence.B(0));
        this.b = org.bouncycastle.asn1.pkcs.KeyDerivationFunc.o(aSN1Sequence.B(1));
        this.c = org.bouncycastle.asn1.ASN1OctetString.y(aSN1Sequence.B(2));
    }

    public static org.bouncycastle.asn1.bc.PbkdMacIntegrityCheck n(java.lang.Object obj) {
        if (obj instanceof org.bouncycastle.asn1.bc.PbkdMacIntegrityCheck) {
            return (org.bouncycastle.asn1.bc.PbkdMacIntegrityCheck) obj;
        }
        if (obj != null) {
            return new org.bouncycastle.asn1.bc.PbkdMacIntegrityCheck(org.bouncycastle.asn1.ASN1Sequence.z(obj));
        }
        return null;
    }

    @Override // org.bouncycastle.asn1.ASN1Object, org.bouncycastle.asn1.ASN1Encodable
    public org.bouncycastle.asn1.ASN1Primitive j() {
        org.bouncycastle.asn1.ASN1EncodableVector aSN1EncodableVector = new org.bouncycastle.asn1.ASN1EncodableVector(3);
        aSN1EncodableVector.a(this.a);
        aSN1EncodableVector.a(this.b);
        aSN1EncodableVector.a(this.c);
        return new org.bouncycastle.asn1.DERSequence(aSN1EncodableVector);
    }

    public byte[] o() {
        return org.bouncycastle.util.Arrays.j(this.c.A());
    }

    public org.bouncycastle.asn1.x509.AlgorithmIdentifier p() {
        return this.a;
    }

    public org.bouncycastle.asn1.pkcs.KeyDerivationFunc q() {
        return this.b;
    }

    public PbkdMacIntegrityCheck(org.bouncycastle.asn1.x509.AlgorithmIdentifier algorithmIdentifier, org.bouncycastle.asn1.pkcs.KeyDerivationFunc keyDerivationFunc, byte[] bArr) {
        this.a = algorithmIdentifier;
        this.b = keyDerivationFunc;
        this.c = new org.bouncycastle.asn1.DEROctetString(org.bouncycastle.util.Arrays.j(bArr));
    }
}
