BCStrictStyle.smali

.class public Lorg/spongycastle/asn1/x500/style/BCStrictStyle;
.super Lorg/spongycastle/asn1/x500/style/BCStyle;
.source "BCStrictStyle.java"


# static fields
.field public static final INSTANCE:Lorg/spongycastle/asn1/x500/X500NameStyle;


# direct methods
.method static constructor <clinit>()V
    .registers 1

    .prologue
    .line 14
    new-instance v0, Lorg/spongycastle/asn1/x500/style/BCStrictStyle;

    invoke-direct {v0}, Lorg/spongycastle/asn1/x500/style/BCStrictStyle;-><init>()V

    sput-object v0, Lorg/spongycastle/asn1/x500/style/BCStrictStyle;->INSTANCE:Lorg/spongycastle/asn1/x500/X500NameStyle;

    return-void
.end method

.method public constructor <init>()V
    .registers 1

    .prologue
    .line 11
    invoke-direct {p0}, Lorg/spongycastle/asn1/x500/style/BCStyle;-><init>()V

    return-void
.end method


# virtual methods
.method public areEqual(Lorg/spongycastle/asn1/x500/X500Name;Lorg/spongycastle/asn1/x500/X500Name;)Z
    .registers 9

    .prologue
    const/4 v1, 0x0

    .line 18
    invoke-virtual {p1}, Lorg/spongycastle/asn1/x500/X500Name;->getRDNs()[Lorg/spongycastle/asn1/x500/RDN;

    move-result-object v2

    .line 19
    invoke-virtual {p2}, Lorg/spongycastle/asn1/x500/X500Name;->getRDNs()[Lorg/spongycastle/asn1/x500/RDN;

    move-result-object v3

    .line 21
    array-length v0, v2

    array-length v4, v3

    if-eq v0, v4, :cond_e

    .line 34
    :cond_d
    :goto_d
    return v1

    :cond_e
    move v0, v1

    .line 26
    :goto_f
    array-length v4, v2

    if-eq v0, v4, :cond_1f

    .line 28
    aget-object v4, v2, v0

    aget-object v5, v3, v0

    invoke-virtual {p0, v4, v5}, Lorg/spongycastle/asn1/x500/style/BCStrictStyle;->rdnAreEqual(Lorg/spongycastle/asn1/x500/RDN;Lorg/spongycastle/asn1/x500/RDN;)Z

    move-result v4

    if-eqz v4, :cond_d

    .line 26
    add-int/lit8 v0, v0, 0x1

    goto :goto_f

    .line 34
    :cond_1f
    const/4 v1, 0x1

    goto :goto_d
.end method