GF2nPolynomial.smali
.class public Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;
.super Ljava/lang/Object;
.source "GF2nPolynomial.java"
# instance fields
.field private coeff:[Lorg/spongycastle/pqc/math/linearalgebra/GF2nElement;
.field private size:I
# direct methods
.method private constructor <init>(I)V
.registers 3
.prologue
.line 42
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 43
iput p1, p0, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;->size:I
.line 44
iget v0, p0, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;->size:I
new-array v0, v0, [Lorg/spongycastle/pqc/math/linearalgebra/GF2nElement;
iput-object v0, p0, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;->coeff:[Lorg/spongycastle/pqc/math/linearalgebra/GF2nElement;
.line 45
return-void
.end method
.method public constructor <init>(ILorg/spongycastle/pqc/math/linearalgebra/GF2nElement;)V
.registers 6
.prologue
.line 27
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 28
iput p1, p0, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;->size:I
.line 29
iget v0, p0, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;->size:I
new-array v0, v0, [Lorg/spongycastle/pqc/math/linearalgebra/GF2nElement;
iput-object v0, p0, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;->coeff:[Lorg/spongycastle/pqc/math/linearalgebra/GF2nElement;
.line 30
const/4 v0, 0x0
move v1, v0
:goto_d
iget v0, p0, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;->size:I
if-ge v1, v0, :cond_1f
.line 32
iget-object v2, p0, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;->coeff:[Lorg/spongycastle/pqc/math/linearalgebra/GF2nElement;
invoke-virtual {p2}, Lorg/spongycastle/pqc/math/linearalgebra/GF2nElement;->clone()Ljava/lang/Object;
move-result-object v0
check-cast v0, Lorg/spongycastle/pqc/math/linearalgebra/GF2nElement;
aput-object v0, v2, v1
.line 30
add-int/lit8 v0, v1, 0x1
move v1, v0
goto :goto_d
.line 34
:cond_1f
return-void
.end method
.method public constructor <init>(Lorg/spongycastle/pqc/math/linearalgebra/GF2Polynomial;Lorg/spongycastle/pqc/math/linearalgebra/GF2nField;)V
.registers 6
.prologue
const/4 v0, 0x0
.line 71
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 72
invoke-virtual {p2}, Lorg/spongycastle/pqc/math/linearalgebra/GF2nField;->getDegree()I
move-result v1
add-int/lit8 v1, v1, 0x1
iput v1, p0, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;->size:I
.line 73
iget v1, p0, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;->size:I
new-array v1, v1, [Lorg/spongycastle/pqc/math/linearalgebra/GF2nElement;
iput-object v1, p0, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;->coeff:[Lorg/spongycastle/pqc/math/linearalgebra/GF2nElement;
.line 75
instance-of v1, p2, Lorg/spongycastle/pqc/math/linearalgebra/GF2nONBField;
if-eqz v1, :cond_3c
move v1, v0
.line 77
:goto_17
iget v0, p0, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;->size:I
if-ge v1, v0, :cond_6e
.line 79
invoke-virtual {p1, v1}, Lorg/spongycastle/pqc/math/linearalgebra/GF2Polynomial;->testBit(I)Z
move-result v0
if-eqz v0, :cond_30
.line 81
iget-object v2, p0, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;->coeff:[Lorg/spongycastle/pqc/math/linearalgebra/GF2nElement;
move-object v0, p2
check-cast v0, Lorg/spongycastle/pqc/math/linearalgebra/GF2nONBField;
invoke-static {v0}, Lorg/spongycastle/pqc/math/linearalgebra/GF2nONBElement;->ONE(Lorg/spongycastle/pqc/math/linearalgebra/GF2nONBField;)Lorg/spongycastle/pqc/math/linearalgebra/GF2nONBElement;
move-result-object v0
aput-object v0, v2, v1
.line 77
:goto_2c
add-int/lit8 v0, v1, 0x1
move v1, v0
goto :goto_17
.line 85
:cond_30
iget-object v2, p0, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;->coeff:[Lorg/spongycastle/pqc/math/linearalgebra/GF2nElement;
move-object v0, p2
check-cast v0, Lorg/spongycastle/pqc/math/linearalgebra/GF2nONBField;
invoke-static {v0}, Lorg/spongycastle/pqc/math/linearalgebra/GF2nONBElement;->ZERO(Lorg/spongycastle/pqc/math/linearalgebra/GF2nONBField;)Lorg/spongycastle/pqc/math/linearalgebra/GF2nONBElement;
move-result-object v0
aput-object v0, v2, v1
goto :goto_2c
.line 89
:cond_3c
instance-of v1, p2, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomialField;
if-eqz v1, :cond_66
move v1, v0
.line 91
:goto_41
iget v0, p0, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;->size:I
if-ge v1, v0, :cond_6e
.line 93
invoke-virtual {p1, v1}, Lorg/spongycastle/pqc/math/linearalgebra/GF2Polynomial;->testBit(I)Z
move-result v0
if-eqz v0, :cond_5a
.line 95
iget-object v2, p0, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;->coeff:[Lorg/spongycastle/pqc/math/linearalgebra/GF2nElement;
move-object v0, p2
check-cast v0, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomialField;
.line 96
invoke-static {v0}, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomialElement;->ONE(Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomialField;)Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomialElement;
move-result-object v0
aput-object v0, v2, v1
.line 91
:goto_56
add-int/lit8 v0, v1, 0x1
move v1, v0
goto :goto_41
.line 100
:cond_5a
iget-object v2, p0, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;->coeff:[Lorg/spongycastle/pqc/math/linearalgebra/GF2nElement;
move-object v0, p2
check-cast v0, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomialField;
.line 101
invoke-static {v0}, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomialElement;->ZERO(Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomialField;)Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomialElement;
move-result-object v0
aput-object v0, v2, v1
goto :goto_56
.line 107
:cond_66
new-instance v0, Ljava/lang/IllegalArgumentException;
const-string v1, "PolynomialGF2n(Bitstring, GF2nField): B1 must be an instance of GF2nONBField or GF2nPolynomialField!"
invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw v0
.line 111
:cond_6e
return-void
.end method
.method public constructor <init>(Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;)V
.registers 5
.prologue
.line 53
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 55
iget v0, p1, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;->size:I
new-array v0, v0, [Lorg/spongycastle/pqc/math/linearalgebra/GF2nElement;
iput-object v0, p0, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;->coeff:[Lorg/spongycastle/pqc/math/linearalgebra/GF2nElement;
.line 56
iget v0, p1, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;->size:I
iput v0, p0, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;->size:I
.line 57
const/4 v0, 0x0
move v1, v0
:goto_f
iget v0, p0, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;->size:I
if-ge v1, v0, :cond_25
.line 59
iget-object v2, p0, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;->coeff:[Lorg/spongycastle/pqc/math/linearalgebra/GF2nElement;
iget-object v0, p1, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;->coeff:[Lorg/spongycastle/pqc/math/linearalgebra/GF2nElement;
aget-object v0, v0, v1
invoke-virtual {v0}, Lorg/spongycastle/pqc/math/linearalgebra/GF2nElement;->clone()Ljava/lang/Object;
move-result-object v0
check-cast v0, Lorg/spongycastle/pqc/math/linearalgebra/GF2nElement;
aput-object v0, v2, v1
.line 57
add-int/lit8 v0, v1, 0x1
move v1, v0
goto :goto_f
.line 61
:cond_25
return-void
.end method
# virtual methods
.method public final add(Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;)Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;
.registers 7
.prologue
const/4 v0, 0x0
.line 297
invoke-virtual {p0}, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;->size()I
move-result v1
invoke-virtual {p1}, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;->size()I
move-result v2
if-lt v1, v2, :cond_44
.line 299
new-instance v2, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;
invoke-virtual {p0}, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;->size()I
move-result v1
invoke-direct {v2, v1}, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;-><init>(I)V
move v1, v0
.line 301
:goto_15
invoke-virtual {p1}, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;->size()I
move-result v0
if-ge v1, v0, :cond_31
.line 303
iget-object v3, v2, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;->coeff:[Lorg/spongycastle/pqc/math/linearalgebra/GF2nElement;
iget-object v0, p0, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;->coeff:[Lorg/spongycastle/pqc/math/linearalgebra/GF2nElement;
aget-object v0, v0, v1
iget-object v4, p1, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;->coeff:[Lorg/spongycastle/pqc/math/linearalgebra/GF2nElement;
aget-object v4, v4, v1
invoke-virtual {v0, v4}, Lorg/spongycastle/pqc/math/linearalgebra/GF2nElement;->add(Lorg/spongycastle/pqc/math/linearalgebra/GFElement;)Lorg/spongycastle/pqc/math/linearalgebra/GFElement;
move-result-object v0
check-cast v0, Lorg/spongycastle/pqc/math/linearalgebra/GF2nElement;
aput-object v0, v3, v1
.line 301
add-int/lit8 v0, v1, 0x1
move v1, v0
goto :goto_15
.line 305
:cond_31
:goto_31
invoke-virtual {p0}, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;->size()I
move-result v0
if-ge v1, v0, :cond_42
.line 307
iget-object v0, v2, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;->coeff:[Lorg/spongycastle/pqc/math/linearalgebra/GF2nElement;
iget-object v3, p0, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;->coeff:[Lorg/spongycastle/pqc/math/linearalgebra/GF2nElement;
aget-object v3, v3, v1
aput-object v3, v0, v1
.line 305
add-int/lit8 v1, v1, 0x1
goto :goto_31
:cond_42
move-object v0, v2
.line 323
:goto_43
return-object v0
.line 312
:cond_44
new-instance v2, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;
invoke-virtual {p1}, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;->size()I
move-result v1
invoke-direct {v2, v1}, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;-><init>(I)V
move v1, v0
.line 314
:goto_4e
invoke-virtual {p0}, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;->size()I
move-result v0
if-ge v1, v0, :cond_6a
.line 316
iget-object v3, v2, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;->coeff:[Lorg/spongycastle/pqc/math/linearalgebra/GF2nElement;
iget-object v0, p0, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;->coeff:[Lorg/spongycastle/pqc/math/linearalgebra/GF2nElement;
aget-object v0, v0, v1
iget-object v4, p1, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;->coeff:[Lorg/spongycastle/pqc/math/linearalgebra/GF2nElement;
aget-object v4, v4, v1
invoke-virtual {v0, v4}, Lorg/spongycastle/pqc/math/linearalgebra/GF2nElement;->add(Lorg/spongycastle/pqc/math/linearalgebra/GFElement;)Lorg/spongycastle/pqc/math/linearalgebra/GFElement;
move-result-object v0
check-cast v0, Lorg/spongycastle/pqc/math/linearalgebra/GF2nElement;
aput-object v0, v3, v1
.line 314
add-int/lit8 v0, v1, 0x1
move v1, v0
goto :goto_4e
.line 318
:cond_6a
:goto_6a
invoke-virtual {p1}, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;->size()I
move-result v0
if-ge v1, v0, :cond_7b
.line 320
iget-object v0, v2, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;->coeff:[Lorg/spongycastle/pqc/math/linearalgebra/GF2nElement;
iget-object v3, p1, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;->coeff:[Lorg/spongycastle/pqc/math/linearalgebra/GF2nElement;
aget-object v3, v3, v1
aput-object v3, v0, v1
.line 318
add-int/lit8 v1, v1, 0x1
goto :goto_6a
:cond_7b
move-object v0, v2
goto :goto_43
.end method
.method public final assignZeroToElements()V
.registers 3
.prologue
.line 116
const/4 v0, 0x0
:goto_1
iget v1, p0, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;->size:I
if-ge v0, v1, :cond_f
.line 118
iget-object v1, p0, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;->coeff:[Lorg/spongycastle/pqc/math/linearalgebra/GF2nElement;
aget-object v1, v1, v0
invoke-virtual {v1}, Lorg/spongycastle/pqc/math/linearalgebra/GF2nElement;->assignZero()V
.line 116
add-int/lit8 v0, v0, 0x1
goto :goto_1
.line 120
:cond_f
return-void
.end method
.method public final at(I)Lorg/spongycastle/pqc/math/linearalgebra/GF2nElement;
.registers 3
.prologue
.line 227
iget-object v0, p0, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;->coeff:[Lorg/spongycastle/pqc/math/linearalgebra/GF2nElement;
aget-object v0, v0, p1
return-object v0
.end method
.method public final divide(Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;)[Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;
.registers 11
.prologue
const/4 v8, 0x1
const/4 v7, 0x0
.line 487
const/4 v0, 0x2
new-array v2, v0, [Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;
.line 488
new-instance v3, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;
invoke-direct {v3, p0}, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;-><init>(Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;)V
.line 489
invoke-virtual {v3}, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;->shrink()V
.line 492
invoke-virtual {p1}, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;->getDegree()I
move-result v5
.line 493
iget-object v0, p1, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;->coeff:[Lorg/spongycastle/pqc/math/linearalgebra/GF2nElement;
aget-object v0, v0, v5
invoke-virtual {v0}, Lorg/spongycastle/pqc/math/linearalgebra/GF2nElement;->invert()Lorg/spongycastle/pqc/math/linearalgebra/GFElement;
move-result-object v0
check-cast v0, Lorg/spongycastle/pqc/math/linearalgebra/GF2nElement;
.line 494
invoke-virtual {v3}, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;->getDegree()I
move-result v1
if-ge v1, v5, :cond_40
.line 496
new-instance v0, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;
invoke-direct {v0, p0}, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;-><init>(Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;)V
aput-object v0, v2, v7
.line 497
aget-object v0, v2, v7
invoke-virtual {v0}, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;->assignZeroToElements()V
.line 498
aget-object v0, v2, v7
invoke-virtual {v0}, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;->shrink()V
.line 499
new-instance v0, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;
invoke-direct {v0, p0}, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;-><init>(Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;)V
aput-object v0, v2, v8
.line 500
aget-object v0, v2, v8
invoke-virtual {v0}, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;->shrink()V
move-object v0, v2
.line 518
:goto_3f
return-object v0
.line 503
:cond_40
new-instance v1, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;
invoke-direct {v1, p0}, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;-><init>(Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;)V
aput-object v1, v2, v7
.line 504
aget-object v1, v2, v7
invoke-virtual {v1}, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;->assignZeroToElements()V
.line 505
invoke-virtual {v3}, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;->getDegree()I
move-result v1
sub-int/2addr v1, v5
move-object v4, v3
move v3, v1
.line 506
:goto_53
if-ltz v3, :cond_84
.line 508
iget-object v1, v4, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;->coeff:[Lorg/spongycastle/pqc/math/linearalgebra/GF2nElement;
invoke-virtual {v4}, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;->getDegree()I
move-result v6
aget-object v1, v1, v6
invoke-virtual {v1, v0}, Lorg/spongycastle/pqc/math/linearalgebra/GF2nElement;->multiply(Lorg/spongycastle/pqc/math/linearalgebra/GFElement;)Lorg/spongycastle/pqc/math/linearalgebra/GFElement;
move-result-object v1
check-cast v1, Lorg/spongycastle/pqc/math/linearalgebra/GF2nElement;
.line 509
invoke-virtual {p1, v1}, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;->scalarMultiply(Lorg/spongycastle/pqc/math/linearalgebra/GF2nElement;)Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;
move-result-object v6
.line 510
invoke-virtual {v6, v3}, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;->shiftThisLeft(I)V
.line 511
invoke-virtual {v4, v6}, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;->add(Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;)Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;
move-result-object v4
.line 512
invoke-virtual {v4}, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;->shrink()V
.line 513
aget-object v6, v2, v7
iget-object v6, v6, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;->coeff:[Lorg/spongycastle/pqc/math/linearalgebra/GF2nElement;
invoke-virtual {v1}, Lorg/spongycastle/pqc/math/linearalgebra/GF2nElement;->clone()Ljava/lang/Object;
move-result-object v1
check-cast v1, Lorg/spongycastle/pqc/math/linearalgebra/GF2nElement;
aput-object v1, v6, v3
.line 514
invoke-virtual {v4}, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;->getDegree()I
move-result v1
sub-int/2addr v1, v5
move v3, v1
goto :goto_53
.line 516
:cond_84
aput-object v4, v2, v8
.line 517
aget-object v0, v2, v7
invoke-virtual {v0}, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;->shrink()V
move-object v0, v2
.line 518
goto :goto_3f
.end method
.method public final enlarge(I)V
.registers 6
.prologue
const/4 v2, 0x0
.line 158
iget v0, p0, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;->size:I
if-gt p1, v0, :cond_6
.line 182
:goto_5
return-void
.line 163
:cond_6
new-array v3, p1, [Lorg/spongycastle/pqc/math/linearalgebra/GF2nElement;
.line 164
iget-object v0, p0, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;->coeff:[Lorg/spongycastle/pqc/math/linearalgebra/GF2nElement;
iget v1, p0, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;->size:I
invoke-static {v0, v2, v3, v2, v1}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V
.line 165
iget-object v0, p0, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;->coeff:[Lorg/spongycastle/pqc/math/linearalgebra/GF2nElement;
aget-object v0, v0, v2
invoke-virtual {v0}, Lorg/spongycastle/pqc/math/linearalgebra/GF2nElement;->getField()Lorg/spongycastle/pqc/math/linearalgebra/GF2nField;
move-result-object v1
.line 166
iget-object v0, p0, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;->coeff:[Lorg/spongycastle/pqc/math/linearalgebra/GF2nElement;
aget-object v0, v0, v2
instance-of v0, v0, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomialElement;
if-eqz v0, :cond_31
.line 168
iget v0, p0, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;->size:I
move v2, v0
:goto_22
if-ge v2, p1, :cond_4b
move-object v0, v1
.line 170
check-cast v0, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomialField;
invoke-static {v0}, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomialElement;->ZERO(Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomialField;)Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomialElement;
move-result-object v0
aput-object v0, v3, v2
.line 168
add-int/lit8 v0, v2, 0x1
move v2, v0
goto :goto_22
.line 173
:cond_31
iget-object v0, p0, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;->coeff:[Lorg/spongycastle/pqc/math/linearalgebra/GF2nElement;
aget-object v0, v0, v2
instance-of v0, v0, Lorg/spongycastle/pqc/math/linearalgebra/GF2nONBElement;
if-eqz v0, :cond_4b
.line 175
iget v0, p0, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;->size:I
move v2, v0
:goto_3c
if-ge v2, p1, :cond_4b
move-object v0, v1
.line 177
check-cast v0, Lorg/spongycastle/pqc/math/linearalgebra/GF2nONBField;
invoke-static {v0}, Lorg/spongycastle/pqc/math/linearalgebra/GF2nONBElement;->ZERO(Lorg/spongycastle/pqc/math/linearalgebra/GF2nONBField;)Lorg/spongycastle/pqc/math/linearalgebra/GF2nONBElement;
move-result-object v0
aput-object v0, v3, v2
.line 175
add-int/lit8 v0, v2, 0x1
move v2, v0
goto :goto_3c
.line 180
:cond_4b
iput p1, p0, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;->size:I
.line 181
iput-object v3, p0, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;->coeff:[Lorg/spongycastle/pqc/math/linearalgebra/GF2nElement;
goto :goto_5
.end method
.method public final equals(Ljava/lang/Object;)Z
.registers 6
.prologue
const/4 v1, 0x0
.line 253
if-eqz p1, :cond_7
instance-of v0, p1, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;
if-nez v0, :cond_8
.line 272
:cond_7
:goto_7
return v1
.line 258
:cond_8
check-cast p1, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;
.line 260
invoke-virtual {p0}, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;->getDegree()I
move-result v0
invoke-virtual {p1}, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;->getDegree()I
move-result v2
if-ne v0, v2, :cond_7
move v0, v1
.line 265
:goto_15
iget v2, p0, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;->size:I
if-ge v0, v2, :cond_2a
.line 267
iget-object v2, p0, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;->coeff:[Lorg/spongycastle/pqc/math/linearalgebra/GF2nElement;
aget-object v2, v2, v0
iget-object v3, p1, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;->coeff:[Lorg/spongycastle/pqc/math/linearalgebra/GF2nElement;
aget-object v3, v3, v0
invoke-virtual {v2, v3}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z
move-result v2
if-eqz v2, :cond_7
.line 265
add-int/lit8 v0, v0, 0x1
goto :goto_15
.line 272
:cond_2a
const/4 v1, 0x1
goto :goto_7
.end method
.method public final gcd(Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;)Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;
.registers 6
.prologue
.line 569
new-instance v0, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;
invoke-direct {v0, p0}, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;-><init>(Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;)V
.line 570
new-instance v1, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;
invoke-direct {v1, p1}, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;-><init>(Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;)V
.line 571
invoke-virtual {v0}, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;->shrink()V
.line 572
invoke-virtual {v1}, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;->shrink()V
move-object v3, v0
move-object v0, v1
move-object v1, v3
.line 576
:goto_13
invoke-virtual {v0}, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;->isZero()Z
move-result v2
if-nez v2, :cond_21
.line 578
invoke-virtual {v1, v0}, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;->remainder(Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;)Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;
move-result-object v1
move-object v3, v0
move-object v0, v1
move-object v1, v3
.line 580
goto :goto_13
.line 582
:cond_21
iget-object v0, v1, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;->coeff:[Lorg/spongycastle/pqc/math/linearalgebra/GF2nElement;
invoke-virtual {v1}, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;->getDegree()I
move-result v2
aget-object v0, v0, v2
.line 583
invoke-virtual {v0}, Lorg/spongycastle/pqc/math/linearalgebra/GF2nElement;->invert()Lorg/spongycastle/pqc/math/linearalgebra/GFElement;
move-result-object v0
check-cast v0, Lorg/spongycastle/pqc/math/linearalgebra/GF2nElement;
invoke-virtual {v1, v0}, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;->scalarMultiply(Lorg/spongycastle/pqc/math/linearalgebra/GF2nElement;)Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;
move-result-object v0
.line 584
return-object v0
.end method
.method public final getDegree()I
.registers 3
.prologue
.line 141
iget v0, p0, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;->size:I
add-int/lit8 v0, v0, -0x1
:goto_4
if-ltz v0, :cond_14
.line 143
iget-object v1, p0, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;->coeff:[Lorg/spongycastle/pqc/math/linearalgebra/GF2nElement;
aget-object v1, v1, v0
invoke-virtual {v1}, Lorg/spongycastle/pqc/math/linearalgebra/GF2nElement;->isZero()Z
move-result v1
if-nez v1, :cond_11
.line 148
:goto_10
return v0
.line 141
:cond_11
add-int/lit8 v0, v0, -0x1
goto :goto_4
.line 148
:cond_14
const/4 v0, -0x1
goto :goto_10
.end method
.method public hashCode()I
.registers 3
.prologue
.line 280
invoke-virtual {p0}, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;->getDegree()I
move-result v0
iget-object v1, p0, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;->coeff:[Lorg/spongycastle/pqc/math/linearalgebra/GF2nElement;
invoke-virtual {v1}, Ljava/lang/Object;->hashCode()I
move-result v1
add-int/2addr v0, v1
return v0
.end method
.method public final isZero()Z
.registers 4
.prologue
const/4 v1, 0x0
.line 238
move v0, v1
:goto_2
iget v2, p0, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;->size:I
if-ge v0, v2, :cond_1a
.line 240
iget-object v2, p0, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;->coeff:[Lorg/spongycastle/pqc/math/linearalgebra/GF2nElement;
aget-object v2, v2, v0
if-eqz v2, :cond_17
.line 242
iget-object v2, p0, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;->coeff:[Lorg/spongycastle/pqc/math/linearalgebra/GF2nElement;
aget-object v2, v2, v0
invoke-virtual {v2}, Lorg/spongycastle/pqc/math/linearalgebra/GF2nElement;->isZero()Z
move-result v2
if-nez v2, :cond_17
.line 248
:goto_16
return v1
.line 238
:cond_17
add-int/lit8 v0, v0, 0x1
goto :goto_2
.line 248
:cond_1a
const/4 v1, 0x1
goto :goto_16
.end method
.method public final multiply(Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;)Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;
.registers 11
.prologue
const/4 v2, 0x0
.line 362
invoke-virtual {p0}, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;->size()I
move-result v0
.line 363
invoke-virtual {p1}, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;->size()I
move-result v1
.line 364
if-eq v0, v1, :cond_13
.line 366
new-instance v0, Ljava/lang/IllegalArgumentException;
const-string v1, "PolynomialGF2n.multiply: this and b must have the same size!"
invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw v0
.line 370
:cond_13
new-instance v4, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;
shl-int/lit8 v0, v0, 0x1
add-int/lit8 v0, v0, -0x1
invoke-direct {v4, v0}, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;-><init>(I)V
move v1, v2
.line 371
:goto_1d
invoke-virtual {p0}, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;->size()I
move-result v0
if-ge v1, v0, :cond_6d
move v3, v2
.line 373
:goto_24
invoke-virtual {p1}, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;->size()I
move-result v0
if-ge v3, v0, :cond_69
.line 375
iget-object v0, v4, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;->coeff:[Lorg/spongycastle/pqc/math/linearalgebra/GF2nElement;
add-int v5, v1, v3
aget-object v0, v0, v5
if-nez v0, :cond_4a
.line 377
iget-object v5, v4, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;->coeff:[Lorg/spongycastle/pqc/math/linearalgebra/GF2nElement;
add-int v6, v1, v3
iget-object v0, p0, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;->coeff:[Lorg/spongycastle/pqc/math/linearalgebra/GF2nElement;
aget-object v0, v0, v1
iget-object v7, p1, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;->coeff:[Lorg/spongycastle/pqc/math/linearalgebra/GF2nElement;
aget-object v7, v7, v3
.line 378
invoke-virtual {v0, v7}, Lorg/spongycastle/pqc/math/linearalgebra/GF2nElement;->multiply(Lorg/spongycastle/pqc/math/linearalgebra/GFElement;)Lorg/spongycastle/pqc/math/linearalgebra/GFElement;
move-result-object v0
check-cast v0, Lorg/spongycastle/pqc/math/linearalgebra/GF2nElement;
aput-object v0, v5, v6
.line 373
:goto_46
add-int/lit8 v0, v3, 0x1
move v3, v0
goto :goto_24
.line 382
:cond_4a
iget-object v5, v4, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;->coeff:[Lorg/spongycastle/pqc/math/linearalgebra/GF2nElement;
add-int v6, v1, v3
iget-object v0, v4, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;->coeff:[Lorg/spongycastle/pqc/math/linearalgebra/GF2nElement;
add-int v7, v1, v3
aget-object v0, v0, v7
iget-object v7, p0, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;->coeff:[Lorg/spongycastle/pqc/math/linearalgebra/GF2nElement;
aget-object v7, v7, v1
iget-object v8, p1, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;->coeff:[Lorg/spongycastle/pqc/math/linearalgebra/GF2nElement;
aget-object v8, v8, v3
.line 383
invoke-virtual {v7, v8}, Lorg/spongycastle/pqc/math/linearalgebra/GF2nElement;->multiply(Lorg/spongycastle/pqc/math/linearalgebra/GFElement;)Lorg/spongycastle/pqc/math/linearalgebra/GFElement;
move-result-object v7
invoke-virtual {v0, v7}, Lorg/spongycastle/pqc/math/linearalgebra/GF2nElement;->add(Lorg/spongycastle/pqc/math/linearalgebra/GFElement;)Lorg/spongycastle/pqc/math/linearalgebra/GFElement;
move-result-object v0
check-cast v0, Lorg/spongycastle/pqc/math/linearalgebra/GF2nElement;
aput-object v0, v5, v6
goto :goto_46
.line 371
:cond_69
add-int/lit8 v0, v1, 0x1
move v1, v0
goto :goto_1d
.line 387
:cond_6d
return-object v4
.end method
.method public final multiplyAndReduce(Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;)Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;
.registers 4
.prologue
.line 405
invoke-virtual {p0, p1}, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;->multiply(Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;)Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;
move-result-object v0
invoke-virtual {v0, p2}, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;->reduce(Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;)Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;
move-result-object v0
return-object v0
.end method
.method public final quotient(Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;)Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;
.registers 4
.prologue
.line 551
invoke-virtual {p0, p1}, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;->divide(Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;)[Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;
move-result-object v0
.line 552
const/4 v1, 0x0
aget-object v0, v0, v1
return-object v0
.end method
.method public final reduce(Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;)Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;
.registers 3
.prologue
.line 421
invoke-virtual {p0, p1}, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;->remainder(Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;)Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;
move-result-object v0
return-object v0
.end method
.method public final remainder(Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;)Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;
.registers 4
.prologue
.line 534
invoke-virtual {p0, p1}, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;->divide(Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;)[Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;
move-result-object v0
.line 535
const/4 v1, 0x1
aget-object v0, v0, v1
return-object v0
.end method
.method public final scalarMultiply(Lorg/spongycastle/pqc/math/linearalgebra/GF2nElement;)Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;
.registers 6
.prologue
.line 338
new-instance v2, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;
invoke-virtual {p0}, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;->size()I
move-result v0
invoke-direct {v2, v0}, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;-><init>(I)V
.line 340
const/4 v0, 0x0
move v1, v0
:goto_b
invoke-virtual {p0}, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;->size()I
move-result v0
if-ge v1, v0, :cond_23
.line 342
iget-object v3, v2, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;->coeff:[Lorg/spongycastle/pqc/math/linearalgebra/GF2nElement;
iget-object v0, p0, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;->coeff:[Lorg/spongycastle/pqc/math/linearalgebra/GF2nElement;
aget-object v0, v0, v1
invoke-virtual {v0, p1}, Lorg/spongycastle/pqc/math/linearalgebra/GF2nElement;->multiply(Lorg/spongycastle/pqc/math/linearalgebra/GFElement;)Lorg/spongycastle/pqc/math/linearalgebra/GFElement;
move-result-object v0
check-cast v0, Lorg/spongycastle/pqc/math/linearalgebra/GF2nElement;
aput-object v0, v3, v1
.line 340
add-int/lit8 v0, v1, 0x1
move v1, v0
goto :goto_b
.line 346
:cond_23
return-object v2
.end method
.method public final set(ILorg/spongycastle/pqc/math/linearalgebra/GF2nElement;)V
.registers 5
.prologue
.line 209
instance-of v0, p2, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomialElement;
if-nez v0, :cond_10
instance-of v0, p2, Lorg/spongycastle/pqc/math/linearalgebra/GF2nONBElement;
if-nez v0, :cond_10
.line 212
new-instance v0, Ljava/lang/IllegalArgumentException;
const-string v1, "PolynomialGF2n.set f must be an instance of either GF2nPolynomialElement or GF2nONBElement!"
invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw v0
.line 216
:cond_10
iget-object v1, p0, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;->coeff:[Lorg/spongycastle/pqc/math/linearalgebra/GF2nElement;
invoke-virtual {p2}, Lorg/spongycastle/pqc/math/linearalgebra/GF2nElement;->clone()Ljava/lang/Object;
move-result-object v0
check-cast v0, Lorg/spongycastle/pqc/math/linearalgebra/GF2nElement;
aput-object v0, v1, p1
.line 217
return-void
.end method
.method public final shiftLeft(I)Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;
.registers 7
.prologue
const/4 v0, 0x0
.line 462
if-gtz p1, :cond_9
.line 464
new-instance v0, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;
invoke-direct {v0, p0}, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;-><init>(Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;)V
.line 472
:goto_8
return-object v0
.line 466
:cond_9
new-instance v1, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;
iget v2, p0, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;->size:I
add-int/2addr v2, p1
iget-object v3, p0, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;->coeff:[Lorg/spongycastle/pqc/math/linearalgebra/GF2nElement;
aget-object v3, v3, v0
invoke-direct {v1, v2, v3}, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;-><init>(ILorg/spongycastle/pqc/math/linearalgebra/GF2nElement;)V
.line 467
invoke-virtual {v1}, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;->assignZeroToElements()V
.line 468
:goto_18
iget v2, p0, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;->size:I
if-ge v0, v2, :cond_29
.line 470
iget-object v2, v1, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;->coeff:[Lorg/spongycastle/pqc/math/linearalgebra/GF2nElement;
add-int v3, v0, p1
iget-object v4, p0, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;->coeff:[Lorg/spongycastle/pqc/math/linearalgebra/GF2nElement;
aget-object v4, v4, v0
aput-object v4, v2, v3
.line 468
add-int/lit8 v0, v0, 0x1
goto :goto_18
:cond_29
move-object v0, v1
.line 472
goto :goto_8
.end method
.method public final shiftThisLeft(I)V
.registers 8
.prologue
const/4 v5, 0x0
.line 432
if-lez p1, :cond_5c
.line 435
iget v0, p0, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;->size:I
.line 436
iget-object v1, p0, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;->coeff:[Lorg/spongycastle/pqc/math/linearalgebra/GF2nElement;
aget-object v1, v1, v5
invoke-virtual {v1}, Lorg/spongycastle/pqc/math/linearalgebra/GF2nElement;->getField()Lorg/spongycastle/pqc/math/linearalgebra/GF2nField;
move-result-object v1
.line 437
iget v2, p0, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;->size:I
add-int/2addr v2, p1
invoke-virtual {p0, v2}, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;->enlarge(I)V
.line 438
add-int/lit8 v0, v0, -0x1
:goto_15
if-ltz v0, :cond_24
.line 440
iget-object v2, p0, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;->coeff:[Lorg/spongycastle/pqc/math/linearalgebra/GF2nElement;
add-int v3, v0, p1
iget-object v4, p0, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;->coeff:[Lorg/spongycastle/pqc/math/linearalgebra/GF2nElement;
aget-object v4, v4, v0
aput-object v4, v2, v3
.line 438
add-int/lit8 v0, v0, -0x1
goto :goto_15
.line 442
:cond_24
iget-object v0, p0, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;->coeff:[Lorg/spongycastle/pqc/math/linearalgebra/GF2nElement;
aget-object v0, v0, v5
instance-of v0, v0, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomialElement;
if-eqz v0, :cond_40
.line 444
add-int/lit8 v0, p1, -0x1
move v2, v0
:goto_2f
if-ltz v2, :cond_5c
.line 446
iget-object v3, p0, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;->coeff:[Lorg/spongycastle/pqc/math/linearalgebra/GF2nElement;
move-object v0, v1
check-cast v0, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomialField;
.line 447
invoke-static {v0}, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomialElement;->ZERO(Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomialField;)Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomialElement;
move-result-object v0
aput-object v0, v3, v2
.line 444
add-int/lit8 v0, v2, -0x1
move v2, v0
goto :goto_2f
.line 450
:cond_40
iget-object v0, p0, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;->coeff:[Lorg/spongycastle/pqc/math/linearalgebra/GF2nElement;
aget-object v0, v0, v5
instance-of v0, v0, Lorg/spongycastle/pqc/math/linearalgebra/GF2nONBElement;
if-eqz v0, :cond_5c
.line 452
add-int/lit8 v0, p1, -0x1
move v2, v0
:goto_4b
if-ltz v2, :cond_5c
.line 454
iget-object v3, p0, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;->coeff:[Lorg/spongycastle/pqc/math/linearalgebra/GF2nElement;
move-object v0, v1
check-cast v0, Lorg/spongycastle/pqc/math/linearalgebra/GF2nONBField;
invoke-static {v0}, Lorg/spongycastle/pqc/math/linearalgebra/GF2nONBElement;->ZERO(Lorg/spongycastle/pqc/math/linearalgebra/GF2nONBField;)Lorg/spongycastle/pqc/math/linearalgebra/GF2nONBElement;
move-result-object v0
aput-object v0, v3, v2
.line 452
add-int/lit8 v0, v2, -0x1
move v2, v0
goto :goto_4b
.line 458
:cond_5c
return-void
.end method
.method public final shrink()V
.registers 5
.prologue
const/4 v3, 0x0
.line 186
iget v0, p0, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;->size:I
add-int/lit8 v0, v0, -0x1
.line 187
:goto_5
iget-object v1, p0, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;->coeff:[Lorg/spongycastle/pqc/math/linearalgebra/GF2nElement;
aget-object v1, v1, v0
invoke-virtual {v1}, Lorg/spongycastle/pqc/math/linearalgebra/GF2nElement;->isZero()Z
move-result v1
if-eqz v1, :cond_14
if-lez v0, :cond_14
.line 189
add-int/lit8 v0, v0, -0x1
goto :goto_5
.line 191
:cond_14
add-int/lit8 v0, v0, 0x1
.line 192
iget v1, p0, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;->size:I
if-ge v0, v1, :cond_25
.line 194
new-array v1, v0, [Lorg/spongycastle/pqc/math/linearalgebra/GF2nElement;
.line 195
iget-object v2, p0, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;->coeff:[Lorg/spongycastle/pqc/math/linearalgebra/GF2nElement;
invoke-static {v2, v3, v1, v3, v0}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V
.line 196
iput-object v1, p0, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;->coeff:[Lorg/spongycastle/pqc/math/linearalgebra/GF2nElement;
.line 197
iput v0, p0, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;->size:I
.line 199
:cond_25
return-void
.end method
.method public final size()I
.registers 2
.prologue
.line 130
iget v0, p0, Lorg/spongycastle/pqc/math/linearalgebra/GF2nPolynomial;->size:I
return v0
.end method