SecP224K1Field.smali
.class public Lorg/spongycastle/math/ec/custom/sec/SecP224K1Field;
.super Ljava/lang/Object;
.source "SecP224K1Field.java"
# static fields
.field static final P:[I
.field private static final P6:I = -0x1
.field static final PExt:[I
.field private static final PExt13:I = -0x1
.field private static final PExtInv:[I
.field private static final PInv33:I = 0x1a93
# direct methods
.method static constructor <clinit>()V
.registers 1
.prologue
.line 11
const/4 v0, 0x7
new-array v0, v0, [I
fill-array-data v0, :array_1c
sput-object v0, Lorg/spongycastle/math/ec/custom/sec/SecP224K1Field;->P:[I
.line 13
const/16 v0, 0xe
new-array v0, v0, [I
fill-array-data v0, :array_2e
sput-object v0, Lorg/spongycastle/math/ec/custom/sec/SecP224K1Field;->PExt:[I
.line 15
const/16 v0, 0x9
new-array v0, v0, [I
fill-array-data v0, :array_4e
sput-object v0, Lorg/spongycastle/math/ec/custom/sec/SecP224K1Field;->PExtInv:[I
return-void
.line 11
nop
:array_1c
.array-data 4
-0x1a93
-0x2
-0x1
-0x1
-0x1
-0x1
-0x1
.end array-data
.line 13
:array_2e
.array-data 4
0x2c23069
0x3526
0x1
0x0
0x0
0x0
0x0
-0x3526
-0x3
-0x1
-0x1
-0x1
-0x1
-0x1
.end array-data
.line 15
:array_4e
.array-data 4
-0x2c23069
-0x3527
-0x2
-0x1
-0x1
-0x1
-0x1
0x3525
0x2
.end array-data
.end method
.method public constructor <init>()V
.registers 1
.prologue
.line 8
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static add([I[I[I)V
.registers 5
.prologue
.line 23
invoke-static {p0, p1, p2}, Lorg/spongycastle/math/raw/Nat224;->add([I[I[I)I
move-result v0
.line 24
if-nez v0, :cond_14
const/4 v0, 0x6
aget v0, p2, v0
const/4 v1, -0x1
if-ne v0, v1, :cond_1a
sget-object v0, Lorg/spongycastle/math/ec/custom/sec/SecP224K1Field;->P:[I
invoke-static {p2, v0}, Lorg/spongycastle/math/raw/Nat224;->gte([I[I)Z
move-result v0
if-eqz v0, :cond_1a
.line 26
:cond_14
const/4 v0, 0x7
const/16 v1, 0x1a93
invoke-static {v0, v1, p2}, Lorg/spongycastle/math/raw/Nat;->add33To(II[I)I
.line 28
:cond_1a
return-void
.end method
.method public static addExt([I[I[I)V
.registers 6
.prologue
const/16 v2, 0xe
.line 32
invoke-static {v2, p0, p1, p2}, Lorg/spongycastle/math/raw/Nat;->add(I[I[I[I)I
move-result v0
.line 33
if-nez v0, :cond_17
const/16 v0, 0xd
aget v0, p2, v0
const/4 v1, -0x1
if-ne v0, v1, :cond_28
sget-object v0, Lorg/spongycastle/math/ec/custom/sec/SecP224K1Field;->PExt:[I
invoke-static {v2, p2, v0}, Lorg/spongycastle/math/raw/Nat;->gte(I[I[I)Z
move-result v0
if-eqz v0, :cond_28
.line 35
:cond_17
sget-object v0, Lorg/spongycastle/math/ec/custom/sec/SecP224K1Field;->PExtInv:[I
array-length v0, v0
sget-object v1, Lorg/spongycastle/math/ec/custom/sec/SecP224K1Field;->PExtInv:[I
invoke-static {v0, v1, p2}, Lorg/spongycastle/math/raw/Nat;->addTo(I[I[I)I
move-result v0
if-eqz v0, :cond_28
.line 37
sget-object v0, Lorg/spongycastle/math/ec/custom/sec/SecP224K1Field;->PExtInv:[I
array-length v0, v0
invoke-static {v2, p2, v0}, Lorg/spongycastle/math/raw/Nat;->incAt(I[II)I
.line 40
:cond_28
return-void
.end method
.method public static addOne([I[I)V
.registers 5
.prologue
const/4 v2, 0x7
.line 44
invoke-static {v2, p0, p1}, Lorg/spongycastle/math/raw/Nat;->inc(I[I[I)I
move-result v0
.line 45
if-nez v0, :cond_15
const/4 v0, 0x6
aget v0, p1, v0
const/4 v1, -0x1
if-ne v0, v1, :cond_1a
sget-object v0, Lorg/spongycastle/math/ec/custom/sec/SecP224K1Field;->P:[I
invoke-static {p1, v0}, Lorg/spongycastle/math/raw/Nat224;->gte([I[I)Z
move-result v0
if-eqz v0, :cond_1a
.line 47
:cond_15
const/16 v0, 0x1a93
invoke-static {v2, v0, p1}, Lorg/spongycastle/math/raw/Nat;->add33To(II[I)I
.line 49
:cond_1a
return-void
.end method
.method public static fromBigInteger(Ljava/math/BigInteger;)[I
.registers 4
.prologue
.line 53
invoke-static {p0}, Lorg/spongycastle/math/raw/Nat224;->fromBigInteger(Ljava/math/BigInteger;)[I
move-result-object v0
.line 54
const/4 v1, 0x6
aget v1, v0, v1
const/4 v2, -0x1
if-ne v1, v2, :cond_18
sget-object v1, Lorg/spongycastle/math/ec/custom/sec/SecP224K1Field;->P:[I
invoke-static {v0, v1}, Lorg/spongycastle/math/raw/Nat224;->gte([I[I)Z
move-result v1
if-eqz v1, :cond_18
.line 56
const/4 v1, 0x7
const/16 v2, 0x1a93
invoke-static {v1, v2, v0}, Lorg/spongycastle/math/raw/Nat;->add33To(II[I)I
.line 58
:cond_18
return-object v0
.end method
.method public static half([I[I)V
.registers 5
.prologue
const/4 v2, 0x7
const/4 v1, 0x0
.line 63
aget v0, p0, v1
and-int/lit8 v0, v0, 0x1
if-nez v0, :cond_c
.line 65
invoke-static {v2, p0, v1, p1}, Lorg/spongycastle/math/raw/Nat;->shiftDownBit(I[II[I)I
.line 72
:goto_b
return-void
.line 69
:cond_c
sget-object v0, Lorg/spongycastle/math/ec/custom/sec/SecP224K1Field;->P:[I
invoke-static {p0, v0, p1}, Lorg/spongycastle/math/raw/Nat224;->add([I[I[I)I
move-result v0
.line 70
invoke-static {v2, p1, v0}, Lorg/spongycastle/math/raw/Nat;->shiftDownBit(I[II)I
goto :goto_b
.end method
.method public static multiply([I[I[I)V
.registers 4
.prologue
.line 76
invoke-static {}, Lorg/spongycastle/math/raw/Nat224;->createExt()[I
move-result-object v0
.line 77
invoke-static {p0, p1, v0}, Lorg/spongycastle/math/raw/Nat224;->mul([I[I[I)V
.line 78
invoke-static {v0, p2}, Lorg/spongycastle/math/ec/custom/sec/SecP224K1Field;->reduce([I[I)V
.line 79
return-void
.end method
.method public static multiplyAddToExt([I[I[I)V
.registers 6
.prologue
const/16 v2, 0xe
.line 83
invoke-static {p0, p1, p2}, Lorg/spongycastle/math/raw/Nat224;->mulAddTo([I[I[I)I
move-result v0
.line 84
if-nez v0, :cond_17
const/16 v0, 0xd
aget v0, p2, v0
const/4 v1, -0x1
if-ne v0, v1, :cond_28
sget-object v0, Lorg/spongycastle/math/ec/custom/sec/SecP224K1Field;->PExt:[I
invoke-static {v2, p2, v0}, Lorg/spongycastle/math/raw/Nat;->gte(I[I[I)Z
move-result v0
if-eqz v0, :cond_28
.line 86
:cond_17
sget-object v0, Lorg/spongycastle/math/ec/custom/sec/SecP224K1Field;->PExtInv:[I
array-length v0, v0
sget-object v1, Lorg/spongycastle/math/ec/custom/sec/SecP224K1Field;->PExtInv:[I
invoke-static {v0, v1, p2}, Lorg/spongycastle/math/raw/Nat;->addTo(I[I[I)I
move-result v0
if-eqz v0, :cond_28
.line 88
sget-object v0, Lorg/spongycastle/math/ec/custom/sec/SecP224K1Field;->PExtInv:[I
array-length v0, v0
invoke-static {v2, p2, v0}, Lorg/spongycastle/math/raw/Nat;->incAt(I[II)I
.line 91
:cond_28
return-void
.end method
.method public static negate([I[I)V
.registers 3
.prologue
.line 95
invoke-static {p0}, Lorg/spongycastle/math/raw/Nat224;->isZero([I)Z
move-result v0
if-eqz v0, :cond_a
.line 97
invoke-static {p1}, Lorg/spongycastle/math/raw/Nat224;->zero([I)V
.line 103
:goto_9
return-void
.line 101
:cond_a
sget-object v0, Lorg/spongycastle/math/ec/custom/sec/SecP224K1Field;->P:[I
invoke-static {v0, p0, p1}, Lorg/spongycastle/math/raw/Nat224;->sub([I[I[I)I
goto :goto_9
.end method
.method public static reduce([I[I)V
.registers 10
.prologue
const/4 v2, 0x7
const/16 v0, 0x1a93
const/4 v4, 0x0
.line 107
move-object v1, p0
move-object v3, p0
move-object v5, p1
move v6, v4
invoke-static/range {v0 .. v6}, Lorg/spongycastle/math/raw/Nat224;->mul33Add(I[II[II[II)J
move-result-wide v6
.line 108
invoke-static {v0, v6, v7, p1, v4}, Lorg/spongycastle/math/raw/Nat224;->mul33DWordAdd(IJ[II)I
move-result v1
.line 112
if-nez v1, :cond_20
const/4 v1, 0x6
aget v1, p1, v1
const/4 v3, -0x1
if-ne v1, v3, :cond_23
sget-object v1, Lorg/spongycastle/math/ec/custom/sec/SecP224K1Field;->P:[I
invoke-static {p1, v1}, Lorg/spongycastle/math/raw/Nat224;->gte([I[I)Z
move-result v1
if-eqz v1, :cond_23
.line 114
:cond_20
invoke-static {v2, v0, p1}, Lorg/spongycastle/math/raw/Nat;->add33To(II[I)I
.line 116
:cond_23
return-void
.end method
.method public static reduce32(I[I)V
.registers 5
.prologue
const/16 v2, 0x1a93
.line 120
if-eqz p0, :cond_b
const/4 v0, 0x0
invoke-static {v2, p0, p1, v0}, Lorg/spongycastle/math/raw/Nat224;->mul33WordAdd(II[II)I
move-result v0
if-nez v0, :cond_19
:cond_b
const/4 v0, 0x6
aget v0, p1, v0
const/4 v1, -0x1
if-ne v0, v1, :cond_1d
sget-object v0, Lorg/spongycastle/math/ec/custom/sec/SecP224K1Field;->P:[I
.line 121
invoke-static {p1, v0}, Lorg/spongycastle/math/raw/Nat224;->gte([I[I)Z
move-result v0
if-eqz v0, :cond_1d
.line 123
:cond_19
const/4 v0, 0x7
invoke-static {v0, v2, p1}, Lorg/spongycastle/math/raw/Nat;->add33To(II[I)I
.line 125
:cond_1d
return-void
.end method
.method public static square([I[I)V
.registers 3
.prologue
.line 129
invoke-static {}, Lorg/spongycastle/math/raw/Nat224;->createExt()[I
move-result-object v0
.line 130
invoke-static {p0, v0}, Lorg/spongycastle/math/raw/Nat224;->square([I[I)V
.line 131
invoke-static {v0, p1}, Lorg/spongycastle/math/ec/custom/sec/SecP224K1Field;->reduce([I[I)V
.line 132
return-void
.end method
.method public static squareN([II[I)V
.registers 4
.prologue
.line 138
invoke-static {}, Lorg/spongycastle/math/raw/Nat224;->createExt()[I
move-result-object v0
.line 139
invoke-static {p0, v0}, Lorg/spongycastle/math/raw/Nat224;->square([I[I)V
.line 140
invoke-static {v0, p2}, Lorg/spongycastle/math/ec/custom/sec/SecP224K1Field;->reduce([I[I)V
.line 142
:goto_a
add-int/lit8 p1, p1, -0x1
if-lez p1, :cond_15
.line 144
invoke-static {p2, v0}, Lorg/spongycastle/math/raw/Nat224;->square([I[I)V
.line 145
invoke-static {v0, p2}, Lorg/spongycastle/math/ec/custom/sec/SecP224K1Field;->reduce([I[I)V
goto :goto_a
.line 147
:cond_15
return-void
.end method
.method public static subtract([I[I[I)V
.registers 5
.prologue
.line 151
invoke-static {p0, p1, p2}, Lorg/spongycastle/math/raw/Nat224;->sub([I[I[I)I
move-result v0
.line 152
if-eqz v0, :cond_c
.line 154
const/4 v0, 0x7
const/16 v1, 0x1a93
invoke-static {v0, v1, p2}, Lorg/spongycastle/math/raw/Nat;->sub33From(II[I)I
.line 156
:cond_c
return-void
.end method
.method public static subtractExt([I[I[I)V
.registers 6
.prologue
const/16 v2, 0xe
.line 160
invoke-static {v2, p0, p1, p2}, Lorg/spongycastle/math/raw/Nat;->sub(I[I[I[I)I
move-result v0
.line 161
if-eqz v0, :cond_19
.line 163
sget-object v0, Lorg/spongycastle/math/ec/custom/sec/SecP224K1Field;->PExtInv:[I
array-length v0, v0
sget-object v1, Lorg/spongycastle/math/ec/custom/sec/SecP224K1Field;->PExtInv:[I
invoke-static {v0, v1, p2}, Lorg/spongycastle/math/raw/Nat;->subFrom(I[I[I)I
move-result v0
if-eqz v0, :cond_19
.line 165
sget-object v0, Lorg/spongycastle/math/ec/custom/sec/SecP224K1Field;->PExtInv:[I
array-length v0, v0
invoke-static {v2, p2, v0}, Lorg/spongycastle/math/raw/Nat;->decAt(I[II)I
.line 168
:cond_19
return-void
.end method
.method public static twice([I[I)V
.registers 5
.prologue
const/4 v2, 0x7
.line 172
const/4 v0, 0x0
invoke-static {v2, p0, v0, p1}, Lorg/spongycastle/math/raw/Nat;->shiftUpBit(I[II[I)I
move-result v0
.line 173
if-nez v0, :cond_16
const/4 v0, 0x6
aget v0, p1, v0
const/4 v1, -0x1
if-ne v0, v1, :cond_1b
sget-object v0, Lorg/spongycastle/math/ec/custom/sec/SecP224K1Field;->P:[I
invoke-static {p1, v0}, Lorg/spongycastle/math/raw/Nat224;->gte([I[I)Z
move-result v0
if-eqz v0, :cond_1b
.line 175
:cond_16
const/16 v0, 0x1a93
invoke-static {v2, v0, p1}, Lorg/spongycastle/math/raw/Nat;->add33To(II[I)I
.line 177
:cond_1b
return-void
.end method