OpenSSLRSAPrivateCrtKey.smali
.class final Lorg/conscrypt/OpenSSLRSAPrivateCrtKey;
.super Lorg/conscrypt/OpenSSLRSAPrivateKey;
.source ""
# interfaces
.implements Ljava/security/interfaces/RSAPrivateCrtKey;
# static fields
.field private static final serialVersionUID:J = 0x34880ef7f10bfb7dL
# instance fields
.field private crtCoefficient:Ljava/math/BigInteger;
.field private primeExponentP:Ljava/math/BigInteger;
.field private primeExponentQ:Ljava/math/BigInteger;
.field private primeP:Ljava/math/BigInteger;
.field private primeQ:Ljava/math/BigInteger;
.field private publicExponent:Ljava/math/BigInteger;
# direct methods
.method constructor <init>(Ljava/security/spec/RSAPrivateCrtKeySpec;)V
.registers 2
invoke-static {p1}, Lorg/conscrypt/OpenSSLRSAPrivateCrtKey;->init(Ljava/security/spec/RSAPrivateCrtKeySpec;)Lorg/conscrypt/OpenSSLKey;
move-result-object p1
invoke-direct {p0, p1}, Lorg/conscrypt/OpenSSLRSAPrivateKey;-><init>(Lorg/conscrypt/OpenSSLKey;)V
return-void
.end method
.method constructor <init>(Lorg/conscrypt/OpenSSLKey;)V
.registers 2
invoke-direct {p0, p1}, Lorg/conscrypt/OpenSSLRSAPrivateKey;-><init>(Lorg/conscrypt/OpenSSLKey;)V
return-void
.end method
.method constructor <init>(Lorg/conscrypt/OpenSSLKey;[[B)V
.registers 3
invoke-direct {p0, p1, p2}, Lorg/conscrypt/OpenSSLRSAPrivateKey;-><init>(Lorg/conscrypt/OpenSSLKey;[[B)V
return-void
.end method
.method static getInstance(Ljava/security/interfaces/RSAPrivateCrtKey;)Lorg/conscrypt/OpenSSLKey;
.registers 18
invoke-interface/range {p0 .. p0}, Ljava/security/interfaces/RSAPrivateCrtKey;->getFormat()Ljava/lang/String;
move-result-object v0
if-nez v0, :cond_b
invoke-static/range {p0 .. p0}, Lorg/conscrypt/OpenSSLRSAPrivateKey;->wrapPlatformKey(Ljava/security/interfaces/RSAPrivateKey;)Lorg/conscrypt/OpenSSLKey;
move-result-object v0
return-object v0
:cond_b
invoke-interface/range {p0 .. p0}, Ljava/security/interfaces/RSAPrivateCrtKey;->getModulus()Ljava/math/BigInteger;
move-result-object v0
invoke-interface/range {p0 .. p0}, Ljava/security/interfaces/RSAPrivateCrtKey;->getPrivateExponent()Ljava/math/BigInteger;
move-result-object v1
if-eqz v0, :cond_87
if-eqz v1, :cond_7f
:try_start_17
invoke-interface/range {p0 .. p0}, Ljava/security/interfaces/RSAPrivateCrtKey;->getPublicExponent()Ljava/math/BigInteger;
move-result-object v2
invoke-interface/range {p0 .. p0}, Ljava/security/interfaces/RSAPrivateCrtKey;->getPrimeP()Ljava/math/BigInteger;
move-result-object v3
invoke-interface/range {p0 .. p0}, Ljava/security/interfaces/RSAPrivateCrtKey;->getPrimeQ()Ljava/math/BigInteger;
move-result-object v4
invoke-interface/range {p0 .. p0}, Ljava/security/interfaces/RSAPrivateCrtKey;->getPrimeExponentP()Ljava/math/BigInteger;
move-result-object v5
invoke-interface/range {p0 .. p0}, Ljava/security/interfaces/RSAPrivateCrtKey;->getPrimeExponentQ()Ljava/math/BigInteger;
move-result-object v6
invoke-interface/range {p0 .. p0}, Ljava/security/interfaces/RSAPrivateCrtKey;->getCrtCoefficient()Ljava/math/BigInteger;
move-result-object v7
new-instance v8, Lorg/conscrypt/OpenSSLKey;
invoke-virtual {v0}, Ljava/math/BigInteger;->toByteArray()[B
move-result-object v9
const/4 v0, 0x0
if-nez v2, :cond_3a
move-object v10, v0
goto :goto_3f
:cond_3a
invoke-virtual {v2}, Ljava/math/BigInteger;->toByteArray()[B
move-result-object v2
move-object v10, v2
:goto_3f
invoke-virtual {v1}, Ljava/math/BigInteger;->toByteArray()[B
move-result-object v11
if-nez v3, :cond_47
move-object v12, v0
goto :goto_4c
:cond_47
invoke-virtual {v3}, Ljava/math/BigInteger;->toByteArray()[B
move-result-object v1
move-object v12, v1
:goto_4c
if-nez v4, :cond_50
move-object v13, v0
goto :goto_55
:cond_50
invoke-virtual {v4}, Ljava/math/BigInteger;->toByteArray()[B
move-result-object v1
move-object v13, v1
:goto_55
if-nez v5, :cond_59
move-object v14, v0
goto :goto_5e
:cond_59
invoke-virtual {v5}, Ljava/math/BigInteger;->toByteArray()[B
move-result-object v1
move-object v14, v1
:goto_5e
if-nez v6, :cond_62
move-object v15, v0
goto :goto_67
:cond_62
invoke-virtual {v6}, Ljava/math/BigInteger;->toByteArray()[B
move-result-object v1
move-object v15, v1
:goto_67
if-nez v7, :cond_6a
goto :goto_6e
:cond_6a
invoke-virtual {v7}, Ljava/math/BigInteger;->toByteArray()[B
move-result-object v0
:goto_6e
move-object/from16 v16, v0
invoke-static/range {v9 .. v16}, Lorg/conscrypt/NativeCrypto;->EVP_PKEY_new_RSA([B[B[B[B[B[B[B[B)J
move-result-wide v0
invoke-direct {v8, v0, v1}, Lorg/conscrypt/OpenSSLKey;-><init>(J)V
:try_end_77
.catch Ljava/lang/Exception; {:try_start_17 .. :try_end_77} :catch_78
return-object v8
:catch_78
move-exception v0
new-instance v1, Ljava/security/InvalidKeyException;
invoke-direct {v1, v0}, Ljava/security/InvalidKeyException;-><init>(Ljava/lang/Throwable;)V
throw v1
:cond_7f
new-instance v0, Ljava/security/InvalidKeyException;
const-string v1, "privateExponent == null"
invoke-direct {v0, v1}, Ljava/security/InvalidKeyException;-><init>(Ljava/lang/String;)V
throw v0
:cond_87
new-instance v0, Ljava/security/InvalidKeyException;
const-string v1, "modulus == null"
invoke-direct {v0, v1}, Ljava/security/InvalidKeyException;-><init>(Ljava/lang/String;)V
throw v0
.end method
.method private static init(Ljava/security/spec/RSAPrivateCrtKeySpec;)Lorg/conscrypt/OpenSSLKey;
.registers 18
invoke-virtual/range {p0 .. p0}, Ljava/security/spec/RSAPrivateCrtKeySpec;->getModulus()Ljava/math/BigInteger;
move-result-object v0
invoke-virtual/range {p0 .. p0}, Ljava/security/spec/RSAPrivateCrtKeySpec;->getPrivateExponent()Ljava/math/BigInteger;
move-result-object v1
if-eqz v0, :cond_7c
if-eqz v1, :cond_74
:try_start_c
invoke-virtual/range {p0 .. p0}, Ljava/security/spec/RSAPrivateCrtKeySpec;->getPublicExponent()Ljava/math/BigInteger;
move-result-object v2
invoke-virtual/range {p0 .. p0}, Ljava/security/spec/RSAPrivateCrtKeySpec;->getPrimeP()Ljava/math/BigInteger;
move-result-object v3
invoke-virtual/range {p0 .. p0}, Ljava/security/spec/RSAPrivateCrtKeySpec;->getPrimeQ()Ljava/math/BigInteger;
move-result-object v4
invoke-virtual/range {p0 .. p0}, Ljava/security/spec/RSAPrivateCrtKeySpec;->getPrimeExponentP()Ljava/math/BigInteger;
move-result-object v5
invoke-virtual/range {p0 .. p0}, Ljava/security/spec/RSAPrivateCrtKeySpec;->getPrimeExponentQ()Ljava/math/BigInteger;
move-result-object v6
invoke-virtual/range {p0 .. p0}, Ljava/security/spec/RSAPrivateCrtKeySpec;->getCrtCoefficient()Ljava/math/BigInteger;
move-result-object v7
new-instance v8, Lorg/conscrypt/OpenSSLKey;
invoke-virtual {v0}, Ljava/math/BigInteger;->toByteArray()[B
move-result-object v9
const/4 v0, 0x0
if-nez v2, :cond_2f
move-object v10, v0
goto :goto_34
:cond_2f
invoke-virtual {v2}, Ljava/math/BigInteger;->toByteArray()[B
move-result-object v2
move-object v10, v2
:goto_34
invoke-virtual {v1}, Ljava/math/BigInteger;->toByteArray()[B
move-result-object v11
if-nez v3, :cond_3c
move-object v12, v0
goto :goto_41
:cond_3c
invoke-virtual {v3}, Ljava/math/BigInteger;->toByteArray()[B
move-result-object v1
move-object v12, v1
:goto_41
if-nez v4, :cond_45
move-object v13, v0
goto :goto_4a
:cond_45
invoke-virtual {v4}, Ljava/math/BigInteger;->toByteArray()[B
move-result-object v1
move-object v13, v1
:goto_4a
if-nez v5, :cond_4e
move-object v14, v0
goto :goto_53
:cond_4e
invoke-virtual {v5}, Ljava/math/BigInteger;->toByteArray()[B
move-result-object v1
move-object v14, v1
:goto_53
if-nez v6, :cond_57
move-object v15, v0
goto :goto_5c
:cond_57
invoke-virtual {v6}, Ljava/math/BigInteger;->toByteArray()[B
move-result-object v1
move-object v15, v1
:goto_5c
if-nez v7, :cond_5f
goto :goto_63
:cond_5f
invoke-virtual {v7}, Ljava/math/BigInteger;->toByteArray()[B
move-result-object v0
:goto_63
move-object/from16 v16, v0
invoke-static/range {v9 .. v16}, Lorg/conscrypt/NativeCrypto;->EVP_PKEY_new_RSA([B[B[B[B[B[B[B[B)J
move-result-wide v0
invoke-direct {v8, v0, v1}, Lorg/conscrypt/OpenSSLKey;-><init>(J)V
:try_end_6c
.catch Ljava/lang/Exception; {:try_start_c .. :try_end_6c} :catch_6d
return-object v8
:catch_6d
move-exception v0
new-instance v1, Ljava/security/spec/InvalidKeySpecException;
invoke-direct {v1, v0}, Ljava/security/spec/InvalidKeySpecException;-><init>(Ljava/lang/Throwable;)V
throw v1
:cond_74
new-instance v0, Ljava/security/spec/InvalidKeySpecException;
const-string v1, "privateExponent == null"
invoke-direct {v0, v1}, Ljava/security/spec/InvalidKeySpecException;-><init>(Ljava/lang/String;)V
throw v0
:cond_7c
new-instance v0, Ljava/security/spec/InvalidKeySpecException;
const-string v1, "modulus == null"
invoke-direct {v0, v1}, Ljava/security/spec/InvalidKeySpecException;-><init>(Ljava/lang/String;)V
throw v0
.end method
.method private readObject(Ljava/io/ObjectInputStream;)V
.registers 11
invoke-virtual {p1}, Ljava/io/ObjectInputStream;->defaultReadObject()V
new-instance p1, Lorg/conscrypt/OpenSSLKey;
iget-object v0, p0, Lorg/conscrypt/OpenSSLRSAPrivateKey;->modulus:Ljava/math/BigInteger;
invoke-virtual {v0}, Ljava/math/BigInteger;->toByteArray()[B
move-result-object v1
iget-object v0, p0, Lorg/conscrypt/OpenSSLRSAPrivateCrtKey;->publicExponent:Ljava/math/BigInteger;
const/4 v2, 0x0
if-nez v0, :cond_12
move-object v0, v2
goto :goto_16
:cond_12
invoke-virtual {v0}, Ljava/math/BigInteger;->toByteArray()[B
move-result-object v0
:goto_16
iget-object v3, p0, Lorg/conscrypt/OpenSSLRSAPrivateKey;->privateExponent:Ljava/math/BigInteger;
invoke-virtual {v3}, Ljava/math/BigInteger;->toByteArray()[B
move-result-object v3
iget-object v4, p0, Lorg/conscrypt/OpenSSLRSAPrivateCrtKey;->primeP:Ljava/math/BigInteger;
if-nez v4, :cond_22
move-object v4, v2
goto :goto_26
:cond_22
invoke-virtual {v4}, Ljava/math/BigInteger;->toByteArray()[B
move-result-object v4
:goto_26
iget-object v5, p0, Lorg/conscrypt/OpenSSLRSAPrivateCrtKey;->primeQ:Ljava/math/BigInteger;
if-nez v5, :cond_2c
move-object v5, v2
goto :goto_30
:cond_2c
invoke-virtual {v5}, Ljava/math/BigInteger;->toByteArray()[B
move-result-object v5
:goto_30
iget-object v6, p0, Lorg/conscrypt/OpenSSLRSAPrivateCrtKey;->primeExponentP:Ljava/math/BigInteger;
if-nez v6, :cond_36
move-object v6, v2
goto :goto_3a
:cond_36
invoke-virtual {v6}, Ljava/math/BigInteger;->toByteArray()[B
move-result-object v6
:goto_3a
iget-object v7, p0, Lorg/conscrypt/OpenSSLRSAPrivateCrtKey;->primeExponentQ:Ljava/math/BigInteger;
if-nez v7, :cond_40
move-object v7, v2
goto :goto_44
:cond_40
invoke-virtual {v7}, Ljava/math/BigInteger;->toByteArray()[B
move-result-object v7
:goto_44
iget-object v8, p0, Lorg/conscrypt/OpenSSLRSAPrivateCrtKey;->crtCoefficient:Ljava/math/BigInteger;
if-nez v8, :cond_49
goto :goto_4d
:cond_49
invoke-virtual {v8}, Ljava/math/BigInteger;->toByteArray()[B
move-result-object v2
:goto_4d
move-object v8, v2
move-object v2, v0
invoke-static/range {v1 .. v8}, Lorg/conscrypt/NativeCrypto;->EVP_PKEY_new_RSA([B[B[B[B[B[B[B[B)J
move-result-wide v0
invoke-direct {p1, v0, v1}, Lorg/conscrypt/OpenSSLKey;-><init>(J)V
iput-object p1, p0, Lorg/conscrypt/OpenSSLRSAPrivateKey;->key:Lorg/conscrypt/OpenSSLKey;
const/4 p1, 0x1
iput-boolean p1, p0, Lorg/conscrypt/OpenSSLRSAPrivateKey;->fetchedParams:Z
return-void
.end method
.method private writeObject(Ljava/io/ObjectOutputStream;)V
.registers 3
invoke-virtual {p0}, Lorg/conscrypt/OpenSSLRSAPrivateKey;->getOpenSSLKey()Lorg/conscrypt/OpenSSLKey;
move-result-object v0
invoke-virtual {v0}, Lorg/conscrypt/OpenSSLKey;->isHardwareBacked()Z
move-result v0
if-nez v0, :cond_11
invoke-virtual {p0}, Lorg/conscrypt/OpenSSLRSAPrivateKey;->ensureReadParams()V
invoke-virtual {p1}, Ljava/io/ObjectOutputStream;->defaultWriteObject()V
return-void
:cond_11
new-instance p1, Ljava/io/NotSerializableException;
const-string v0, "Hardware backed keys cannot be serialized"
invoke-direct {p1, v0}, Ljava/io/NotSerializableException;-><init>(Ljava/lang/String;)V
throw p1
.end method
# virtual methods
.method public equals(Ljava/lang/Object;)Z
.registers 6
const/4 v0, 0x1
if-ne p1, p0, :cond_4
return v0
:cond_4
instance-of v1, p1, Lorg/conscrypt/OpenSSLRSAPrivateKey;
if-eqz v1, :cond_17
check-cast p1, Lorg/conscrypt/OpenSSLRSAPrivateKey;
invoke-virtual {p0}, Lorg/conscrypt/OpenSSLRSAPrivateKey;->getOpenSSLKey()Lorg/conscrypt/OpenSSLKey;
move-result-object v0
invoke-virtual {p1}, Lorg/conscrypt/OpenSSLRSAPrivateKey;->getOpenSSLKey()Lorg/conscrypt/OpenSSLKey;
move-result-object p1
invoke-virtual {v0, p1}, Lorg/conscrypt/OpenSSLKey;->equals(Ljava/lang/Object;)Z
move-result p1
return p1
:cond_17
instance-of v1, p1, Ljava/security/interfaces/RSAPrivateCrtKey;
const/4 v2, 0x0
if-eqz v1, :cond_af
invoke-virtual {p0}, Lorg/conscrypt/OpenSSLRSAPrivateKey;->ensureReadParams()V
check-cast p1, Ljava/security/interfaces/RSAPrivateCrtKey;
invoke-virtual {p0}, Lorg/conscrypt/OpenSSLRSAPrivateKey;->getOpenSSLKey()Lorg/conscrypt/OpenSSLKey;
move-result-object v1
invoke-virtual {v1}, Lorg/conscrypt/OpenSSLKey;->isHardwareBacked()Z
move-result v1
if-eqz v1, :cond_48
invoke-virtual {p0}, Lorg/conscrypt/OpenSSLRSAPrivateKey;->getModulus()Ljava/math/BigInteger;
move-result-object v1
invoke-interface {p1}, Ljava/security/interfaces/RSAPrivateCrtKey;->getModulus()Ljava/math/BigInteger;
move-result-object v3
invoke-virtual {v1, v3}, Ljava/math/BigInteger;->equals(Ljava/lang/Object;)Z
move-result v1
if-eqz v1, :cond_46
iget-object v1, p0, Lorg/conscrypt/OpenSSLRSAPrivateCrtKey;->publicExponent:Ljava/math/BigInteger;
invoke-interface {p1}, Ljava/security/interfaces/RSAPrivateCrtKey;->getPublicExponent()Ljava/math/BigInteger;
move-result-object p1
invoke-virtual {v1, p1}, Ljava/math/BigInteger;->equals(Ljava/lang/Object;)Z
move-result p1
if-eqz p1, :cond_46
goto :goto_47
:cond_46
const/4 v0, 0x0
:goto_47
return v0
:cond_48
invoke-virtual {p0}, Lorg/conscrypt/OpenSSLRSAPrivateKey;->getModulus()Ljava/math/BigInteger;
move-result-object v1
invoke-interface {p1}, Ljava/security/interfaces/RSAPrivateCrtKey;->getModulus()Ljava/math/BigInteger;
move-result-object v3
invoke-virtual {v1, v3}, Ljava/math/BigInteger;->equals(Ljava/lang/Object;)Z
move-result v1
if-eqz v1, :cond_ad
iget-object v1, p0, Lorg/conscrypt/OpenSSLRSAPrivateCrtKey;->publicExponent:Ljava/math/BigInteger;
invoke-interface {p1}, Ljava/security/interfaces/RSAPrivateCrtKey;->getPublicExponent()Ljava/math/BigInteger;
move-result-object v3
invoke-virtual {v1, v3}, Ljava/math/BigInteger;->equals(Ljava/lang/Object;)Z
move-result v1
if-eqz v1, :cond_ad
invoke-virtual {p0}, Lorg/conscrypt/OpenSSLRSAPrivateKey;->getPrivateExponent()Ljava/math/BigInteger;
move-result-object v1
invoke-interface {p1}, Ljava/security/interfaces/RSAPrivateCrtKey;->getPrivateExponent()Ljava/math/BigInteger;
move-result-object v3
invoke-virtual {v1, v3}, Ljava/math/BigInteger;->equals(Ljava/lang/Object;)Z
move-result v1
if-eqz v1, :cond_ad
iget-object v1, p0, Lorg/conscrypt/OpenSSLRSAPrivateCrtKey;->primeP:Ljava/math/BigInteger;
invoke-interface {p1}, Ljava/security/interfaces/RSAPrivateCrtKey;->getPrimeP()Ljava/math/BigInteger;
move-result-object v3
invoke-virtual {v1, v3}, Ljava/math/BigInteger;->equals(Ljava/lang/Object;)Z
move-result v1
if-eqz v1, :cond_ad
iget-object v1, p0, Lorg/conscrypt/OpenSSLRSAPrivateCrtKey;->primeQ:Ljava/math/BigInteger;
invoke-interface {p1}, Ljava/security/interfaces/RSAPrivateCrtKey;->getPrimeQ()Ljava/math/BigInteger;
move-result-object v3
invoke-virtual {v1, v3}, Ljava/math/BigInteger;->equals(Ljava/lang/Object;)Z
move-result v1
if-eqz v1, :cond_ad
iget-object v1, p0, Lorg/conscrypt/OpenSSLRSAPrivateCrtKey;->primeExponentP:Ljava/math/BigInteger;
invoke-interface {p1}, Ljava/security/interfaces/RSAPrivateCrtKey;->getPrimeExponentP()Ljava/math/BigInteger;
move-result-object v3
invoke-virtual {v1, v3}, Ljava/math/BigInteger;->equals(Ljava/lang/Object;)Z
move-result v1
if-eqz v1, :cond_ad
iget-object v1, p0, Lorg/conscrypt/OpenSSLRSAPrivateCrtKey;->primeExponentQ:Ljava/math/BigInteger;
invoke-interface {p1}, Ljava/security/interfaces/RSAPrivateCrtKey;->getPrimeExponentQ()Ljava/math/BigInteger;
move-result-object v3
invoke-virtual {v1, v3}, Ljava/math/BigInteger;->equals(Ljava/lang/Object;)Z
move-result v1
if-eqz v1, :cond_ad
iget-object v1, p0, Lorg/conscrypt/OpenSSLRSAPrivateCrtKey;->crtCoefficient:Ljava/math/BigInteger;
invoke-interface {p1}, Ljava/security/interfaces/RSAPrivateCrtKey;->getCrtCoefficient()Ljava/math/BigInteger;
move-result-object p1
invoke-virtual {v1, p1}, Ljava/math/BigInteger;->equals(Ljava/lang/Object;)Z
move-result p1
if-eqz p1, :cond_ad
goto :goto_ae
:cond_ad
const/4 v0, 0x0
:goto_ae
return v0
:cond_af
instance-of v1, p1, Ljava/security/interfaces/RSAPrivateKey;
if-eqz v1, :cond_ee
invoke-virtual {p0}, Lorg/conscrypt/OpenSSLRSAPrivateKey;->ensureReadParams()V
check-cast p1, Ljava/security/interfaces/RSAPrivateKey;
invoke-virtual {p0}, Lorg/conscrypt/OpenSSLRSAPrivateKey;->getOpenSSLKey()Lorg/conscrypt/OpenSSLKey;
move-result-object v1
invoke-virtual {v1}, Lorg/conscrypt/OpenSSLKey;->isHardwareBacked()Z
move-result v1
if-eqz v1, :cond_cf
invoke-virtual {p0}, Lorg/conscrypt/OpenSSLRSAPrivateKey;->getModulus()Ljava/math/BigInteger;
move-result-object v0
invoke-interface {p1}, Ljava/security/interfaces/RSAPrivateKey;->getModulus()Ljava/math/BigInteger;
move-result-object p1
invoke-virtual {v0, p1}, Ljava/math/BigInteger;->equals(Ljava/lang/Object;)Z
move-result p1
return p1
:cond_cf
invoke-virtual {p0}, Lorg/conscrypt/OpenSSLRSAPrivateKey;->getModulus()Ljava/math/BigInteger;
move-result-object v1
invoke-interface {p1}, Ljava/security/interfaces/RSAPrivateKey;->getModulus()Ljava/math/BigInteger;
move-result-object v3
invoke-virtual {v1, v3}, Ljava/math/BigInteger;->equals(Ljava/lang/Object;)Z
move-result v1
if-eqz v1, :cond_ec
invoke-virtual {p0}, Lorg/conscrypt/OpenSSLRSAPrivateKey;->getPrivateExponent()Ljava/math/BigInteger;
move-result-object v1
invoke-interface {p1}, Ljava/security/interfaces/RSAPrivateKey;->getPrivateExponent()Ljava/math/BigInteger;
move-result-object p1
invoke-virtual {v1, p1}, Ljava/math/BigInteger;->equals(Ljava/lang/Object;)Z
move-result p1
if-eqz p1, :cond_ec
goto :goto_ed
:cond_ec
const/4 v0, 0x0
:goto_ed
return v0
:cond_ee
return v2
.end method
.method public getCrtCoefficient()Ljava/math/BigInteger;
.registers 2
invoke-virtual {p0}, Lorg/conscrypt/OpenSSLRSAPrivateKey;->ensureReadParams()V
iget-object v0, p0, Lorg/conscrypt/OpenSSLRSAPrivateCrtKey;->crtCoefficient:Ljava/math/BigInteger;
return-object v0
.end method
.method public getPrimeExponentP()Ljava/math/BigInteger;
.registers 2
invoke-virtual {p0}, Lorg/conscrypt/OpenSSLRSAPrivateKey;->ensureReadParams()V
iget-object v0, p0, Lorg/conscrypt/OpenSSLRSAPrivateCrtKey;->primeExponentP:Ljava/math/BigInteger;
return-object v0
.end method
.method public getPrimeExponentQ()Ljava/math/BigInteger;
.registers 2
invoke-virtual {p0}, Lorg/conscrypt/OpenSSLRSAPrivateKey;->ensureReadParams()V
iget-object v0, p0, Lorg/conscrypt/OpenSSLRSAPrivateCrtKey;->primeExponentQ:Ljava/math/BigInteger;
return-object v0
.end method
.method public getPrimeP()Ljava/math/BigInteger;
.registers 2
invoke-virtual {p0}, Lorg/conscrypt/OpenSSLRSAPrivateKey;->ensureReadParams()V
iget-object v0, p0, Lorg/conscrypt/OpenSSLRSAPrivateCrtKey;->primeP:Ljava/math/BigInteger;
return-object v0
.end method
.method public getPrimeQ()Ljava/math/BigInteger;
.registers 2
invoke-virtual {p0}, Lorg/conscrypt/OpenSSLRSAPrivateKey;->ensureReadParams()V
iget-object v0, p0, Lorg/conscrypt/OpenSSLRSAPrivateCrtKey;->primeQ:Ljava/math/BigInteger;
return-object v0
.end method
.method public getPublicExponent()Ljava/math/BigInteger;
.registers 2
invoke-virtual {p0}, Lorg/conscrypt/OpenSSLRSAPrivateKey;->ensureReadParams()V
iget-object v0, p0, Lorg/conscrypt/OpenSSLRSAPrivateCrtKey;->publicExponent:Ljava/math/BigInteger;
return-object v0
.end method
.method public final hashCode()I
.registers 3
invoke-super {p0}, Lorg/conscrypt/OpenSSLRSAPrivateKey;->hashCode()I
move-result v0
iget-object v1, p0, Lorg/conscrypt/OpenSSLRSAPrivateCrtKey;->publicExponent:Ljava/math/BigInteger;
if-eqz v1, :cond_d
invoke-virtual {v1}, Ljava/math/BigInteger;->hashCode()I
move-result v1
xor-int/2addr v0, v1
:cond_d
return v0
.end method
.method declared-synchronized readParams([[B)V
.registers 4
monitor-enter p0
:try_start_1
invoke-super {p0, p1}, Lorg/conscrypt/OpenSSLRSAPrivateKey;->readParams([[B)V
const/4 v0, 0x1
aget-object v1, p1, v0
if-eqz v1, :cond_12
new-instance v1, Ljava/math/BigInteger;
aget-object v0, p1, v0
invoke-direct {v1, v0}, Ljava/math/BigInteger;-><init>([B)V
iput-object v1, p0, Lorg/conscrypt/OpenSSLRSAPrivateCrtKey;->publicExponent:Ljava/math/BigInteger;
:cond_12
const/4 v0, 0x3
aget-object v1, p1, v0
if-eqz v1, :cond_20
new-instance v1, Ljava/math/BigInteger;
aget-object v0, p1, v0
invoke-direct {v1, v0}, Ljava/math/BigInteger;-><init>([B)V
iput-object v1, p0, Lorg/conscrypt/OpenSSLRSAPrivateCrtKey;->primeP:Ljava/math/BigInteger;
:cond_20
const/4 v0, 0x4
aget-object v1, p1, v0
if-eqz v1, :cond_2e
new-instance v1, Ljava/math/BigInteger;
aget-object v0, p1, v0
invoke-direct {v1, v0}, Ljava/math/BigInteger;-><init>([B)V
iput-object v1, p0, Lorg/conscrypt/OpenSSLRSAPrivateCrtKey;->primeQ:Ljava/math/BigInteger;
:cond_2e
const/4 v0, 0x5
aget-object v1, p1, v0
if-eqz v1, :cond_3c
new-instance v1, Ljava/math/BigInteger;
aget-object v0, p1, v0
invoke-direct {v1, v0}, Ljava/math/BigInteger;-><init>([B)V
iput-object v1, p0, Lorg/conscrypt/OpenSSLRSAPrivateCrtKey;->primeExponentP:Ljava/math/BigInteger;
:cond_3c
const/4 v0, 0x6
aget-object v1, p1, v0
if-eqz v1, :cond_4a
new-instance v1, Ljava/math/BigInteger;
aget-object v0, p1, v0
invoke-direct {v1, v0}, Ljava/math/BigInteger;-><init>([B)V
iput-object v1, p0, Lorg/conscrypt/OpenSSLRSAPrivateCrtKey;->primeExponentQ:Ljava/math/BigInteger;
:cond_4a
const/4 v0, 0x7
aget-object v1, p1, v0
if-eqz v1, :cond_58
new-instance v1, Ljava/math/BigInteger;
aget-object p1, p1, v0
invoke-direct {v1, p1}, Ljava/math/BigInteger;-><init>([B)V
iput-object v1, p0, Lorg/conscrypt/OpenSSLRSAPrivateCrtKey;->crtCoefficient:Ljava/math/BigInteger;
:try_end_58
.catchall {:try_start_1 .. :try_end_58} :catchall_5a
:cond_58
monitor-exit p0
return-void
:catchall_5a
move-exception p1
monitor-exit p0
throw p1
.end method
.method public toString()Ljava/lang/String;
.registers 4
new-instance v0, Ljava/lang/StringBuilder;
const-string v1, "OpenSSLRSAPrivateCrtKey{"
invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
invoke-virtual {p0}, Lorg/conscrypt/OpenSSLRSAPrivateKey;->ensureReadParams()V
const-string v1, "modulus="
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p0}, Lorg/conscrypt/OpenSSLRSAPrivateKey;->getModulus()Ljava/math/BigInteger;
move-result-object v1
const/16 v2, 0x10
invoke-virtual {v1, v2}, Ljava/math/BigInteger;->toString(I)Ljava/lang/String;
move-result-object v1
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget-object v1, p0, Lorg/conscrypt/OpenSSLRSAPrivateCrtKey;->publicExponent:Ljava/math/BigInteger;
if-eqz v1, :cond_33
const/16 v1, 0x2c
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
const-string v1, "publicExponent="
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget-object v1, p0, Lorg/conscrypt/OpenSSLRSAPrivateCrtKey;->publicExponent:Ljava/math/BigInteger;
invoke-virtual {v1, v2}, Ljava/math/BigInteger;->toString(I)Ljava/lang/String;
move-result-object v1
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
:cond_33
const/16 v1, 0x7d
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
return-object v0
.end method