public class org.bouncycastle.crypto.engines.RSABlindedEngine implements org.bouncycastle.crypto.AsymmetricBlockCipher
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.bouncycastle.crypto.engines.RSABlindedEngine
super_class: java.lang.Object
{
private static java.math.BigInteger ONE;
descriptor: Ljava/math/BigInteger;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
private org.bouncycastle.crypto.engines.RSACoreEngine core;
descriptor: Lorg/bouncycastle/crypto/engines/RSACoreEngine;
flags: (0x0002) ACC_PRIVATE
private org.bouncycastle.crypto.params.RSAKeyParameters key;
descriptor: Lorg/bouncycastle/crypto/params/RSAKeyParameters;
flags: (0x0002) ACC_PRIVATE
private java.security.SecureRandom random;
descriptor: Ljava/security/SecureRandom;
flags: (0x0002) ACC_PRIVATE
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: lconst_1
invokestatic java.math.BigInteger.valueOf:(J)Ljava/math/BigInteger;
putstatic org.bouncycastle.crypto.engines.RSABlindedEngine.ONE:Ljava/math/BigInteger;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new org.bouncycastle.crypto.engines.RSACoreEngine
dup
invokespecial org.bouncycastle.crypto.engines.RSACoreEngine.<init>:()V
putfield org.bouncycastle.crypto.engines.RSABlindedEngine.core:Lorg/bouncycastle/crypto/engines/RSACoreEngine;
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/bouncycastle/crypto/engines/RSABlindedEngine;
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: aload 0
getfield org.bouncycastle.crypto.engines.RSABlindedEngine.core:Lorg/bouncycastle/crypto/engines/RSACoreEngine;
iload 1
aload 2
invokevirtual org.bouncycastle.crypto.engines.RSACoreEngine.init:(ZLorg/bouncycastle/crypto/CipherParameters;)V
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.getParameters:()Lorg/bouncycastle/crypto/CipherParameters;
checkcast org.bouncycastle.crypto.params.RSAKeyParameters
putfield org.bouncycastle.crypto.engines.RSABlindedEngine.key:Lorg/bouncycastle/crypto/params/RSAKeyParameters;
4: aload 0
aload 3
invokevirtual org.bouncycastle.crypto.params.ParametersWithRandom.getRandom:()Ljava/security/SecureRandom;
putfield org.bouncycastle.crypto.engines.RSABlindedEngine.random:Ljava/security/SecureRandom;
end local 3 5: goto 8
6: StackMap locals:
StackMap stack:
aload 0
aload 2
checkcast org.bouncycastle.crypto.params.RSAKeyParameters
putfield org.bouncycastle.crypto.engines.RSABlindedEngine.key:Lorg/bouncycastle/crypto/params/RSAKeyParameters;
7: aload 0
new java.security.SecureRandom
dup
invokespecial java.security.SecureRandom.<init>:()V
putfield org.bouncycastle.crypto.engines.RSABlindedEngine.random:Ljava/security/SecureRandom;
8: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lorg/bouncycastle/crypto/engines/RSABlindedEngine;
0 9 1 forEncryption Z
0 9 2 param Lorg/bouncycastle/crypto/CipherParameters;
3 5 3 rParam Lorg/bouncycastle/crypto/params/ParametersWithRandom;
MethodParameters:
Name Flags
forEncryption
param
public int getInputBlockSize();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.bouncycastle.crypto.engines.RSABlindedEngine.core:Lorg/bouncycastle/crypto/engines/RSACoreEngine;
invokevirtual org.bouncycastle.crypto.engines.RSACoreEngine.getInputBlockSize:()I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bouncycastle/crypto/engines/RSABlindedEngine;
public int getOutputBlockSize();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.bouncycastle.crypto.engines.RSABlindedEngine.core:Lorg/bouncycastle/crypto/engines/RSACoreEngine;
invokevirtual org.bouncycastle.crypto.engines.RSACoreEngine.getOutputBlockSize:()I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bouncycastle/crypto/engines/RSABlindedEngine;
public byte[] processBlock(byte[], int, int);
descriptor: ([BII)[B
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=13, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
getfield org.bouncycastle.crypto.engines.RSABlindedEngine.key:Lorg/bouncycastle/crypto/params/RSAKeyParameters;
ifnonnull 2
1: new java.lang.IllegalStateException
dup
ldc "RSA engine not initialised"
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
getfield org.bouncycastle.crypto.engines.RSABlindedEngine.core:Lorg/bouncycastle/crypto/engines/RSACoreEngine;
aload 1
iload 2
iload 3
invokevirtual org.bouncycastle.crypto.engines.RSACoreEngine.convertInput:([BII)Ljava/math/BigInteger;
astore 4
start local 4 3: aload 0
getfield org.bouncycastle.crypto.engines.RSABlindedEngine.key:Lorg/bouncycastle/crypto/params/RSAKeyParameters;
instanceof org.bouncycastle.crypto.params.RSAPrivateCrtKeyParameters
ifeq 16
4: aload 0
getfield org.bouncycastle.crypto.engines.RSABlindedEngine.key:Lorg/bouncycastle/crypto/params/RSAKeyParameters;
checkcast org.bouncycastle.crypto.params.RSAPrivateCrtKeyParameters
astore 6
start local 6 5: aload 6
invokevirtual org.bouncycastle.crypto.params.RSAPrivateCrtKeyParameters.getPublicExponent:()Ljava/math/BigInteger;
astore 7
start local 7 6: aload 7
ifnull 14
7: aload 6
invokevirtual org.bouncycastle.crypto.params.RSAPrivateCrtKeyParameters.getModulus:()Ljava/math/BigInteger;
astore 8
start local 8 8: getstatic org.bouncycastle.crypto.engines.RSABlindedEngine.ONE:Ljava/math/BigInteger;
aload 8
getstatic org.bouncycastle.crypto.engines.RSABlindedEngine.ONE:Ljava/math/BigInteger;
invokevirtual java.math.BigInteger.subtract:(Ljava/math/BigInteger;)Ljava/math/BigInteger;
aload 0
getfield org.bouncycastle.crypto.engines.RSABlindedEngine.random:Ljava/security/SecureRandom;
invokestatic org.bouncycastle.util.BigIntegers.createRandomInRange:(Ljava/math/BigInteger;Ljava/math/BigInteger;Ljava/security/SecureRandom;)Ljava/math/BigInteger;
astore 9
start local 9 9: aload 9
aload 7
aload 8
invokevirtual java.math.BigInteger.modPow:(Ljava/math/BigInteger;Ljava/math/BigInteger;)Ljava/math/BigInteger;
aload 4
invokevirtual java.math.BigInteger.multiply:(Ljava/math/BigInteger;)Ljava/math/BigInteger;
aload 8
invokevirtual java.math.BigInteger.mod:(Ljava/math/BigInteger;)Ljava/math/BigInteger;
astore 10
start local 10 10: aload 0
getfield org.bouncycastle.crypto.engines.RSABlindedEngine.core:Lorg/bouncycastle/crypto/engines/RSACoreEngine;
aload 10
invokevirtual org.bouncycastle.crypto.engines.RSACoreEngine.processBlock:(Ljava/math/BigInteger;)Ljava/math/BigInteger;
astore 11
start local 11 11: aload 9
aload 8
invokevirtual java.math.BigInteger.modInverse:(Ljava/math/BigInteger;)Ljava/math/BigInteger;
astore 12
start local 12 12: aload 11
aload 12
invokevirtual java.math.BigInteger.multiply:(Ljava/math/BigInteger;)Ljava/math/BigInteger;
aload 8
invokevirtual java.math.BigInteger.mod:(Ljava/math/BigInteger;)Ljava/math/BigInteger;
astore 5
end local 12 end local 11 end local 10 end local 9 end local 8 start local 5 13: goto 17
end local 5 14: StackMap locals: org.bouncycastle.crypto.engines.RSABlindedEngine byte[] int int java.math.BigInteger top org.bouncycastle.crypto.params.RSAPrivateCrtKeyParameters java.math.BigInteger
StackMap stack:
aload 0
getfield org.bouncycastle.crypto.engines.RSABlindedEngine.core:Lorg/bouncycastle/crypto/engines/RSACoreEngine;
aload 4
invokevirtual org.bouncycastle.crypto.engines.RSACoreEngine.processBlock:(Ljava/math/BigInteger;)Ljava/math/BigInteger;
astore 5
end local 7 end local 6 start local 5 15: goto 17
end local 5 16: StackMap locals: org.bouncycastle.crypto.engines.RSABlindedEngine byte[] int int java.math.BigInteger
StackMap stack:
aload 0
getfield org.bouncycastle.crypto.engines.RSABlindedEngine.core:Lorg/bouncycastle/crypto/engines/RSACoreEngine;
aload 4
invokevirtual org.bouncycastle.crypto.engines.RSACoreEngine.processBlock:(Ljava/math/BigInteger;)Ljava/math/BigInteger;
astore 5
start local 5 17: StackMap locals: java.math.BigInteger
StackMap stack:
aload 0
getfield org.bouncycastle.crypto.engines.RSABlindedEngine.core:Lorg/bouncycastle/crypto/engines/RSACoreEngine;
aload 5
invokevirtual org.bouncycastle.crypto.engines.RSACoreEngine.convertOutput:(Ljava/math/BigInteger;)[B
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 18 0 this Lorg/bouncycastle/crypto/engines/RSABlindedEngine;
0 18 1 in [B
0 18 2 inOff I
0 18 3 inLen I
3 18 4 input Ljava/math/BigInteger;
13 14 5 result Ljava/math/BigInteger;
15 16 5 result Ljava/math/BigInteger;
17 18 5 result Ljava/math/BigInteger;
5 15 6 k Lorg/bouncycastle/crypto/params/RSAPrivateCrtKeyParameters;
6 15 7 e Ljava/math/BigInteger;
8 13 8 m Ljava/math/BigInteger;
9 13 9 r Ljava/math/BigInteger;
10 13 10 blindedInput Ljava/math/BigInteger;
11 13 11 blindedResult Ljava/math/BigInteger;
12 13 12 rInv Ljava/math/BigInteger;
MethodParameters:
Name Flags
in
inOff
inLen
}
SourceFile: "RSABlindedEngine.java"