class com.oracle.security.ucrypto.NativeRSASignature extends java.security.SignatureSpi
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: com.oracle.security.ucrypto.NativeRSASignature
super_class: java.security.SignatureSpi
{
private static final int PKCS1PADDING_LEN;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 11
private final com.oracle.security.ucrypto.UcryptoMech mech;
descriptor: Lcom/oracle/security/ucrypto/UcryptoMech;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final int encodedLen;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private com.oracle.security.ucrypto.NativeRSASignature$SignatureContextRef pCtxt;
descriptor: Lcom/oracle/security/ucrypto/NativeRSASignature$SignatureContextRef;
flags: (0x0002) ACC_PRIVATE
private boolean initialized;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private boolean sign;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private int sigLength;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private com.oracle.security.ucrypto.NativeKey key;
descriptor: Lcom/oracle/security/ucrypto/NativeKey;
flags: (0x0002) ACC_PRIVATE
private com.oracle.security.ucrypto.NativeRSAKeyFactory keyFactory;
descriptor: Lcom/oracle/security/ucrypto/NativeRSAKeyFactory;
flags: (0x0002) ACC_PRIVATE
void <init>(com.oracle.security.ucrypto.UcryptoMech, int);
descriptor: (Lcom/oracle/security/ucrypto/UcryptoMech;I)V
flags: (0x0000)
Code:
stack=3, 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
aconst_null
putfield com.oracle.security.ucrypto.NativeRSASignature.pCtxt:Lcom/oracle/security/ucrypto/NativeRSASignature$SignatureContextRef;
2: aload 0
iconst_0
putfield com.oracle.security.ucrypto.NativeRSASignature.initialized:Z
3: aload 0
iconst_1
putfield com.oracle.security.ucrypto.NativeRSASignature.sign:Z
4: aload 0
aload 1
putfield com.oracle.security.ucrypto.NativeRSASignature.mech:Lcom/oracle/security/ucrypto/UcryptoMech;
5: aload 0
iload 2
putfield com.oracle.security.ucrypto.NativeRSASignature.encodedLen:I
6: aload 0
new com.oracle.security.ucrypto.NativeRSAKeyFactory
dup
invokespecial com.oracle.security.ucrypto.NativeRSAKeyFactory.<init>:()V
putfield com.oracle.security.ucrypto.NativeRSASignature.keyFactory:Lcom/oracle/security/ucrypto/NativeRSAKeyFactory;
7: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lcom/oracle/security/ucrypto/NativeRSASignature;
0 8 1 mech Lcom/oracle/security/ucrypto/UcryptoMech;
0 8 2 encodedLen I
Exceptions:
throws java.security.NoSuchAlgorithmException
MethodParameters:
Name Flags
mech
encodedLen
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 "getParameter() not supported"
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 Lcom/oracle/security/ucrypto/NativeRSASignature;
0 1 1 param Ljava/lang/String;
Exceptions:
throws java.security.InvalidParameterException
MethodParameters:
Name Flags
param
protected java.security.AlgorithmParameters engineGetParameters();
descriptor: ()Ljava/security/AlgorithmParameters;
flags: (0x0004) ACC_PROTECTED
Code:
stack=1, locals=1, args_size=1
start local 0 0: aconst_null
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/oracle/security/ucrypto/NativeRSASignature;
protected synchronized void engineInitSign(java.security.PrivateKey);
descriptor: (Ljava/security/PrivateKey;)V
flags: (0x0024) ACC_PROTECTED, ACC_SYNCHRONIZED
Code:
stack=11, locals=8, args_size=2
start local 0 start local 1 0: aload 1
ifnonnull 2
1: new java.security.InvalidKeyException
dup
ldc "Key must not be null"
invokespecial java.security.InvalidKeyException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
getfield com.oracle.security.ucrypto.NativeRSASignature.key:Lcom/oracle/security/ucrypto/NativeKey;
astore 2
start local 2 3: aload 0
getfield com.oracle.security.ucrypto.NativeRSASignature.sigLength:I
istore 3
start local 3 4: aload 1
aload 0
getfield com.oracle.security.ucrypto.NativeRSASignature.key:Lcom/oracle/security/ucrypto/NativeKey;
if_acmpeq 33
5: aload 1
instanceof java.security.interfaces.RSAPrivateKey
ifne 9
6: new java.security.InvalidKeyException
dup
new java.lang.StringBuilder
dup
ldc "RSAPrivateKey required. Received: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
7: aload 1
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
8: invokespecial java.security.InvalidKeyException.<init>:(Ljava/lang/String;)V
athrow
9: StackMap locals: com.oracle.security.ucrypto.NativeKey int
StackMap stack:
aload 1
checkcast java.security.interfaces.RSAPrivateKey
astore 4
start local 4 10: aload 4
invokeinterface java.security.interfaces.RSAPrivateKey.getModulus:()Ljava/math/BigInteger;
astore 5
start local 5 11: aload 0
aload 5
invokevirtual com.oracle.security.ucrypto.NativeRSASignature.checkRSAKeyLength:(Ljava/math/BigInteger;)I
istore 3
12: aload 4
invokeinterface java.security.interfaces.RSAPrivateKey.getPrivateExponent:()Ljava/math/BigInteger;
astore 6
start local 6 13: aload 4
instanceof java.security.interfaces.RSAPrivateCrtKey
ifeq 27
14: aload 4
checkcast java.security.interfaces.RSAPrivateCrtKey
astore 7
start local 7 15: aload 0
getfield com.oracle.security.ucrypto.NativeRSASignature.keyFactory:Lcom/oracle/security/ucrypto/NativeRSAKeyFactory;
16: new java.security.spec.RSAPrivateCrtKeySpec
dup
aload 5
17: aload 7
invokeinterface java.security.interfaces.RSAPrivateCrtKey.getPublicExponent:()Ljava/math/BigInteger;
18: aload 6
19: aload 7
invokeinterface java.security.interfaces.RSAPrivateCrtKey.getPrimeP:()Ljava/math/BigInteger;
20: aload 7
invokeinterface java.security.interfaces.RSAPrivateCrtKey.getPrimeQ:()Ljava/math/BigInteger;
21: aload 7
invokeinterface java.security.interfaces.RSAPrivateCrtKey.getPrimeExponentP:()Ljava/math/BigInteger;
22: aload 7
invokeinterface java.security.interfaces.RSAPrivateCrtKey.getPrimeExponentQ:()Ljava/math/BigInteger;
23: aload 7
invokeinterface java.security.interfaces.RSAPrivateCrtKey.getCrtCoefficient:()Ljava/math/BigInteger;
24: invokespecial java.security.spec.RSAPrivateCrtKeySpec.<init>:(Ljava/math/BigInteger;Ljava/math/BigInteger;Ljava/math/BigInteger;Ljava/math/BigInteger;Ljava/math/BigInteger;Ljava/math/BigInteger;Ljava/math/BigInteger;Ljava/math/BigInteger;)V
25: invokevirtual com.oracle.security.ucrypto.NativeRSAKeyFactory.engineGeneratePrivate:(Ljava/security/spec/KeySpec;)Ljava/security/PrivateKey;
checkcast com.oracle.security.ucrypto.NativeKey
astore 2
end local 7 26: goto 33
27: StackMap locals: java.security.interfaces.RSAPrivateKey java.math.BigInteger java.math.BigInteger
StackMap stack:
aload 0
getfield com.oracle.security.ucrypto.NativeRSASignature.keyFactory:Lcom/oracle/security/ucrypto/NativeRSAKeyFactory;
28: new java.security.spec.RSAPrivateKeySpec
dup
aload 5
aload 6
invokespecial java.security.spec.RSAPrivateKeySpec.<init>:(Ljava/math/BigInteger;Ljava/math/BigInteger;)V
29: invokevirtual com.oracle.security.ucrypto.NativeRSAKeyFactory.engineGeneratePrivate:(Ljava/security/spec/KeySpec;)Ljava/security/PrivateKey;
checkcast com.oracle.security.ucrypto.NativeKey
astore 2
30: goto 33
StackMap locals:
StackMap stack: java.security.spec.InvalidKeySpecException
31: astore 7
start local 7 32: new java.security.InvalidKeyException
dup
aload 7
invokespecial java.security.InvalidKeyException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 7 end local 6 end local 5 end local 4 33: StackMap locals:
StackMap stack:
aload 0
iconst_1
aload 2
iload 3
invokevirtual com.oracle.security.ucrypto.NativeRSASignature.init:(ZLcom/oracle/security/ucrypto/NativeKey;I)V
34: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 35 0 this Lcom/oracle/security/ucrypto/NativeRSASignature;
0 35 1 privateKey Ljava/security/PrivateKey;
3 35 2 newKey Lcom/oracle/security/ucrypto/NativeKey;
4 35 3 newSigLength I
10 33 4 rsaPrivKey Ljava/security/interfaces/RSAPrivateKey;
11 33 5 mod Ljava/math/BigInteger;
13 33 6 pe Ljava/math/BigInteger;
15 26 7 rsaPrivCrtKey Ljava/security/interfaces/RSAPrivateCrtKey;
32 33 7 ikse Ljava/security/spec/InvalidKeySpecException;
Exception table:
from to target type
13 30 31 Class java.security.spec.InvalidKeySpecException
Exceptions:
throws java.security.InvalidKeyException
MethodParameters:
Name Flags
privateKey
protected synchronized void engineInitVerify(java.security.PublicKey);
descriptor: (Ljava/security/PublicKey;)V
flags: (0x0024) ACC_PROTECTED, ACC_SYNCHRONIZED
Code:
stack=5, locals=6, args_size=2
start local 0 start local 1 0: aload 1
ifnonnull 2
1: new java.security.InvalidKeyException
dup
ldc "Key must not be null"
invokespecial java.security.InvalidKeyException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
getfield com.oracle.security.ucrypto.NativeRSASignature.key:Lcom/oracle/security/ucrypto/NativeKey;
astore 2
start local 2 3: aload 0
getfield com.oracle.security.ucrypto.NativeRSASignature.sigLength:I
istore 3
start local 3 4: aload 1
aload 0
getfield com.oracle.security.ucrypto.NativeRSASignature.key:Lcom/oracle/security/ucrypto/NativeKey;
if_acmpeq 17
5: aload 1
instanceof java.security.interfaces.RSAPublicKey
ifeq 14
6: aload 1
checkcast java.security.interfaces.RSAPublicKey
invokeinterface java.security.interfaces.RSAPublicKey.getModulus:()Ljava/math/BigInteger;
astore 4
start local 4 7: aload 0
aload 4
invokevirtual com.oracle.security.ucrypto.NativeRSASignature.checkRSAKeyLength:(Ljava/math/BigInteger;)I
istore 3
8: aload 0
getfield com.oracle.security.ucrypto.NativeRSASignature.keyFactory:Lcom/oracle/security/ucrypto/NativeRSAKeyFactory;
9: new java.security.spec.RSAPublicKeySpec
dup
aload 4
aload 1
checkcast java.security.interfaces.RSAPublicKey
invokeinterface java.security.interfaces.RSAPublicKey.getPublicExponent:()Ljava/math/BigInteger;
invokespecial java.security.spec.RSAPublicKeySpec.<init>:(Ljava/math/BigInteger;Ljava/math/BigInteger;)V
10: invokevirtual com.oracle.security.ucrypto.NativeRSAKeyFactory.engineGeneratePublic:(Ljava/security/spec/KeySpec;)Ljava/security/PublicKey;
checkcast com.oracle.security.ucrypto.NativeKey
astore 2
11: goto 17
StackMap locals: com.oracle.security.ucrypto.NativeRSASignature java.security.PublicKey com.oracle.security.ucrypto.NativeKey int java.math.BigInteger
StackMap stack: java.security.spec.InvalidKeySpecException
12: astore 5
start local 5 13: new java.security.InvalidKeyException
dup
aload 5
invokespecial java.security.InvalidKeyException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 5 end local 4 14: StackMap locals:
StackMap stack:
new java.security.InvalidKeyException
dup
new java.lang.StringBuilder
dup
ldc "RSAPublicKey required. Received: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
15: aload 1
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
16: invokespecial java.security.InvalidKeyException.<init>:(Ljava/lang/String;)V
athrow
17: StackMap locals:
StackMap stack:
aload 0
iconst_0
aload 2
iload 3
invokevirtual com.oracle.security.ucrypto.NativeRSASignature.init:(ZLcom/oracle/security/ucrypto/NativeKey;I)V
18: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 19 0 this Lcom/oracle/security/ucrypto/NativeRSASignature;
0 19 1 publicKey Ljava/security/PublicKey;
3 19 2 newKey Lcom/oracle/security/ucrypto/NativeKey;
4 19 3 newSigLength I
7 14 4 mod Ljava/math/BigInteger;
13 14 5 ikse Ljava/security/spec/InvalidKeySpecException;
Exception table:
from to target type
8 11 12 Class java.security.spec.InvalidKeySpecException
Exceptions:
throws java.security.InvalidKeyException
MethodParameters:
Name Flags
publicKey
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 "setParameter() not supported"
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 Lcom/oracle/security/ucrypto/NativeRSASignature;
0 1 1 param Ljava/lang/String;
0 1 2 value Ljava/lang/Object;
Exceptions:
throws java.security.InvalidParameterException
MethodParameters:
Name Flags
param
value
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: aload 1
ifnull 2
1: new java.security.InvalidAlgorithmParameterException
dup
ldc "No parameter accepted"
invokespecial java.security.InvalidAlgorithmParameterException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/oracle/security/ucrypto/NativeRSASignature;
0 3 1 params Ljava/security/spec/AlgorithmParameterSpec;
Exceptions:
throws java.security.InvalidAlgorithmParameterException
MethodParameters:
Name Flags
params
protected synchronized byte[] engineSign();
descriptor: ()[B
flags: (0x0024) ACC_PROTECTED, ACC_SYNCHRONIZED
Code:
stack=5, locals=5, args_size=1
start local 0 0: aload 0
getfield com.oracle.security.ucrypto.NativeRSASignature.sigLength:I
newarray 8
astore 1
start local 1 1: aload 0
aload 1
iconst_0
aload 0
getfield com.oracle.security.ucrypto.NativeRSASignature.sigLength:I
invokevirtual com.oracle.security.ucrypto.NativeRSASignature.doFinal:([BII)I
istore 2
start local 2 2: iload 2
ifge 4
3: new java.security.SignatureException
dup
new com.oracle.security.ucrypto.UcryptoException
dup
iload 2
ineg
invokespecial com.oracle.security.ucrypto.UcryptoException.<init>:(I)V
invokespecial java.security.SignatureException.<init>:(Ljava/lang/Throwable;)V
athrow
4: StackMap locals: byte[] int
StackMap stack:
aload 1
astore 4
5: aload 0
iconst_0
invokevirtual com.oracle.security.ucrypto.NativeRSASignature.reset:(Z)V
6: aload 4
areturn
end local 2 end local 1 7: StackMap locals: com.oracle.security.ucrypto.NativeRSASignature
StackMap stack: java.lang.Throwable
astore 3
8: aload 0
iconst_0
invokevirtual com.oracle.security.ucrypto.NativeRSASignature.reset:(Z)V
9: aload 3
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lcom/oracle/security/ucrypto/NativeRSASignature;
1 7 1 sig [B
2 7 2 rv I
Exception table:
from to target type
0 5 7 any
Exceptions:
throws java.security.SignatureException
protected synchronized int engineSign(byte[], int, int);
descriptor: ([BII)I
flags: (0x0024) ACC_PROTECTED, ACC_SYNCHRONIZED
Code:
stack=5, locals=8, args_size=4
start local 0 start local 1 start local 2 start local 3 0: iconst_1
istore 4
start local 4 1: aload 1
ifnull 4
iload 2
iflt 4
2: aload 1
arraylength
iload 2
isub
aload 0
getfield com.oracle.security.ucrypto.NativeRSASignature.sigLength:I
if_icmplt 4
3: iload 3
aload 0
getfield com.oracle.security.ucrypto.NativeRSASignature.sigLength:I
if_icmpge 7
4: StackMap locals: int
StackMap stack:
new java.security.SignatureException
dup
new java.lang.StringBuilder
dup
ldc "Invalid output buffer. offset: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
5: iload 2
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc ". len: "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
iload 3
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc ". sigLength: "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield com.oracle.security.ucrypto.NativeRSASignature.sigLength:I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
6: invokespecial java.security.SignatureException.<init>:(Ljava/lang/String;)V
athrow
7: StackMap locals:
StackMap stack:
aload 0
aload 1
iload 2
aload 0
getfield com.oracle.security.ucrypto.NativeRSASignature.sigLength:I
invokevirtual com.oracle.security.ucrypto.NativeRSASignature.doFinal:([BII)I
istore 5
start local 5 8: iconst_0
istore 4
9: iload 5
ifge 11
10: new java.security.SignatureException
dup
new com.oracle.security.ucrypto.UcryptoException
dup
iload 5
ineg
invokespecial com.oracle.security.ucrypto.UcryptoException.<init>:(I)V
invokespecial java.security.SignatureException.<init>:(Ljava/lang/Throwable;)V
athrow
11: StackMap locals: int
StackMap stack:
aload 0
getfield com.oracle.security.ucrypto.NativeRSASignature.sigLength:I
istore 7
12: aload 0
iload 4
invokevirtual com.oracle.security.ucrypto.NativeRSASignature.reset:(Z)V
13: iload 7
ireturn
end local 5 14: StackMap locals: com.oracle.security.ucrypto.NativeRSASignature byte[] int int int
StackMap stack: java.lang.Throwable
astore 6
15: aload 0
iload 4
invokevirtual com.oracle.security.ucrypto.NativeRSASignature.reset:(Z)V
16: aload 6
athrow
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 this Lcom/oracle/security/ucrypto/NativeRSASignature;
0 17 1 outbuf [B
0 17 2 offset I
0 17 3 len I
1 17 4 doCancel Z
8 14 5 rv I
Exception table:
from to target type
1 12 14 any
Exceptions:
throws java.security.SignatureException
MethodParameters:
Name Flags
outbuf
offset
len
protected synchronized void engineUpdate(byte);
descriptor: (B)V
flags: (0x0024) ACC_PROTECTED, ACC_SYNCHRONIZED
Code:
stack=5, locals=4, args_size=2
start local 0 start local 1 0: iconst_1
newarray 8
dup
iconst_0
iload 1
bastore
astore 2
start local 2 1: aload 0
aload 2
iconst_0
iconst_1
invokevirtual com.oracle.security.ucrypto.NativeRSASignature.update:([BII)I
istore 3
start local 3 2: iload 3
ifge 4
3: new java.security.SignatureException
dup
new com.oracle.security.ucrypto.UcryptoException
dup
iload 3
ineg
invokespecial com.oracle.security.ucrypto.UcryptoException.<init>:(I)V
invokespecial java.security.SignatureException.<init>:(Ljava/lang/Throwable;)V
athrow
4: StackMap locals: byte[] int
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lcom/oracle/security/ucrypto/NativeRSASignature;
0 5 1 b B
1 5 2 in [B
2 5 3 rv I
Exceptions:
throws java.security.SignatureException
MethodParameters:
Name Flags
b
protected synchronized void engineUpdate(byte[], int, int);
descriptor: ([BII)V
flags: (0x0024) ACC_PROTECTED, ACC_SYNCHRONIZED
Code:
stack=5, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 1
ifnull 1
iload 2
iflt 1
iload 3
ifne 2
StackMap locals:
StackMap stack:
1: return
2: StackMap locals:
StackMap stack:
aload 0
aload 1
iload 2
iload 3
invokevirtual com.oracle.security.ucrypto.NativeRSASignature.update:([BII)I
istore 4
start local 4 3: iload 4
ifge 5
4: new java.security.SignatureException
dup
new com.oracle.security.ucrypto.UcryptoException
dup
iload 4
ineg
invokespecial com.oracle.security.ucrypto.UcryptoException.<init>:(I)V
invokespecial java.security.SignatureException.<init>:(Ljava/lang/Throwable;)V
athrow
5: StackMap locals: int
StackMap stack:
return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lcom/oracle/security/ucrypto/NativeRSASignature;
0 6 1 in [B
0 6 2 inOfs I
0 6 3 inLen I
3 6 4 rv I
Exceptions:
throws java.security.SignatureException
MethodParameters:
Name Flags
in
inOfs
inLen
protected synchronized void engineUpdate(java.nio.ByteBuffer);
descriptor: (Ljava/nio/ByteBuffer;)V
flags: (0x0024) ACC_PROTECTED, ACC_SYNCHRONIZED
Code:
stack=5, locals=7, args_size=2
start local 0 start local 1 0: aload 1
ifnull 1
aload 1
invokevirtual java.nio.ByteBuffer.remaining:()I
ifne 2
StackMap locals:
StackMap stack:
1: return
2: StackMap locals:
StackMap stack:
aload 1
instanceof sun.nio.ch.DirectBuffer
ifne 5
3: aload 0
aload 1
invokespecial java.security.SignatureSpi.engineUpdate:(Ljava/nio/ByteBuffer;)V
4: return
5: StackMap locals:
StackMap stack:
aload 1
checkcast sun.nio.ch.DirectBuffer
invokeinterface sun.nio.ch.DirectBuffer.address:()J
lstore 2
start local 2 6: aload 1
invokevirtual java.nio.ByteBuffer.position:()I
istore 4
start local 4 7: aload 1
invokevirtual java.nio.ByteBuffer.remaining:()I
istore 5
start local 5 8: aload 0
lload 2
iload 4
i2l
ladd
iload 5
invokevirtual com.oracle.security.ucrypto.NativeRSASignature.update:(JI)I
istore 6
start local 6 9: iload 6
ifge 11
10: new com.oracle.security.ucrypto.UcryptoException
dup
iload 6
ineg
invokespecial com.oracle.security.ucrypto.UcryptoException.<init>:(I)V
athrow
11: StackMap locals: com.oracle.security.ucrypto.NativeRSASignature java.nio.ByteBuffer long int int int
StackMap stack:
aload 1
iload 4
iload 5
iadd
invokevirtual java.nio.ByteBuffer.position:(I)Ljava/nio/ByteBuffer;
pop
12: return
end local 6 end local 5 end local 4 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lcom/oracle/security/ucrypto/NativeRSASignature;
0 13 1 in Ljava/nio/ByteBuffer;
6 13 2 inAddr J
7 13 4 inOfs I
8 13 5 inLen I
9 13 6 rv I
MethodParameters:
Name Flags
in
protected synchronized boolean engineVerify(byte[]);
descriptor: ([B)Z
flags: (0x0024) ACC_PROTECTED, ACC_SYNCHRONIZED
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
iconst_0
aload 1
arraylength
invokevirtual com.oracle.security.ucrypto.NativeRSASignature.engineVerify:([BII)Z
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/oracle/security/ucrypto/NativeRSASignature;
0 1 1 sigBytes [B
Exceptions:
throws java.security.SignatureException
MethodParameters:
Name Flags
sigBytes
protected synchronized boolean engineVerify(byte[], int, int);
descriptor: ([BII)Z
flags: (0x0024) ACC_PROTECTED, ACC_SYNCHRONIZED
Code:
stack=5, locals=7, args_size=4
start local 0 start local 1 start local 2 start local 3 0: iconst_1
istore 4
start local 4 1: aload 1
ifnull 4
iload 2
iflt 4
2: aload 1
arraylength
iload 2
isub
aload 0
getfield com.oracle.security.ucrypto.NativeRSASignature.sigLength:I
if_icmplt 4
3: iload 3
aload 0
getfield com.oracle.security.ucrypto.NativeRSASignature.sigLength:I
if_icmpeq 7
4: StackMap locals: int
StackMap stack:
new java.security.SignatureException
dup
new java.lang.StringBuilder
dup
ldc "Invalid signature length: got "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
5: iload 3
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc " but was expecting "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield com.oracle.security.ucrypto.NativeRSASignature.sigLength:I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
6: invokespecial java.security.SignatureException.<init>:(Ljava/lang/String;)V
athrow
7: StackMap locals:
StackMap stack:
aload 0
aload 1
iload 2
iload 3
invokevirtual com.oracle.security.ucrypto.NativeRSASignature.doFinal:([BII)I
istore 5
start local 5 8: iconst_0
istore 4
9: iload 5
ifne 12
10: aload 0
iload 4
invokevirtual com.oracle.security.ucrypto.NativeRSASignature.reset:(Z)V
11: iconst_1
ireturn
12: StackMap locals: int
StackMap stack:
new java.lang.StringBuilder
dup
ldc "Signature: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield com.oracle.security.ucrypto.NativeRSASignature.mech:Lcom/oracle/security/ucrypto/UcryptoMech;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc " verification error "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
13: new com.oracle.security.ucrypto.UcryptoException
dup
iload 5
ineg
invokespecial com.oracle.security.ucrypto.UcryptoException.<init>:(I)V
invokevirtual com.oracle.security.ucrypto.UcryptoException.getMessage:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
14: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokestatic com.oracle.security.ucrypto.UcryptoProvider.debug:(Ljava/lang/String;)V
15: aload 0
iload 4
invokevirtual com.oracle.security.ucrypto.NativeRSASignature.reset:(Z)V
16: iconst_0
ireturn
end local 5 17: StackMap locals: com.oracle.security.ucrypto.NativeRSASignature byte[] int int int
StackMap stack: java.lang.Throwable
astore 6
18: aload 0
iload 4
invokevirtual com.oracle.security.ucrypto.NativeRSASignature.reset:(Z)V
19: aload 6
athrow
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 Lcom/oracle/security/ucrypto/NativeRSASignature;
0 20 1 sigBytes [B
0 20 2 sigOfs I
0 20 3 sigLen I
1 20 4 doCancel Z
8 17 5 rv I
Exception table:
from to target type
1 10 17 any
12 15 17 any
Exceptions:
throws java.security.SignatureException
MethodParameters:
Name Flags
sigBytes
sigOfs
sigLen
void reset(boolean);
descriptor: (Z)V
flags: (0x0000)
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iconst_0
putfield com.oracle.security.ucrypto.NativeRSASignature.initialized:Z
1: aload 0
getfield com.oracle.security.ucrypto.NativeRSASignature.pCtxt:Lcom/oracle/security/ucrypto/NativeRSASignature$SignatureContextRef;
ifnull 4
2: aload 0
getfield com.oracle.security.ucrypto.NativeRSASignature.pCtxt:Lcom/oracle/security/ucrypto/NativeRSASignature$SignatureContextRef;
iload 1
invokevirtual com.oracle.security.ucrypto.NativeRSASignature$SignatureContextRef.dispose:(Z)V
3: aload 0
aconst_null
putfield com.oracle.security.ucrypto.NativeRSASignature.pCtxt:Lcom/oracle/security/ucrypto/NativeRSASignature$SignatureContextRef;
4: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lcom/oracle/security/ucrypto/NativeRSASignature;
0 5 1 doCancel Z
MethodParameters:
Name Flags
doCancel
private static native long nativeInit(int, boolean, long, int);
descriptor: (IZJI)J
flags: (0x010a) ACC_PRIVATE, ACC_STATIC, ACC_NATIVE
MethodParameters:
Name Flags
mech
sign
keyValue
keyLength
private static native int nativeUpdate(long, boolean, byte[], int, int);
descriptor: (JZ[BII)I
flags: (0x010a) ACC_PRIVATE, ACC_STATIC, ACC_NATIVE
MethodParameters:
Name Flags
pContext
sign
in
inOfs
inLen
private static native int nativeUpdate(long, boolean, long, int);
descriptor: (JZJI)I
flags: (0x010a) ACC_PRIVATE, ACC_STATIC, ACC_NATIVE
MethodParameters:
Name Flags
pContext
sign
pIn
inLen
private static native int nativeFinal(long, boolean, byte[], int, int);
descriptor: (JZ[BII)I
flags: (0x010a) ACC_PRIVATE, ACC_STATIC, ACC_NATIVE
MethodParameters:
Name Flags
pContext
sign
sig
sigOfs
sigLen
private void init(boolean, com.oracle.security.ucrypto.NativeKey, int);
descriptor: (ZLcom/oracle/security/ucrypto/NativeKey;I)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=7, locals=6, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
iconst_1
invokevirtual com.oracle.security.ucrypto.NativeRSASignature.reset:(Z)V
1: aload 0
iload 1
putfield com.oracle.security.ucrypto.NativeRSASignature.sign:Z
2: aload 0
iload 3
putfield com.oracle.security.ucrypto.NativeRSASignature.sigLength:I
3: aload 0
aload 2
putfield com.oracle.security.ucrypto.NativeRSASignature.key:Lcom/oracle/security/ucrypto/NativeKey;
4: aload 0
getfield com.oracle.security.ucrypto.NativeRSASignature.mech:Lcom/oracle/security/ucrypto/UcryptoMech;
invokevirtual com.oracle.security.ucrypto.UcryptoMech.value:()I
iload 1
aload 2
invokevirtual com.oracle.security.ucrypto.NativeKey.value:()J
5: aload 2
invokevirtual com.oracle.security.ucrypto.NativeKey.length:()I
6: invokestatic com.oracle.security.ucrypto.NativeRSASignature.nativeInit:(IZJI)J
lstore 4
start local 4 7: aload 0
lload 4
lconst_0
lcmp
ifeq 8
iconst_1
goto 9
StackMap locals: com.oracle.security.ucrypto.NativeRSASignature int com.oracle.security.ucrypto.NativeKey int long
StackMap stack: com.oracle.security.ucrypto.NativeRSASignature
8: iconst_0
StackMap locals: com.oracle.security.ucrypto.NativeRSASignature int com.oracle.security.ucrypto.NativeKey int long
StackMap stack: com.oracle.security.ucrypto.NativeRSASignature int
9: putfield com.oracle.security.ucrypto.NativeRSASignature.initialized:Z
10: aload 0
getfield com.oracle.security.ucrypto.NativeRSASignature.initialized:Z
ifeq 13
11: aload 0
new com.oracle.security.ucrypto.NativeRSASignature$SignatureContextRef
dup
aload 0
lload 4
iload 1
invokespecial com.oracle.security.ucrypto.NativeRSASignature$SignatureContextRef.<init>:(Lcom/oracle/security/ucrypto/NativeRSASignature;JZ)V
putfield com.oracle.security.ucrypto.NativeRSASignature.pCtxt:Lcom/oracle/security/ucrypto/NativeRSASignature$SignatureContextRef;
12: goto 14
13: StackMap locals:
StackMap stack:
new com.oracle.security.ucrypto.UcryptoException
dup
ldc "Cannot initialize Signature"
invokespecial com.oracle.security.ucrypto.UcryptoException.<init>:(Ljava/lang/String;)V
athrow
14: StackMap locals:
StackMap stack:
return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Lcom/oracle/security/ucrypto/NativeRSASignature;
0 15 1 sign Z
0 15 2 key Lcom/oracle/security/ucrypto/NativeKey;
0 15 3 sigLength I
7 15 4 pCtxtVal J
MethodParameters:
Name Flags
sign
key
sigLength
private void ensureInitialized();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
getfield com.oracle.security.ucrypto.NativeRSASignature.initialized:Z
ifne 4
1: aload 0
aload 0
getfield com.oracle.security.ucrypto.NativeRSASignature.sign:Z
aload 0
getfield com.oracle.security.ucrypto.NativeRSASignature.key:Lcom/oracle/security/ucrypto/NativeKey;
aload 0
getfield com.oracle.security.ucrypto.NativeRSASignature.sigLength:I
invokevirtual com.oracle.security.ucrypto.NativeRSASignature.init:(ZLcom/oracle/security/ucrypto/NativeKey;I)V
2: aload 0
getfield com.oracle.security.ucrypto.NativeRSASignature.initialized:Z
ifne 4
3: new com.oracle.security.ucrypto.UcryptoException
dup
ldc "Cannot initialize Signature"
invokespecial com.oracle.security.ucrypto.UcryptoException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lcom/oracle/security/ucrypto/NativeRSASignature;
private int update(byte[], int, int);
descriptor: ([BII)I
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: iload 2
iflt 1
iload 2
aload 1
arraylength
iload 3
isub
if_icmple 4
1: StackMap locals:
StackMap stack:
new java.lang.ArrayIndexOutOfBoundsException
dup
new java.lang.StringBuilder
dup
ldc "inOfs :"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 2
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
2: ldc ". inLen: "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
iload 3
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc ". in.length: "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 1
arraylength
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
3: invokespecial java.lang.ArrayIndexOutOfBoundsException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
aload 0
invokevirtual com.oracle.security.ucrypto.NativeRSASignature.ensureInitialized:()V
5: aload 0
getfield com.oracle.security.ucrypto.NativeRSASignature.pCtxt:Lcom/oracle/security/ucrypto/NativeRSASignature$SignatureContextRef;
getfield com.oracle.security.ucrypto.NativeRSASignature$SignatureContextRef.id:J
aload 0
getfield com.oracle.security.ucrypto.NativeRSASignature.sign:Z
aload 1
iload 2
iload 3
invokestatic com.oracle.security.ucrypto.NativeRSASignature.nativeUpdate:(JZ[BII)I
istore 4
start local 4 6: iload 4
ifge 8
7: aload 0
iconst_0
invokevirtual com.oracle.security.ucrypto.NativeRSASignature.reset:(Z)V
8: StackMap locals: int
StackMap stack:
iload 4
ireturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lcom/oracle/security/ucrypto/NativeRSASignature;
0 9 1 in [B
0 9 2 inOfs I
0 9 3 inLen I
6 9 4 k I
MethodParameters:
Name Flags
in
inOfs
inLen
private int update(long, int);
descriptor: (JI)I
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=5, args_size=3
start local 0 start local 1 start local 3 0: aload 0
invokevirtual com.oracle.security.ucrypto.NativeRSASignature.ensureInitialized:()V
1: aload 0
getfield com.oracle.security.ucrypto.NativeRSASignature.pCtxt:Lcom/oracle/security/ucrypto/NativeRSASignature$SignatureContextRef;
getfield com.oracle.security.ucrypto.NativeRSASignature$SignatureContextRef.id:J
aload 0
getfield com.oracle.security.ucrypto.NativeRSASignature.sign:Z
lload 1
iload 3
invokestatic com.oracle.security.ucrypto.NativeRSASignature.nativeUpdate:(JZJI)I
istore 4
start local 4 2: iload 4
ifge 4
3: aload 0
iconst_0
invokevirtual com.oracle.security.ucrypto.NativeRSASignature.reset:(Z)V
4: StackMap locals: int
StackMap stack:
iload 4
ireturn
end local 4 end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lcom/oracle/security/ucrypto/NativeRSASignature;
0 5 1 pIn J
0 5 3 inLen I
2 5 4 k I
MethodParameters:
Name Flags
pIn
inLen
private int doFinal(byte[], int, int);
descriptor: ([BII)I
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokevirtual com.oracle.security.ucrypto.NativeRSASignature.ensureInitialized:()V
1: aload 0
getfield com.oracle.security.ucrypto.NativeRSASignature.pCtxt:Lcom/oracle/security/ucrypto/NativeRSASignature$SignatureContextRef;
getfield com.oracle.security.ucrypto.NativeRSASignature$SignatureContextRef.id:J
aload 0
getfield com.oracle.security.ucrypto.NativeRSASignature.sign:Z
aload 1
iload 2
iload 3
invokestatic com.oracle.security.ucrypto.NativeRSASignature.nativeFinal:(JZ[BII)I
istore 4
start local 4 2: iload 4
ireturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/oracle/security/ucrypto/NativeRSASignature;
0 3 1 sigBytes [B
0 3 2 sigOfs I
0 3 3 sigLen I
2 3 4 k I
MethodParameters:
Name Flags
sigBytes
sigOfs
sigLen
private int checkRSAKeyLength(java.math.BigInteger);
descriptor: (Ljava/math/BigInteger;)I
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=4, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual java.math.BigInteger.bitLength:()I
bipush 7
iadd
iconst_3
ishr
istore 2
start local 2 1: iload 2
bipush 11
isub
istore 3
start local 3 2: iload 3
aload 0
getfield com.oracle.security.ucrypto.NativeRSASignature.encodedLen:I
if_icmpge 8
3: new java.security.InvalidKeyException
dup
4: new java.lang.StringBuilder
dup
ldc "Key is too short for this signature algorithm. maxDataSize: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
5: iload 3
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc ". encodedLen: "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield com.oracle.security.ucrypto.NativeRSASignature.encodedLen:I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
6: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
7: invokespecial java.security.InvalidKeyException.<init>:(Ljava/lang/String;)V
athrow
8: StackMap locals: int int
StackMap stack:
iload 2
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lcom/oracle/security/ucrypto/NativeRSASignature;
0 9 1 mod Ljava/math/BigInteger;
1 9 2 keySize I
2 9 3 maxDataSize I
Exceptions:
throws java.security.InvalidKeyException
MethodParameters:
Name Flags
mod
}
SourceFile: "NativeRSASignature.java"
NestMembers:
com.oracle.security.ucrypto.NativeRSASignature$MD5 com.oracle.security.ucrypto.NativeRSASignature$SHA1 com.oracle.security.ucrypto.NativeRSASignature$SHA256 com.oracle.security.ucrypto.NativeRSASignature$SHA384 com.oracle.security.ucrypto.NativeRSASignature$SHA512 com.oracle.security.ucrypto.NativeRSASignature$SignatureContextRef
InnerClasses:
public final MD5 = com.oracle.security.ucrypto.NativeRSASignature$MD5 of com.oracle.security.ucrypto.NativeRSASignature
public final SHA1 = com.oracle.security.ucrypto.NativeRSASignature$SHA1 of com.oracle.security.ucrypto.NativeRSASignature
public final SHA256 = com.oracle.security.ucrypto.NativeRSASignature$SHA256 of com.oracle.security.ucrypto.NativeRSASignature
public final SHA384 = com.oracle.security.ucrypto.NativeRSASignature$SHA384 of com.oracle.security.ucrypto.NativeRSASignature
public final SHA512 = com.oracle.security.ucrypto.NativeRSASignature$SHA512 of com.oracle.security.ucrypto.NativeRSASignature
private SignatureContextRef = com.oracle.security.ucrypto.NativeRSASignature$SignatureContextRef of com.oracle.security.ucrypto.NativeRSASignature