public class org.bouncycastle.cert.crmf.bc.BcFixedLengthMGF1Padder implements org.bouncycastle.cert.crmf.EncryptedValuePadder
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.bouncycastle.cert.crmf.bc.BcFixedLengthMGF1Padder
super_class: java.lang.Object
{
private int length;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private java.security.SecureRandom random;
descriptor: Ljava/security/SecureRandom;
flags: (0x0002) ACC_PRIVATE
private org.bouncycastle.crypto.Digest dig;
descriptor: Lorg/bouncycastle/crypto/Digest;
flags: (0x0002) ACC_PRIVATE
public void <init>(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
aconst_null
invokespecial org.bouncycastle.cert.crmf.bc.BcFixedLengthMGF1Padder.<init>:(ILjava/security/SecureRandom;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/bouncycastle/cert/crmf/bc/BcFixedLengthMGF1Padder;
0 2 1 length I
MethodParameters:
Name Flags
length
public void <init>(int, java.security.SecureRandom);
descriptor: (ILjava/security/SecureRandom;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new org.bouncycastle.crypto.digests.SHA1Digest
dup
invokespecial org.bouncycastle.crypto.digests.SHA1Digest.<init>:()V
putfield org.bouncycastle.cert.crmf.bc.BcFixedLengthMGF1Padder.dig:Lorg/bouncycastle/crypto/Digest;
2: aload 0
iload 1
putfield org.bouncycastle.cert.crmf.bc.BcFixedLengthMGF1Padder.length:I
3: aload 0
aload 2
putfield org.bouncycastle.cert.crmf.bc.BcFixedLengthMGF1Padder.random:Ljava/security/SecureRandom;
4: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/bouncycastle/cert/crmf/bc/BcFixedLengthMGF1Padder;
0 5 1 length I
0 5 2 random Ljava/security/SecureRandom;
MethodParameters:
Name Flags
length
random
public byte[] getPaddedData(byte[]);
descriptor: ([B)[B
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=7, args_size=2
start local 0 start local 1 0: aload 0
getfield org.bouncycastle.cert.crmf.bc.BcFixedLengthMGF1Padder.length:I
newarray 8
astore 2
start local 2 1: aload 0
getfield org.bouncycastle.cert.crmf.bc.BcFixedLengthMGF1Padder.dig:Lorg/bouncycastle/crypto/Digest;
invokeinterface org.bouncycastle.crypto.Digest.getDigestSize:()I
newarray 8
astore 3
start local 3 2: aload 0
getfield org.bouncycastle.cert.crmf.bc.BcFixedLengthMGF1Padder.length:I
aload 0
getfield org.bouncycastle.cert.crmf.bc.BcFixedLengthMGF1Padder.dig:Lorg/bouncycastle/crypto/Digest;
invokeinterface org.bouncycastle.crypto.Digest.getDigestSize:()I
isub
newarray 8
astore 4
start local 4 3: aload 0
getfield org.bouncycastle.cert.crmf.bc.BcFixedLengthMGF1Padder.random:Ljava/security/SecureRandom;
ifnonnull 5
4: aload 0
new java.security.SecureRandom
dup
invokespecial java.security.SecureRandom.<init>:()V
putfield org.bouncycastle.cert.crmf.bc.BcFixedLengthMGF1Padder.random:Ljava/security/SecureRandom;
5: StackMap locals: byte[] byte[] byte[]
StackMap stack:
aload 0
getfield org.bouncycastle.cert.crmf.bc.BcFixedLengthMGF1Padder.random:Ljava/security/SecureRandom;
aload 3
invokevirtual java.security.SecureRandom.nextBytes:([B)V
6: new org.bouncycastle.crypto.generators.MGF1BytesGenerator
dup
aload 0
getfield org.bouncycastle.cert.crmf.bc.BcFixedLengthMGF1Padder.dig:Lorg/bouncycastle/crypto/Digest;
invokespecial org.bouncycastle.crypto.generators.MGF1BytesGenerator.<init>:(Lorg/bouncycastle/crypto/Digest;)V
astore 5
start local 5 7: aload 5
new org.bouncycastle.crypto.params.MGFParameters
dup
aload 3
invokespecial org.bouncycastle.crypto.params.MGFParameters.<init>:([B)V
invokevirtual org.bouncycastle.crypto.generators.MGF1BytesGenerator.init:(Lorg/bouncycastle/crypto/DerivationParameters;)V
8: aload 5
aload 4
iconst_0
aload 4
arraylength
invokevirtual org.bouncycastle.crypto.generators.MGF1BytesGenerator.generateBytes:([BII)I
pop
9: aload 3
iconst_0
aload 2
iconst_0
aload 3
arraylength
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
10: aload 1
iconst_0
aload 2
aload 3
arraylength
aload 1
arraylength
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
11: aload 3
arraylength
aload 1
arraylength
iadd
iconst_1
iadd
istore 6
start local 6 12: goto 15
13: StackMap locals: org.bouncycastle.crypto.generators.MGF1BytesGenerator int
StackMap stack:
aload 2
iload 6
iconst_1
aload 0
getfield org.bouncycastle.cert.crmf.bc.BcFixedLengthMGF1Padder.random:Ljava/security/SecureRandom;
sipush 255
invokevirtual java.security.SecureRandom.nextInt:(I)I
iadd
i2b
bastore
14: iinc 6 1
StackMap locals:
StackMap stack:
15: iload 6
aload 2
arraylength
if_icmpne 13
end local 6 16: iconst_0
istore 6
start local 6 17: goto 20
18: StackMap locals:
StackMap stack:
aload 2
iload 6
aload 3
arraylength
iadd
dup2
baload
aload 4
iload 6
baload
ixor
i2b
bastore
19: iinc 6 1
StackMap locals:
StackMap stack:
20: iload 6
aload 4
arraylength
if_icmpne 18
end local 6 21: aload 2
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 22 0 this Lorg/bouncycastle/cert/crmf/bc/BcFixedLengthMGF1Padder;
0 22 1 data [B
1 22 2 bytes [B
2 22 3 seed [B
3 22 4 mask [B
7 22 5 maskGen Lorg/bouncycastle/crypto/generators/MGF1BytesGenerator;
12 16 6 i I
17 21 6 i I
MethodParameters:
Name Flags
data
public byte[] getUnpaddedData(byte[]);
descriptor: ([B)[B
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=7, args_size=2
start local 0 start local 1 0: aload 0
getfield org.bouncycastle.cert.crmf.bc.BcFixedLengthMGF1Padder.dig:Lorg/bouncycastle/crypto/Digest;
invokeinterface org.bouncycastle.crypto.Digest.getDigestSize:()I
newarray 8
astore 2
start local 2 1: aload 0
getfield org.bouncycastle.cert.crmf.bc.BcFixedLengthMGF1Padder.length:I
aload 0
getfield org.bouncycastle.cert.crmf.bc.BcFixedLengthMGF1Padder.dig:Lorg/bouncycastle/crypto/Digest;
invokeinterface org.bouncycastle.crypto.Digest.getDigestSize:()I
isub
newarray 8
astore 3
start local 3 2: aload 1
iconst_0
aload 2
iconst_0
aload 2
arraylength
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
3: new org.bouncycastle.crypto.generators.MGF1BytesGenerator
dup
aload 0
getfield org.bouncycastle.cert.crmf.bc.BcFixedLengthMGF1Padder.dig:Lorg/bouncycastle/crypto/Digest;
invokespecial org.bouncycastle.crypto.generators.MGF1BytesGenerator.<init>:(Lorg/bouncycastle/crypto/Digest;)V
astore 4
start local 4 4: aload 4
new org.bouncycastle.crypto.params.MGFParameters
dup
aload 2
invokespecial org.bouncycastle.crypto.params.MGFParameters.<init>:([B)V
invokevirtual org.bouncycastle.crypto.generators.MGF1BytesGenerator.init:(Lorg/bouncycastle/crypto/DerivationParameters;)V
5: aload 4
aload 3
iconst_0
aload 3
arraylength
invokevirtual org.bouncycastle.crypto.generators.MGF1BytesGenerator.generateBytes:([BII)I
pop
6: iconst_0
istore 5
start local 5 7: goto 10
8: StackMap locals: org.bouncycastle.cert.crmf.bc.BcFixedLengthMGF1Padder byte[] byte[] byte[] org.bouncycastle.crypto.generators.MGF1BytesGenerator int
StackMap stack:
aload 1
iload 5
aload 2
arraylength
iadd
dup2
baload
aload 3
iload 5
baload
ixor
i2b
bastore
9: iinc 5 1
StackMap locals:
StackMap stack:
10: iload 5
aload 3
arraylength
if_icmpne 8
end local 5 11: iconst_0
istore 5
start local 5 12: aload 1
arraylength
iconst_1
isub
istore 6
start local 6 13: goto 18
14: StackMap locals: int
StackMap stack:
aload 1
iload 6
baload
ifne 17
15: iload 6
istore 5
16: goto 19
17: StackMap locals:
StackMap stack:
iinc 6 -1
StackMap locals:
StackMap stack:
18: iload 6
aload 2
arraylength
if_icmpne 14
end local 6 19: StackMap locals:
StackMap stack:
iload 5
ifne 21
20: new java.lang.IllegalStateException
dup
ldc "bad padding in encoding"
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
21: StackMap locals:
StackMap stack:
iload 5
aload 2
arraylength
isub
newarray 8
astore 6
start local 6 22: aload 1
aload 2
arraylength
aload 6
iconst_0
aload 6
arraylength
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
23: aload 6
areturn
end local 6 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 24 0 this Lorg/bouncycastle/cert/crmf/bc/BcFixedLengthMGF1Padder;
0 24 1 paddedData [B
1 24 2 seed [B
2 24 3 mask [B
4 24 4 maskGen Lorg/bouncycastle/crypto/generators/MGF1BytesGenerator;
7 11 5 i I
12 24 5 end I
13 19 6 i I
22 24 6 data [B
MethodParameters:
Name Flags
paddedData
}
SourceFile: "BcFixedLengthMGF1Padder.java"