class org.bouncycastle.crypto.engines.RSACoreEngine
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: org.bouncycastle.crypto.engines.RSACoreEngine
super_class: java.lang.Object
{
private org.bouncycastle.crypto.params.RSAKeyParameters key;
descriptor: Lorg/bouncycastle/crypto/params/RSAKeyParameters;
flags: (0x0002) ACC_PRIVATE
private boolean forEncryption;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
void <init>();
descriptor: ()V
flags: (0x0000)
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/engines/RSACoreEngine;
public void init(boolean, org.bouncycastle.crypto.CipherParameters);
descriptor: (ZLorg/bouncycastle/crypto/CipherParameters;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 2
instanceof org.bouncycastle.crypto.params.ParametersWithRandom
ifeq 4
1: aload 2
checkcast org.bouncycastle.crypto.params.ParametersWithRandom
astore 3
start local 3 2: aload 0
aload 3
invokevirtual org.bouncycastle.crypto.params.ParametersWithRandom.getParameters:()Lorg/bouncycastle/crypto/CipherParameters;
checkcast org.bouncycastle.crypto.params.RSAKeyParameters
putfield org.bouncycastle.crypto.engines.RSACoreEngine.key:Lorg/bouncycastle/crypto/params/RSAKeyParameters;
end local 3 3: goto 5
4: StackMap locals:
StackMap stack:
aload 0
aload 2
checkcast org.bouncycastle.crypto.params.RSAKeyParameters
putfield org.bouncycastle.crypto.engines.RSACoreEngine.key:Lorg/bouncycastle/crypto/params/RSAKeyParameters;
5: StackMap locals:
StackMap stack:
aload 0
iload 1
putfield org.bouncycastle.crypto.engines.RSACoreEngine.forEncryption:Z
6: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/bouncycastle/crypto/engines/RSACoreEngine;
0 7 1 forEncryption Z
0 7 2 param Lorg/bouncycastle/crypto/CipherParameters;
2 3 3 rParam Lorg/bouncycastle/crypto/params/ParametersWithRandom;
MethodParameters:
Name Flags
forEncryption
param
public int getInputBlockSize();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
getfield org.bouncycastle.crypto.engines.RSACoreEngine.key:Lorg/bouncycastle/crypto/params/RSAKeyParameters;
invokevirtual org.bouncycastle.crypto.params.RSAKeyParameters.getModulus:()Ljava/math/BigInteger;
invokevirtual java.math.BigInteger.bitLength:()I
istore 1
start local 1 1: aload 0
getfield org.bouncycastle.crypto.engines.RSACoreEngine.forEncryption:Z
ifeq 3
2: iload 1
bipush 7
iadd
bipush 8
idiv
iconst_1
isub
ireturn
3: StackMap locals: int
StackMap stack:
iload 1
bipush 7
iadd
bipush 8
idiv
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/bouncycastle/crypto/engines/RSACoreEngine;
1 4 1 bitSize I
public int getOutputBlockSize();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
getfield org.bouncycastle.crypto.engines.RSACoreEngine.key:Lorg/bouncycastle/crypto/params/RSAKeyParameters;
invokevirtual org.bouncycastle.crypto.params.RSAKeyParameters.getModulus:()Ljava/math/BigInteger;
invokevirtual java.math.BigInteger.bitLength:()I
istore 1
start local 1 1: aload 0
getfield org.bouncycastle.crypto.engines.RSACoreEngine.forEncryption:Z
ifeq 3
2: iload 1
bipush 7
iadd
bipush 8
idiv
ireturn
3: StackMap locals: int
StackMap stack:
iload 1
bipush 7
iadd
bipush 8
idiv
iconst_1
isub
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/bouncycastle/crypto/engines/RSACoreEngine;
1 4 1 bitSize I
public java.math.BigInteger convertInput(byte[], int, int);
descriptor: ([BII)Ljava/math/BigInteger;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=6, args_size=4
start local 0 start local 1 start local 2 start local 3 0: iload 3
aload 0
invokevirtual org.bouncycastle.crypto.engines.RSACoreEngine.getInputBlockSize:()I
iconst_1
iadd
if_icmple 2
1: new org.bouncycastle.crypto.DataLengthException
dup
ldc "input too large for RSA cipher."
invokespecial org.bouncycastle.crypto.DataLengthException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
iload 3
aload 0
invokevirtual org.bouncycastle.crypto.engines.RSACoreEngine.getInputBlockSize:()I
iconst_1
iadd
if_icmpne 4
aload 0
getfield org.bouncycastle.crypto.engines.RSACoreEngine.forEncryption:Z
ifne 4
3: new org.bouncycastle.crypto.DataLengthException
dup
ldc "input too large for RSA cipher."
invokespecial org.bouncycastle.crypto.DataLengthException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
iload 2
ifne 5
iload 3
aload 1
arraylength
if_icmpeq 8
5: StackMap locals:
StackMap stack:
iload 3
newarray 8
astore 4
start local 4 6: aload 1
iload 2
aload 4
iconst_0
iload 3
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
7: goto 9
end local 4 8: StackMap locals:
StackMap stack:
aload 1
astore 4
start local 4 9: StackMap locals: byte[]
StackMap stack:
new java.math.BigInteger
dup
iconst_1
aload 4
invokespecial java.math.BigInteger.<init>:(I[B)V
astore 5
start local 5 10: aload 5
aload 0
getfield org.bouncycastle.crypto.engines.RSACoreEngine.key:Lorg/bouncycastle/crypto/params/RSAKeyParameters;
invokevirtual org.bouncycastle.crypto.params.RSAKeyParameters.getModulus:()Ljava/math/BigInteger;
invokevirtual java.math.BigInteger.compareTo:(Ljava/math/BigInteger;)I
iflt 12
11: new org.bouncycastle.crypto.DataLengthException
dup
ldc "input too large for RSA cipher."
invokespecial org.bouncycastle.crypto.DataLengthException.<init>:(Ljava/lang/String;)V
athrow
12: StackMap locals: java.math.BigInteger
StackMap stack:
aload 5
areturn
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 13 0 this Lorg/bouncycastle/crypto/engines/RSACoreEngine;
0 13 1 in [B
0 13 2 inOff I
0 13 3 inLen I
6 8 4 block [B
9 13 4 block [B
10 13 5 res Ljava/math/BigInteger;
MethodParameters:
Name Flags
in
inOff
inLen
public byte[] convertOutput(java.math.BigInteger);
descriptor: (Ljava/math/BigInteger;)[B
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=4, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual java.math.BigInteger.toByteArray:()[B
astore 2
start local 2 1: aload 0
getfield org.bouncycastle.crypto.engines.RSACoreEngine.forEncryption:Z
ifeq 10
2: aload 2
iconst_0
baload
ifne 6
aload 2
arraylength
aload 0
invokevirtual org.bouncycastle.crypto.engines.RSACoreEngine.getOutputBlockSize:()I
if_icmple 6
3: aload 2
arraylength
iconst_1
isub
newarray 8
astore 3
start local 3 4: aload 2
iconst_1
aload 3
iconst_0
aload 3
arraylength
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
5: aload 3
areturn
end local 3 6: StackMap locals: byte[]
StackMap stack:
aload 2
arraylength
aload 0
invokevirtual org.bouncycastle.crypto.engines.RSACoreEngine.getOutputBlockSize:()I
if_icmpge 14
7: aload 0
invokevirtual org.bouncycastle.crypto.engines.RSACoreEngine.getOutputBlockSize:()I
newarray 8
astore 3
start local 3 8: aload 2
iconst_0
aload 3
aload 3
arraylength
aload 2
arraylength
isub
aload 2
arraylength
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
9: aload 3
areturn
end local 3 10: StackMap locals:
StackMap stack:
aload 2
iconst_0
baload
ifne 14
11: aload 2
arraylength
iconst_1
isub
newarray 8
astore 3
start local 3 12: aload 2
iconst_1
aload 3
iconst_0
aload 3
arraylength
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
13: aload 3
areturn
end local 3 14: StackMap locals:
StackMap stack:
aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Lorg/bouncycastle/crypto/engines/RSACoreEngine;
0 15 1 result Ljava/math/BigInteger;
1 15 2 output [B
4 6 3 tmp [B
8 10 3 tmp [B
12 14 3 tmp [B
MethodParameters:
Name Flags
result
public java.math.BigInteger processBlock(java.math.BigInteger);
descriptor: (Ljava/math/BigInteger;)Ljava/math/BigInteger;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=12, args_size=2
start local 0 start local 1 0: aload 0
getfield org.bouncycastle.crypto.engines.RSACoreEngine.key:Lorg/bouncycastle/crypto/params/RSAKeyParameters;
instanceof org.bouncycastle.crypto.params.RSAPrivateCrtKeyParameters
ifeq 15
1: aload 0
getfield org.bouncycastle.crypto.engines.RSACoreEngine.key:Lorg/bouncycastle/crypto/params/RSAKeyParameters;
checkcast org.bouncycastle.crypto.params.RSAPrivateCrtKeyParameters
astore 2
start local 2 2: aload 2
invokevirtual org.bouncycastle.crypto.params.RSAPrivateCrtKeyParameters.getP:()Ljava/math/BigInteger;
astore 3
start local 3 3: aload 2
invokevirtual org.bouncycastle.crypto.params.RSAPrivateCrtKeyParameters.getQ:()Ljava/math/BigInteger;
astore 4
start local 4 4: aload 2
invokevirtual org.bouncycastle.crypto.params.RSAPrivateCrtKeyParameters.getDP:()Ljava/math/BigInteger;
astore 5
start local 5 5: aload 2
invokevirtual org.bouncycastle.crypto.params.RSAPrivateCrtKeyParameters.getDQ:()Ljava/math/BigInteger;
astore 6
start local 6 6: aload 2
invokevirtual org.bouncycastle.crypto.params.RSAPrivateCrtKeyParameters.getQInv:()Ljava/math/BigInteger;
astore 7
start local 7 7: aload 1
aload 3
invokevirtual java.math.BigInteger.remainder:(Ljava/math/BigInteger;)Ljava/math/BigInteger;
aload 5
aload 3
invokevirtual java.math.BigInteger.modPow:(Ljava/math/BigInteger;Ljava/math/BigInteger;)Ljava/math/BigInteger;
astore 8
start local 8 8: aload 1
aload 4
invokevirtual java.math.BigInteger.remainder:(Ljava/math/BigInteger;)Ljava/math/BigInteger;
aload 6
aload 4
invokevirtual java.math.BigInteger.modPow:(Ljava/math/BigInteger;Ljava/math/BigInteger;)Ljava/math/BigInteger;
astore 9
start local 9 9: aload 8
aload 9
invokevirtual java.math.BigInteger.subtract:(Ljava/math/BigInteger;)Ljava/math/BigInteger;
astore 10
start local 10 10: aload 10
aload 7
invokevirtual java.math.BigInteger.multiply:(Ljava/math/BigInteger;)Ljava/math/BigInteger;
astore 10
11: aload 10
aload 3
invokevirtual java.math.BigInteger.mod:(Ljava/math/BigInteger;)Ljava/math/BigInteger;
astore 10
12: aload 10
aload 4
invokevirtual java.math.BigInteger.multiply:(Ljava/math/BigInteger;)Ljava/math/BigInteger;
astore 11
start local 11 13: aload 11
aload 9
invokevirtual java.math.BigInteger.add:(Ljava/math/BigInteger;)Ljava/math/BigInteger;
astore 11
14: aload 11
areturn
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 15: StackMap locals:
StackMap stack:
aload 1
16: aload 0
getfield org.bouncycastle.crypto.engines.RSACoreEngine.key:Lorg/bouncycastle/crypto/params/RSAKeyParameters;
invokevirtual org.bouncycastle.crypto.params.RSAKeyParameters.getExponent:()Ljava/math/BigInteger;
aload 0
getfield org.bouncycastle.crypto.engines.RSACoreEngine.key:Lorg/bouncycastle/crypto/params/RSAKeyParameters;
invokevirtual org.bouncycastle.crypto.params.RSAKeyParameters.getModulus:()Ljava/math/BigInteger;
17: invokevirtual java.math.BigInteger.modPow:(Ljava/math/BigInteger;Ljava/math/BigInteger;)Ljava/math/BigInteger;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 18 0 this Lorg/bouncycastle/crypto/engines/RSACoreEngine;
0 18 1 input Ljava/math/BigInteger;
2 15 2 crtKey Lorg/bouncycastle/crypto/params/RSAPrivateCrtKeyParameters;
3 15 3 p Ljava/math/BigInteger;
4 15 4 q Ljava/math/BigInteger;
5 15 5 dP Ljava/math/BigInteger;
6 15 6 dQ Ljava/math/BigInteger;
7 15 7 qInv Ljava/math/BigInteger;
8 15 8 mP Ljava/math/BigInteger;
9 15 9 mQ Ljava/math/BigInteger;
10 15 10 h Ljava/math/BigInteger;
13 15 11 m Ljava/math/BigInteger;
MethodParameters:
Name Flags
input
}
SourceFile: "RSACoreEngine.java"