ECCurve$Config.smali
.class public Lorg/spongycastle/math/ec/ECCurve$Config;
.super Ljava/lang/Object;
.source "ECCurve.java"
# instance fields
.field protected coord:I
.field protected endomorphism:Lorg/spongycastle/math/ec/endo/ECEndomorphism;
.field protected multiplier:Lorg/spongycastle/math/ec/ECMultiplier;
.field final synthetic this$0:Lorg/spongycastle/math/ec/ECCurve;
# direct methods
.method constructor <init>(Lorg/spongycastle/math/ec/ECCurve;ILorg/spongycastle/math/ec/endo/ECEndomorphism;Lorg/spongycastle/math/ec/ECMultiplier;)V
.registers 5
.prologue
.line 41
iput-object p1, p0, Lorg/spongycastle/math/ec/ECCurve$Config;->this$0:Lorg/spongycastle/math/ec/ECCurve;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 42
iput p2, p0, Lorg/spongycastle/math/ec/ECCurve$Config;->coord:I
.line 43
iput-object p3, p0, Lorg/spongycastle/math/ec/ECCurve$Config;->endomorphism:Lorg/spongycastle/math/ec/endo/ECEndomorphism;
.line 44
iput-object p4, p0, Lorg/spongycastle/math/ec/ECCurve$Config;->multiplier:Lorg/spongycastle/math/ec/ECMultiplier;
.line 45
return-void
.end method
# virtual methods
.method public create()Lorg/spongycastle/math/ec/ECCurve;
.registers 3
.prologue
.line 67
iget-object v0, p0, Lorg/spongycastle/math/ec/ECCurve$Config;->this$0:Lorg/spongycastle/math/ec/ECCurve;
iget v1, p0, Lorg/spongycastle/math/ec/ECCurve$Config;->coord:I
invoke-virtual {v0, v1}, Lorg/spongycastle/math/ec/ECCurve;->supportsCoordinateSystem(I)Z
move-result v0
if-nez v0, :cond_12
.line 69
new-instance v0, Ljava/lang/IllegalStateException;
const-string v1, "unsupported coordinate system"
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw v0
.line 72
:cond_12
iget-object v0, p0, Lorg/spongycastle/math/ec/ECCurve$Config;->this$0:Lorg/spongycastle/math/ec/ECCurve;
invoke-virtual {v0}, Lorg/spongycastle/math/ec/ECCurve;->cloneCurve()Lorg/spongycastle/math/ec/ECCurve;
move-result-object v1
.line 73
iget-object v0, p0, Lorg/spongycastle/math/ec/ECCurve$Config;->this$0:Lorg/spongycastle/math/ec/ECCurve;
if-ne v1, v0, :cond_24
.line 75
new-instance v0, Ljava/lang/IllegalStateException;
const-string v1, "implementation returned current curve"
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw v0
.line 79
:cond_24
monitor-enter v1
.line 81
:try_start_25
iget v0, p0, Lorg/spongycastle/math/ec/ECCurve$Config;->coord:I
iput v0, v1, Lorg/spongycastle/math/ec/ECCurve;->coord:I
.line 82
iget-object v0, p0, Lorg/spongycastle/math/ec/ECCurve$Config;->endomorphism:Lorg/spongycastle/math/ec/endo/ECEndomorphism;
iput-object v0, v1, Lorg/spongycastle/math/ec/ECCurve;->endomorphism:Lorg/spongycastle/math/ec/endo/ECEndomorphism;
.line 83
iget-object v0, p0, Lorg/spongycastle/math/ec/ECCurve$Config;->multiplier:Lorg/spongycastle/math/ec/ECMultiplier;
iput-object v0, v1, Lorg/spongycastle/math/ec/ECCurve;->multiplier:Lorg/spongycastle/math/ec/ECMultiplier;
.line 84
monitor-exit v1
.line 86
return-object v1
.line 84
:catchall_33
move-exception v0
monitor-exit v1
:try_end_35
.catchall {:try_start_25 .. :try_end_35} :catchall_33
throw v0
.end method
.method public setCoordinateSystem(I)Lorg/spongycastle/math/ec/ECCurve$Config;
.registers 2
.prologue
.line 49
iput p1, p0, Lorg/spongycastle/math/ec/ECCurve$Config;->coord:I
.line 50
return-object p0
.end method
.method public setEndomorphism(Lorg/spongycastle/math/ec/endo/ECEndomorphism;)Lorg/spongycastle/math/ec/ECCurve$Config;
.registers 2
.prologue
.line 55
iput-object p1, p0, Lorg/spongycastle/math/ec/ECCurve$Config;->endomorphism:Lorg/spongycastle/math/ec/endo/ECEndomorphism;
.line 56
return-object p0
.end method
.method public setMultiplier(Lorg/spongycastle/math/ec/ECMultiplier;)Lorg/spongycastle/math/ec/ECCurve$Config;
.registers 2
.prologue
.line 61
iput-object p1, p0, Lorg/spongycastle/math/ec/ECCurve$Config;->multiplier:Lorg/spongycastle/math/ec/ECMultiplier;
.line 62
return-object p0
.end method