public class org.bouncycastle.crypto.signers.ECGOST3410Signer implements org.bouncycastle.crypto.DSA
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.bouncycastle.crypto.signers.ECGOST3410Signer
super_class: java.lang.Object
{
org.bouncycastle.crypto.params.ECKeyParameters key;
descriptor: Lorg/bouncycastle/crypto/params/ECKeyParameters;
flags: (0x0000)
java.security.SecureRandom random;
descriptor: Ljava/security/SecureRandom;
flags: (0x0000)
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bouncycastle/crypto/signers/ECGOST3410Signer;
public void init(boolean, org.bouncycastle.crypto.CipherParameters);
descriptor: (ZLorg/bouncycastle/crypto/CipherParameters;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 2 0: iload 1
ifeq 9
1: aload 2
instanceof org.bouncycastle.crypto.params.ParametersWithRandom
ifeq 6
2: aload 2
checkcast org.bouncycastle.crypto.params.ParametersWithRandom
astore 3
start local 3 3: aload 0
aload 3
invokevirtual org.bouncycastle.crypto.params.ParametersWithRandom.getRandom:()Ljava/security/SecureRandom;
putfield org.bouncycastle.crypto.signers.ECGOST3410Signer.random:Ljava/security/SecureRandom;
4: aload 0
aload 3
invokevirtual org.bouncycastle.crypto.params.ParametersWithRandom.getParameters:()Lorg/bouncycastle/crypto/CipherParameters;
checkcast org.bouncycastle.crypto.params.ECPrivateKeyParameters
putfield org.bouncycastle.crypto.signers.ECGOST3410Signer.key:Lorg/bouncycastle/crypto/params/ECKeyParameters;
end local 3 5: goto 10
6: StackMap locals:
StackMap stack:
aload 0
new java.security.SecureRandom
dup
invokespecial java.security.SecureRandom.<init>:()V
putfield org.bouncycastle.crypto.signers.ECGOST3410Signer.random:Ljava/security/SecureRandom;
7: aload 0
aload 2
checkcast org.bouncycastle.crypto.params.ECPrivateKeyParameters
putfield org.bouncycastle.crypto.signers.ECGOST3410Signer.key:Lorg/bouncycastle/crypto/params/ECKeyParameters;
8: goto 10
9: StackMap locals:
StackMap stack:
aload 0
aload 2
checkcast org.bouncycastle.crypto.params.ECPublicKeyParameters
putfield org.bouncycastle.crypto.signers.ECGOST3410Signer.key:Lorg/bouncycastle/crypto/params/ECKeyParameters;
10: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lorg/bouncycastle/crypto/signers/ECGOST3410Signer;
0 11 1 forSigning Z
0 11 2 param Lorg/bouncycastle/crypto/CipherParameters;
3 5 3 rParam Lorg/bouncycastle/crypto/params/ParametersWithRandom;
MethodParameters:
Name Flags
forSigning
param
public java.math.BigInteger[] generateSignature(byte[]);
descriptor: ([B)[Ljava/math/BigInteger;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=10, args_size=2
start local 0 start local 1 0: aload 1
arraylength
newarray 8
astore 2
start local 2 1: iconst_0
istore 3
start local 3 2: goto 5
3: StackMap locals: byte[] int
StackMap stack:
aload 2
iload 3
aload 1
aload 2
arraylength
iconst_1
isub
iload 3
isub
baload
bastore
4: iinc 3 1
StackMap locals:
StackMap stack:
5: iload 3
aload 2
arraylength
if_icmpne 3
end local 3 6: new java.math.BigInteger
dup
iconst_1
aload 2
invokespecial java.math.BigInteger.<init>:(I[B)V
astore 3
start local 3 7: aload 0
getfield org.bouncycastle.crypto.signers.ECGOST3410Signer.key:Lorg/bouncycastle/crypto/params/ECKeyParameters;
invokevirtual org.bouncycastle.crypto.params.ECKeyParameters.getParameters:()Lorg/bouncycastle/crypto/params/ECDomainParameters;
invokevirtual org.bouncycastle.crypto.params.ECDomainParameters.getN:()Ljava/math/BigInteger;
astore 4
start local 4 8: aconst_null
astore 5
start local 5 9: aconst_null
astore 6
start local 6 10: StackMap locals: org.bouncycastle.crypto.signers.ECGOST3410Signer byte[] byte[] java.math.BigInteger java.math.BigInteger java.math.BigInteger java.math.BigInteger
StackMap stack:
aconst_null
astore 7
start local 7 11: StackMap locals: java.math.BigInteger
StackMap stack:
new java.math.BigInteger
dup
aload 4
invokevirtual java.math.BigInteger.bitLength:()I
aload 0
getfield org.bouncycastle.crypto.signers.ECGOST3410Signer.random:Ljava/security/SecureRandom;
invokespecial java.math.BigInteger.<init>:(ILjava/util/Random;)V
astore 7
12: aload 7
getstatic org.bouncycastle.math.ec.ECConstants.ZERO:Ljava/math/BigInteger;
invokevirtual java.math.BigInteger.equals:(Ljava/lang/Object;)Z
ifne 11
13: aload 0
getfield org.bouncycastle.crypto.signers.ECGOST3410Signer.key:Lorg/bouncycastle/crypto/params/ECKeyParameters;
invokevirtual org.bouncycastle.crypto.params.ECKeyParameters.getParameters:()Lorg/bouncycastle/crypto/params/ECDomainParameters;
invokevirtual org.bouncycastle.crypto.params.ECDomainParameters.getG:()Lorg/bouncycastle/math/ec/ECPoint;
aload 7
invokevirtual org.bouncycastle.math.ec.ECPoint.multiply:(Ljava/math/BigInteger;)Lorg/bouncycastle/math/ec/ECPoint;
astore 8
start local 8 14: aload 8
invokevirtual org.bouncycastle.math.ec.ECPoint.getX:()Lorg/bouncycastle/math/ec/ECFieldElement;
invokevirtual org.bouncycastle.math.ec.ECFieldElement.toBigInteger:()Ljava/math/BigInteger;
astore 9
start local 9 15: aload 9
aload 4
invokevirtual java.math.BigInteger.mod:(Ljava/math/BigInteger;)Ljava/math/BigInteger;
astore 5
end local 9 end local 8 16: aload 5
getstatic org.bouncycastle.math.ec.ECConstants.ZERO:Ljava/math/BigInteger;
invokevirtual java.math.BigInteger.equals:(Ljava/lang/Object;)Z
ifne 11
17: aload 0
getfield org.bouncycastle.crypto.signers.ECGOST3410Signer.key:Lorg/bouncycastle/crypto/params/ECKeyParameters;
checkcast org.bouncycastle.crypto.params.ECPrivateKeyParameters
invokevirtual org.bouncycastle.crypto.params.ECPrivateKeyParameters.getD:()Ljava/math/BigInteger;
astore 8
start local 8 18: aload 7
aload 3
invokevirtual java.math.BigInteger.multiply:(Ljava/math/BigInteger;)Ljava/math/BigInteger;
aload 8
aload 5
invokevirtual java.math.BigInteger.multiply:(Ljava/math/BigInteger;)Ljava/math/BigInteger;
invokevirtual java.math.BigInteger.add:(Ljava/math/BigInteger;)Ljava/math/BigInteger;
aload 4
invokevirtual java.math.BigInteger.mod:(Ljava/math/BigInteger;)Ljava/math/BigInteger;
astore 6
end local 8 end local 7 19: aload 6
getstatic org.bouncycastle.math.ec.ECConstants.ZERO:Ljava/math/BigInteger;
invokevirtual java.math.BigInteger.equals:(Ljava/lang/Object;)Z
ifne 10
20: iconst_2
anewarray java.math.BigInteger
astore 7
start local 7 21: aload 7
iconst_0
aload 5
aastore
22: aload 7
iconst_1
aload 6
aastore
23: aload 7
areturn
end local 7 end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 24 0 this Lorg/bouncycastle/crypto/signers/ECGOST3410Signer;
0 24 1 message [B
1 24 2 mRev [B
2 6 3 i I
7 24 3 e Ljava/math/BigInteger;
8 24 4 n Ljava/math/BigInteger;
9 24 5 r Ljava/math/BigInteger;
10 24 6 s Ljava/math/BigInteger;
11 19 7 k Ljava/math/BigInteger;
14 16 8 p Lorg/bouncycastle/math/ec/ECPoint;
15 16 9 x Ljava/math/BigInteger;
18 19 8 d Ljava/math/BigInteger;
21 24 7 res [Ljava/math/BigInteger;
MethodParameters:
Name Flags
message
public boolean verifySignature(byte[], java.math.BigInteger, java.math.BigInteger);
descriptor: ([BLjava/math/BigInteger;Ljava/math/BigInteger;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=14, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 1
arraylength
newarray 8
astore 4
start local 4 1: iconst_0
istore 5
start local 5 2: goto 5
3: StackMap locals: byte[] int
StackMap stack:
aload 4
iload 5
aload 1
aload 4
arraylength
iconst_1
isub
iload 5
isub
baload
bastore
4: iinc 5 1
StackMap locals:
StackMap stack:
5: iload 5
aload 4
arraylength
if_icmpne 3
end local 5 6: new java.math.BigInteger
dup
iconst_1
aload 4
invokespecial java.math.BigInteger.<init>:(I[B)V
astore 5
start local 5 7: aload 0
getfield org.bouncycastle.crypto.signers.ECGOST3410Signer.key:Lorg/bouncycastle/crypto/params/ECKeyParameters;
invokevirtual org.bouncycastle.crypto.params.ECKeyParameters.getParameters:()Lorg/bouncycastle/crypto/params/ECDomainParameters;
invokevirtual org.bouncycastle.crypto.params.ECDomainParameters.getN:()Ljava/math/BigInteger;
astore 6
start local 6 8: aload 2
getstatic org.bouncycastle.math.ec.ECConstants.ONE:Ljava/math/BigInteger;
invokevirtual java.math.BigInteger.compareTo:(Ljava/math/BigInteger;)I
iflt 9
aload 2
aload 6
invokevirtual java.math.BigInteger.compareTo:(Ljava/math/BigInteger;)I
iflt 10
9: StackMap locals: org.bouncycastle.crypto.signers.ECGOST3410Signer byte[] java.math.BigInteger java.math.BigInteger byte[] java.math.BigInteger java.math.BigInteger
StackMap stack:
iconst_0
ireturn
10: StackMap locals:
StackMap stack:
aload 3
getstatic org.bouncycastle.math.ec.ECConstants.ONE:Ljava/math/BigInteger;
invokevirtual java.math.BigInteger.compareTo:(Ljava/math/BigInteger;)I
iflt 11
aload 3
aload 6
invokevirtual java.math.BigInteger.compareTo:(Ljava/math/BigInteger;)I
iflt 12
11: StackMap locals:
StackMap stack:
iconst_0
ireturn
12: StackMap locals:
StackMap stack:
aload 5
aload 6
invokevirtual java.math.BigInteger.modInverse:(Ljava/math/BigInteger;)Ljava/math/BigInteger;
astore 7
start local 7 13: aload 3
aload 7
invokevirtual java.math.BigInteger.multiply:(Ljava/math/BigInteger;)Ljava/math/BigInteger;
aload 6
invokevirtual java.math.BigInteger.mod:(Ljava/math/BigInteger;)Ljava/math/BigInteger;
astore 8
start local 8 14: aload 6
aload 2
invokevirtual java.math.BigInteger.subtract:(Ljava/math/BigInteger;)Ljava/math/BigInteger;
aload 7
invokevirtual java.math.BigInteger.multiply:(Ljava/math/BigInteger;)Ljava/math/BigInteger;
aload 6
invokevirtual java.math.BigInteger.mod:(Ljava/math/BigInteger;)Ljava/math/BigInteger;
astore 9
start local 9 15: aload 0
getfield org.bouncycastle.crypto.signers.ECGOST3410Signer.key:Lorg/bouncycastle/crypto/params/ECKeyParameters;
invokevirtual org.bouncycastle.crypto.params.ECKeyParameters.getParameters:()Lorg/bouncycastle/crypto/params/ECDomainParameters;
invokevirtual org.bouncycastle.crypto.params.ECDomainParameters.getG:()Lorg/bouncycastle/math/ec/ECPoint;
astore 10
start local 10 16: aload 0
getfield org.bouncycastle.crypto.signers.ECGOST3410Signer.key:Lorg/bouncycastle/crypto/params/ECKeyParameters;
checkcast org.bouncycastle.crypto.params.ECPublicKeyParameters
invokevirtual org.bouncycastle.crypto.params.ECPublicKeyParameters.getQ:()Lorg/bouncycastle/math/ec/ECPoint;
astore 11
start local 11 17: aload 10
aload 8
aload 11
aload 9
invokestatic org.bouncycastle.math.ec.ECAlgorithms.sumOfTwoMultiplies:(Lorg/bouncycastle/math/ec/ECPoint;Ljava/math/BigInteger;Lorg/bouncycastle/math/ec/ECPoint;Ljava/math/BigInteger;)Lorg/bouncycastle/math/ec/ECPoint;
astore 12
start local 12 18: aload 12
invokevirtual org.bouncycastle.math.ec.ECPoint.getX:()Lorg/bouncycastle/math/ec/ECFieldElement;
invokevirtual org.bouncycastle.math.ec.ECFieldElement.toBigInteger:()Ljava/math/BigInteger;
aload 6
invokevirtual java.math.BigInteger.mod:(Ljava/math/BigInteger;)Ljava/math/BigInteger;
astore 13
start local 13 19: aload 13
aload 2
invokevirtual java.math.BigInteger.equals:(Ljava/lang/Object;)Z
ireturn
end local 13 end local 12 end local 11 end local 10 end local 9 end local 8 end local 7 end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 20 0 this Lorg/bouncycastle/crypto/signers/ECGOST3410Signer;
0 20 1 message [B
0 20 2 r Ljava/math/BigInteger;
0 20 3 s Ljava/math/BigInteger;
1 20 4 mRev [B
2 6 5 i I
7 20 5 e Ljava/math/BigInteger;
8 20 6 n Ljava/math/BigInteger;
13 20 7 v Ljava/math/BigInteger;
14 20 8 z1 Ljava/math/BigInteger;
15 20 9 z2 Ljava/math/BigInteger;
16 20 10 G Lorg/bouncycastle/math/ec/ECPoint;
17 20 11 Q Lorg/bouncycastle/math/ec/ECPoint;
18 20 12 point Lorg/bouncycastle/math/ec/ECPoint;
19 20 13 R Ljava/math/BigInteger;
MethodParameters:
Name Flags
message
r
s
}
SourceFile: "ECGOST3410Signer.java"