public class org.bouncycastle.jce.provider.JDKGOST3410Signer extends java.security.SignatureSpi implements org.bouncycastle.asn1.pkcs.PKCSObjectIdentifiers, org.bouncycastle.asn1.x509.X509ObjectIdentifiers
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.bouncycastle.jce.provider.JDKGOST3410Signer
super_class: java.security.SignatureSpi
{
private org.bouncycastle.crypto.Digest digest;
descriptor: Lorg/bouncycastle/crypto/Digest;
flags: (0x0002) ACC_PRIVATE
private org.bouncycastle.crypto.DSA signer;
descriptor: Lorg/bouncycastle/crypto/DSA;
flags: (0x0002) ACC_PRIVATE
private java.security.SecureRandom random;
descriptor: Ljava/security/SecureRandom;
flags: (0x0002) ACC_PRIVATE
protected void <init>(org.bouncycastle.crypto.Digest, org.bouncycastle.crypto.DSA);
descriptor: (Lorg/bouncycastle/crypto/Digest;Lorg/bouncycastle/crypto/DSA;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.security.SignatureSpi.<init>:()V
1: aload 0
aload 1
putfield org.bouncycastle.jce.provider.JDKGOST3410Signer.digest:Lorg/bouncycastle/crypto/Digest;
2: aload 0
aload 2
putfield org.bouncycastle.jce.provider.JDKGOST3410Signer.signer:Lorg/bouncycastle/crypto/DSA;
3: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/bouncycastle/jce/provider/JDKGOST3410Signer;
0 4 1 digest Lorg/bouncycastle/crypto/Digest;
0 4 2 signer Lorg/bouncycastle/crypto/DSA;
MethodParameters:
Name Flags
digest
signer
protected void engineInitVerify(java.security.PublicKey);
descriptor: (Ljava/security/PublicKey;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=4, args_size=2
start local 0 start local 1 0: aload 1
instanceof org.bouncycastle.jce.interfaces.ECPublicKey
ifeq 3
1: aload 1
invokestatic org.bouncycastle.jce.provider.asymmetric.ec.ECUtil.generatePublicKeyParameter:(Ljava/security/PublicKey;)Lorg/bouncycastle/crypto/params/AsymmetricKeyParameter;
astore 2
start local 2 2: goto 14
end local 2 3: StackMap locals:
StackMap stack:
aload 1
instanceof org.bouncycastle.jce.interfaces.GOST3410Key
ifeq 6
4: aload 1
invokestatic org.bouncycastle.jce.provider.GOST3410Util.generatePublicKeyParameter:(Ljava/security/PublicKey;)Lorg/bouncycastle/crypto/params/AsymmetricKeyParameter;
astore 2
start local 2 5: goto 14
end local 2 6: StackMap locals:
StackMap stack:
aload 1
invokeinterface java.security.PublicKey.getEncoded:()[B
astore 3
start local 3 7: aload 3
invokestatic org.bouncycastle.jce.provider.JDKKeyFactory.createPublicKeyFromDERStream:([B)Ljava/security/PublicKey;
astore 1
8: aload 1
instanceof org.bouncycastle.jce.interfaces.ECPublicKey
ifeq 11
9: aload 1
invokestatic org.bouncycastle.jce.provider.asymmetric.ec.ECUtil.generatePublicKeyParameter:(Ljava/security/PublicKey;)Lorg/bouncycastle/crypto/params/AsymmetricKeyParameter;
astore 2
start local 2 10: goto 14
end local 2 11: StackMap locals: org.bouncycastle.jce.provider.JDKGOST3410Signer java.security.PublicKey top byte[]
StackMap stack:
new java.security.InvalidKeyException
dup
ldc "can't recognise key type in DSA based signer"
invokespecial java.security.InvalidKeyException.<init>:(Ljava/lang/String;)V
athrow
end local 3 12: StackMap locals: org.bouncycastle.jce.provider.JDKGOST3410Signer java.security.PublicKey
StackMap stack: java.lang.Exception
pop
13: new java.security.InvalidKeyException
dup
ldc "can't recognise key type in DSA based signer"
invokespecial java.security.InvalidKeyException.<init>:(Ljava/lang/String;)V
athrow
start local 2 14: StackMap locals: org.bouncycastle.crypto.CipherParameters
StackMap stack:
aload 0
getfield org.bouncycastle.jce.provider.JDKGOST3410Signer.digest:Lorg/bouncycastle/crypto/Digest;
invokeinterface org.bouncycastle.crypto.Digest.reset:()V
15: aload 0
getfield org.bouncycastle.jce.provider.JDKGOST3410Signer.signer:Lorg/bouncycastle/crypto/DSA;
iconst_0
aload 2
invokeinterface org.bouncycastle.crypto.DSA.init:(ZLorg/bouncycastle/crypto/CipherParameters;)V
16: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 this Lorg/bouncycastle/jce/provider/JDKGOST3410Signer;
0 17 1 publicKey Ljava/security/PublicKey;
2 3 2 param Lorg/bouncycastle/crypto/CipherParameters;
5 6 2 param Lorg/bouncycastle/crypto/CipherParameters;
10 11 2 param Lorg/bouncycastle/crypto/CipherParameters;
14 17 2 param Lorg/bouncycastle/crypto/CipherParameters;
7 12 3 bytes [B
Exception table:
from to target type
6 12 12 Class java.lang.Exception
Exceptions:
throws java.security.InvalidKeyException
MethodParameters:
Name Flags
publicKey
protected void engineInitSign(java.security.PrivateKey, java.security.SecureRandom);
descriptor: (Ljava/security/PrivateKey;Ljava/security/SecureRandom;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 2
putfield org.bouncycastle.jce.provider.JDKGOST3410Signer.random:Ljava/security/SecureRandom;
1: aload 0
aload 1
invokevirtual org.bouncycastle.jce.provider.JDKGOST3410Signer.engineInitSign:(Ljava/security/PrivateKey;)V
2: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/bouncycastle/jce/provider/JDKGOST3410Signer;
0 3 1 privateKey Ljava/security/PrivateKey;
0 3 2 random Ljava/security/SecureRandom;
Exceptions:
throws java.security.InvalidKeyException
MethodParameters:
Name Flags
privateKey
random
protected void engineInitSign(java.security.PrivateKey);
descriptor: (Ljava/security/PrivateKey;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=6, locals=3, args_size=2
start local 0 start local 1 0: aload 1
instanceof org.bouncycastle.jce.interfaces.ECKey
ifeq 3
1: aload 1
invokestatic org.bouncycastle.jce.provider.asymmetric.ec.ECUtil.generatePrivateKeyParameter:(Ljava/security/PrivateKey;)Lorg/bouncycastle/crypto/params/AsymmetricKeyParameter;
astore 2
start local 2 2: goto 4
end local 2 3: StackMap locals:
StackMap stack:
aload 1
invokestatic org.bouncycastle.jce.provider.GOST3410Util.generatePrivateKeyParameter:(Ljava/security/PrivateKey;)Lorg/bouncycastle/crypto/params/AsymmetricKeyParameter;
astore 2
start local 2 4: StackMap locals: org.bouncycastle.crypto.CipherParameters
StackMap stack:
aload 0
getfield org.bouncycastle.jce.provider.JDKGOST3410Signer.digest:Lorg/bouncycastle/crypto/Digest;
invokeinterface org.bouncycastle.crypto.Digest.reset:()V
5: aload 0
getfield org.bouncycastle.jce.provider.JDKGOST3410Signer.random:Ljava/security/SecureRandom;
ifnull 8
6: aload 0
getfield org.bouncycastle.jce.provider.JDKGOST3410Signer.signer:Lorg/bouncycastle/crypto/DSA;
iconst_1
new org.bouncycastle.crypto.params.ParametersWithRandom
dup
aload 2
aload 0
getfield org.bouncycastle.jce.provider.JDKGOST3410Signer.random:Ljava/security/SecureRandom;
invokespecial org.bouncycastle.crypto.params.ParametersWithRandom.<init>:(Lorg/bouncycastle/crypto/CipherParameters;Ljava/security/SecureRandom;)V
invokeinterface org.bouncycastle.crypto.DSA.init:(ZLorg/bouncycastle/crypto/CipherParameters;)V
7: goto 9
8: StackMap locals:
StackMap stack:
aload 0
getfield org.bouncycastle.jce.provider.JDKGOST3410Signer.signer:Lorg/bouncycastle/crypto/DSA;
iconst_1
aload 2
invokeinterface org.bouncycastle.crypto.DSA.init:(ZLorg/bouncycastle/crypto/CipherParameters;)V
9: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lorg/bouncycastle/jce/provider/JDKGOST3410Signer;
0 10 1 privateKey Ljava/security/PrivateKey;
2 3 2 param Lorg/bouncycastle/crypto/CipherParameters;
4 10 2 param Lorg/bouncycastle/crypto/CipherParameters;
Exceptions:
throws java.security.InvalidKeyException
MethodParameters:
Name Flags
privateKey
protected void engineUpdate(byte);
descriptor: (B)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.bouncycastle.jce.provider.JDKGOST3410Signer.digest:Lorg/bouncycastle/crypto/Digest;
iload 1
invokeinterface org.bouncycastle.crypto.Digest.update:(B)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/bouncycastle/jce/provider/JDKGOST3410Signer;
0 2 1 b B
Exceptions:
throws java.security.SignatureException
MethodParameters:
Name Flags
b
protected void engineUpdate(byte[], int, int);
descriptor: ([BII)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=4, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
getfield org.bouncycastle.jce.provider.JDKGOST3410Signer.digest:Lorg/bouncycastle/crypto/Digest;
aload 1
iload 2
iload 3
invokeinterface org.bouncycastle.crypto.Digest.update:([BII)V
1: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/bouncycastle/jce/provider/JDKGOST3410Signer;
0 2 1 b [B
0 2 2 off I
0 2 3 len I
Exceptions:
throws java.security.SignatureException
MethodParameters:
Name Flags
b
off
len
protected byte[] engineSign();
descriptor: ()[B
flags: (0x0004) ACC_PROTECTED
Code:
stack=6, locals=6, args_size=1
start local 0 0: aload 0
getfield org.bouncycastle.jce.provider.JDKGOST3410Signer.digest:Lorg/bouncycastle/crypto/Digest;
invokeinterface org.bouncycastle.crypto.Digest.getDigestSize:()I
newarray 8
astore 1
start local 1 1: aload 0
getfield org.bouncycastle.jce.provider.JDKGOST3410Signer.digest:Lorg/bouncycastle/crypto/Digest;
aload 1
iconst_0
invokeinterface org.bouncycastle.crypto.Digest.doFinal:([BI)I
pop
2: bipush 64
newarray 8
astore 2
start local 2 3: aload 0
getfield org.bouncycastle.jce.provider.JDKGOST3410Signer.signer:Lorg/bouncycastle/crypto/DSA;
aload 1
invokeinterface org.bouncycastle.crypto.DSA.generateSignature:([B)[Ljava/math/BigInteger;
astore 3
start local 3 4: aload 3
iconst_0
aaload
invokevirtual java.math.BigInteger.toByteArray:()[B
astore 4
start local 4 5: aload 3
iconst_1
aaload
invokevirtual java.math.BigInteger.toByteArray:()[B
astore 5
start local 5 6: aload 5
iconst_0
baload
ifeq 9
7: aload 5
iconst_0
aload 2
bipush 32
aload 5
arraylength
isub
aload 5
arraylength
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
8: goto 10
9: StackMap locals: org.bouncycastle.jce.provider.JDKGOST3410Signer byte[] byte[] java.math.BigInteger[] byte[] byte[]
StackMap stack:
aload 5
iconst_1
aload 2
bipush 32
aload 5
arraylength
iconst_1
isub
isub
aload 5
arraylength
iconst_1
isub
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
10: StackMap locals:
StackMap stack:
aload 4
iconst_0
baload
ifeq 13
11: aload 4
iconst_0
aload 2
bipush 64
aload 4
arraylength
isub
aload 4
arraylength
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
12: goto 14
13: StackMap locals:
StackMap stack:
aload 4
iconst_1
aload 2
bipush 64
aload 4
arraylength
iconst_1
isub
isub
aload 4
arraylength
iconst_1
isub
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
14: StackMap locals:
StackMap stack:
aload 2
15: areturn
end local 5 end local 4 end local 3 end local 2 16: StackMap locals: org.bouncycastle.jce.provider.JDKGOST3410Signer byte[]
StackMap stack: java.lang.Exception
astore 2
start local 2 17: new java.security.SignatureException
dup
aload 2
invokevirtual java.lang.Exception.toString:()Ljava/lang/String;
invokespecial java.security.SignatureException.<init>:(Ljava/lang/String;)V
athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 18 0 this Lorg/bouncycastle/jce/provider/JDKGOST3410Signer;
1 18 1 hash [B
3 16 2 sigBytes [B
4 16 3 sig [Ljava/math/BigInteger;
5 16 4 r [B
6 16 5 s [B
17 18 2 e Ljava/lang/Exception;
Exception table:
from to target type
2 15 16 Class java.lang.Exception
Exceptions:
throws java.security.SignatureException
protected boolean engineVerify(byte[]);
descriptor: ([B)Z
flags: (0x0004) ACC_PROTECTED
Code:
stack=6, locals=6, args_size=2
start local 0 start local 1 0: aload 0
getfield org.bouncycastle.jce.provider.JDKGOST3410Signer.digest:Lorg/bouncycastle/crypto/Digest;
invokeinterface org.bouncycastle.crypto.Digest.getDigestSize:()I
newarray 8
astore 2
start local 2 1: aload 0
getfield org.bouncycastle.jce.provider.JDKGOST3410Signer.digest:Lorg/bouncycastle/crypto/Digest;
aload 2
iconst_0
invokeinterface org.bouncycastle.crypto.Digest.doFinal:([BI)I
pop
2: bipush 32
newarray 8
astore 4
start local 4 3: bipush 32
newarray 8
astore 5
start local 5 4: aload 1
iconst_0
aload 5
iconst_0
bipush 32
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
5: aload 1
bipush 32
aload 4
iconst_0
bipush 32
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
6: iconst_2
anewarray java.math.BigInteger
astore 3
start local 3 7: aload 3
iconst_0
new java.math.BigInteger
dup
iconst_1
aload 4
invokespecial java.math.BigInteger.<init>:(I[B)V
aastore
8: aload 3
iconst_1
new java.math.BigInteger
dup
iconst_1
aload 5
invokespecial java.math.BigInteger.<init>:(I[B)V
aastore
end local 5 end local 4 9: goto 12
end local 3 10: StackMap locals: org.bouncycastle.jce.provider.JDKGOST3410Signer byte[] byte[]
StackMap stack: java.lang.Exception
pop
11: new java.security.SignatureException
dup
ldc "error decoding signature bytes."
invokespecial java.security.SignatureException.<init>:(Ljava/lang/String;)V
athrow
start local 3 12: StackMap locals: java.math.BigInteger[]
StackMap stack:
aload 0
getfield org.bouncycastle.jce.provider.JDKGOST3410Signer.signer:Lorg/bouncycastle/crypto/DSA;
aload 2
aload 3
iconst_0
aaload
aload 3
iconst_1
aaload
invokeinterface org.bouncycastle.crypto.DSA.verifySignature:([BLjava/math/BigInteger;Ljava/math/BigInteger;)Z
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lorg/bouncycastle/jce/provider/JDKGOST3410Signer;
0 13 1 sigBytes [B
1 13 2 hash [B
7 10 3 sig [Ljava/math/BigInteger;
12 13 3 sig [Ljava/math/BigInteger;
3 9 4 r [B
4 9 5 s [B
Exception table:
from to target type
2 9 10 Class java.lang.Exception
Exceptions:
throws java.security.SignatureException
MethodParameters:
Name Flags
sigBytes
protected void engineSetParameter(java.security.spec.AlgorithmParameterSpec);
descriptor: (Ljava/security/spec/AlgorithmParameterSpec;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: new java.lang.UnsupportedOperationException
dup
ldc "engineSetParameter unsupported"
invokespecial java.lang.UnsupportedOperationException.<init>:(Ljava/lang/String;)V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bouncycastle/jce/provider/JDKGOST3410Signer;
0 1 1 params Ljava/security/spec/AlgorithmParameterSpec;
MethodParameters:
Name Flags
params
protected void engineSetParameter(java.lang.String, java.lang.Object);
descriptor: (Ljava/lang/String;Ljava/lang/Object;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: new java.lang.UnsupportedOperationException
dup
ldc "engineSetParameter unsupported"
invokespecial java.lang.UnsupportedOperationException.<init>:(Ljava/lang/String;)V
athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bouncycastle/jce/provider/JDKGOST3410Signer;
0 1 1 param Ljava/lang/String;
0 1 2 value Ljava/lang/Object;
MethodParameters:
Name Flags
param
value
protected java.lang.Object engineGetParameter(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/Object;
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: new java.lang.UnsupportedOperationException
dup
ldc "engineSetParameter unsupported"
invokespecial java.lang.UnsupportedOperationException.<init>:(Ljava/lang/String;)V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bouncycastle/jce/provider/JDKGOST3410Signer;
0 1 1 param Ljava/lang/String;
MethodParameters:
Name Flags
param
}
SourceFile: "JDKGOST3410Signer.java"
NestMembers:
org.bouncycastle.jce.provider.JDKGOST3410Signer$ecgost3410 org.bouncycastle.jce.provider.JDKGOST3410Signer$gost3410
InnerClasses:
public ecgost3410 = org.bouncycastle.jce.provider.JDKGOST3410Signer$ecgost3410 of org.bouncycastle.jce.provider.JDKGOST3410Signer
public gost3410 = org.bouncycastle.jce.provider.JDKGOST3410Signer$gost3410 of org.bouncycastle.jce.provider.JDKGOST3410Signer