public class org.bouncycastle.jce.provider.JDKDSASigner 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.JDKDSASigner
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.JDKDSASigner.digest:Lorg/bouncycastle/crypto/Digest;
2: aload 0
aload 2
putfield org.bouncycastle.jce.provider.JDKDSASigner.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/JDKDSASigner;
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.GOST3410Key
ifeq 3
1: aload 1
invokestatic org.bouncycastle.jce.provider.GOST3410Util.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 java.security.interfaces.DSAKey
ifeq 6
4: aload 1
invokestatic org.bouncycastle.jce.provider.DSAUtil.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 java.security.interfaces.DSAKey
ifeq 11
9: aload 1
invokestatic org.bouncycastle.jce.provider.DSAUtil.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.JDKDSASigner 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.JDKDSASigner 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.JDKDSASigner.digest:Lorg/bouncycastle/crypto/Digest;
invokeinterface org.bouncycastle.crypto.Digest.reset:()V
15: aload 0
getfield org.bouncycastle.jce.provider.JDKDSASigner.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/JDKDSASigner;
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.JDKDSASigner.random:Ljava/security/SecureRandom;
1: aload 0
aload 1
invokevirtual org.bouncycastle.jce.provider.JDKDSASigner.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/JDKDSASigner;
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=4, locals=3, args_size=2
start local 0 start local 1 0: aload 1
instanceof org.bouncycastle.jce.interfaces.GOST3410Key
ifeq 3
1: aload 1
invokestatic org.bouncycastle.jce.provider.GOST3410Util.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.DSAUtil.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.JDKDSASigner.random:Ljava/security/SecureRandom;
ifnull 6
5: new org.bouncycastle.crypto.params.ParametersWithRandom
dup
aload 2
aload 0
getfield org.bouncycastle.jce.provider.JDKDSASigner.random:Ljava/security/SecureRandom;
invokespecial org.bouncycastle.crypto.params.ParametersWithRandom.<init>:(Lorg/bouncycastle/crypto/CipherParameters;Ljava/security/SecureRandom;)V
astore 2
6: StackMap locals:
StackMap stack:
aload 0
getfield org.bouncycastle.jce.provider.JDKDSASigner.digest:Lorg/bouncycastle/crypto/Digest;
invokeinterface org.bouncycastle.crypto.Digest.reset:()V
7: aload 0
getfield org.bouncycastle.jce.provider.JDKDSASigner.signer:Lorg/bouncycastle/crypto/DSA;
iconst_1
aload 2
invokeinterface org.bouncycastle.crypto.DSA.init:(ZLorg/bouncycastle/crypto/CipherParameters;)V
8: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lorg/bouncycastle/jce/provider/JDKDSASigner;
0 9 1 privateKey Ljava/security/PrivateKey;
2 3 2 param Lorg/bouncycastle/crypto/CipherParameters;
4 9 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.JDKDSASigner.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/JDKDSASigner;
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.JDKDSASigner.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/JDKDSASigner;
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=4, locals=3, args_size=1
start local 0 0: aload 0
getfield org.bouncycastle.jce.provider.JDKDSASigner.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.JDKDSASigner.digest:Lorg/bouncycastle/crypto/Digest;
aload 1
iconst_0
invokeinterface org.bouncycastle.crypto.Digest.doFinal:([BI)I
pop
2: aload 0
getfield org.bouncycastle.jce.provider.JDKDSASigner.signer:Lorg/bouncycastle/crypto/DSA;
aload 1
invokeinterface org.bouncycastle.crypto.DSA.generateSignature:([B)[Ljava/math/BigInteger;
astore 2
start local 2 3: aload 0
aload 2
iconst_0
aaload
aload 2
iconst_1
aaload
invokevirtual org.bouncycastle.jce.provider.JDKDSASigner.derEncode:(Ljava/math/BigInteger;Ljava/math/BigInteger;)[B
4: areturn
end local 2 5: StackMap locals: org.bouncycastle.jce.provider.JDKDSASigner byte[]
StackMap stack: java.lang.Exception
astore 2
start local 2 6: 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 7 0 this Lorg/bouncycastle/jce/provider/JDKDSASigner;
1 7 1 hash [B
3 5 2 sig [Ljava/math/BigInteger;
6 7 2 e Ljava/lang/Exception;
Exception table:
from to target type
2 4 5 Class java.lang.Exception
Exceptions:
throws java.security.SignatureException
protected boolean engineVerify(byte[]);
descriptor: ([B)Z
flags: (0x0004) ACC_PROTECTED
Code:
stack=5, locals=4, args_size=2
start local 0 start local 1 0: aload 0
getfield org.bouncycastle.jce.provider.JDKDSASigner.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.JDKDSASigner.digest:Lorg/bouncycastle/crypto/Digest;
aload 2
iconst_0
invokeinterface org.bouncycastle.crypto.Digest.doFinal:([BI)I
pop
2: aload 0
aload 1
invokevirtual org.bouncycastle.jce.provider.JDKDSASigner.derDecode:([B)[Ljava/math/BigInteger;
astore 3
start local 3 3: goto 6
end local 3 4: StackMap locals: org.bouncycastle.jce.provider.JDKDSASigner byte[] byte[]
StackMap stack: java.lang.Exception
pop
5: new java.security.SignatureException
dup
ldc "error decoding signature bytes."
invokespecial java.security.SignatureException.<init>:(Ljava/lang/String;)V
athrow
start local 3 6: StackMap locals: java.math.BigInteger[]
StackMap stack:
aload 0
getfield org.bouncycastle.jce.provider.JDKDSASigner.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 7 0 this Lorg/bouncycastle/jce/provider/JDKDSASigner;
0 7 1 sigBytes [B
1 7 2 hash [B
3 4 3 sig [Ljava/math/BigInteger;
6 7 3 sig [Ljava/math/BigInteger;
Exception table:
from to target type
2 3 4 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/JDKDSASigner;
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/JDKDSASigner;
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/JDKDSASigner;
0 1 1 param Ljava/lang/String;
MethodParameters:
Name Flags
param
private byte[] derEncode(java.math.BigInteger, java.math.BigInteger);
descriptor: (Ljava/math/BigInteger;Ljava/math/BigInteger;)[B
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=4, args_size=3
start local 0 start local 1 start local 2 0: iconst_2
anewarray org.bouncycastle.asn1.DERInteger
dup
iconst_0
new org.bouncycastle.asn1.DERInteger
dup
aload 1
invokespecial org.bouncycastle.asn1.DERInteger.<init>:(Ljava/math/BigInteger;)V
aastore
dup
iconst_1
new org.bouncycastle.asn1.DERInteger
dup
aload 2
invokespecial org.bouncycastle.asn1.DERInteger.<init>:(Ljava/math/BigInteger;)V
aastore
astore 3
start local 3 1: new org.bouncycastle.asn1.DERSequence
dup
aload 3
invokespecial org.bouncycastle.asn1.DERSequence.<init>:([Lorg/bouncycastle/asn1/ASN1Encodable;)V
ldc "DER"
invokevirtual org.bouncycastle.asn1.DERSequence.getEncoded:(Ljava/lang/String;)[B
areturn
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/JDKDSASigner;
0 2 1 r Ljava/math/BigInteger;
0 2 2 s Ljava/math/BigInteger;
1 2 3 rs [Lorg/bouncycastle/asn1/DERInteger;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
r
s
private java.math.BigInteger[] derDecode(byte[]);
descriptor: ([B)[Ljava/math/BigInteger;
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: aload 1
invokestatic org.bouncycastle.asn1.ASN1Object.fromByteArray:([B)Lorg/bouncycastle/asn1/ASN1Object;
checkcast org.bouncycastle.asn1.ASN1Sequence
astore 2
start local 2 1: iconst_2
anewarray java.math.BigInteger
dup
iconst_0
2: aload 2
iconst_0
invokevirtual org.bouncycastle.asn1.ASN1Sequence.getObjectAt:(I)Lorg/bouncycastle/asn1/DEREncodable;
checkcast org.bouncycastle.asn1.DERInteger
invokevirtual org.bouncycastle.asn1.DERInteger.getValue:()Ljava/math/BigInteger;
aastore
dup
iconst_1
3: aload 2
iconst_1
invokevirtual org.bouncycastle.asn1.ASN1Sequence.getObjectAt:(I)Lorg/bouncycastle/asn1/DEREncodable;
checkcast org.bouncycastle.asn1.DERInteger
invokevirtual org.bouncycastle.asn1.DERInteger.getValue:()Ljava/math/BigInteger;
aastore
4: areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/bouncycastle/jce/provider/JDKDSASigner;
0 5 1 encoding [B
1 5 2 s Lorg/bouncycastle/asn1/ASN1Sequence;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
encoding
}
SourceFile: "JDKDSASigner.java"
NestMembers:
org.bouncycastle.jce.provider.JDKDSASigner$dsa224 org.bouncycastle.jce.provider.JDKDSASigner$dsa256 org.bouncycastle.jce.provider.JDKDSASigner$dsa384 org.bouncycastle.jce.provider.JDKDSASigner$dsa512 org.bouncycastle.jce.provider.JDKDSASigner$noneDSA org.bouncycastle.jce.provider.JDKDSASigner$stdDSA
InnerClasses:
public dsa224 = org.bouncycastle.jce.provider.JDKDSASigner$dsa224 of org.bouncycastle.jce.provider.JDKDSASigner
public dsa256 = org.bouncycastle.jce.provider.JDKDSASigner$dsa256 of org.bouncycastle.jce.provider.JDKDSASigner
public dsa384 = org.bouncycastle.jce.provider.JDKDSASigner$dsa384 of org.bouncycastle.jce.provider.JDKDSASigner
public dsa512 = org.bouncycastle.jce.provider.JDKDSASigner$dsa512 of org.bouncycastle.jce.provider.JDKDSASigner
public noneDSA = org.bouncycastle.jce.provider.JDKDSASigner$noneDSA of org.bouncycastle.jce.provider.JDKDSASigner
public stdDSA = org.bouncycastle.jce.provider.JDKDSASigner$stdDSA of org.bouncycastle.jce.provider.JDKDSASigner