public class org.bouncycastle.crypto.generators.MGF1BytesGenerator implements org.bouncycastle.crypto.DerivationFunction
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.bouncycastle.crypto.generators.MGF1BytesGenerator
super_class: java.lang.Object
{
private org.bouncycastle.crypto.Digest digest;
descriptor: Lorg/bouncycastle/crypto/Digest;
flags: (0x0002) ACC_PRIVATE
private byte[] seed;
descriptor: [B
flags: (0x0002) ACC_PRIVATE
private int hLen;
descriptor: I
flags: (0x0002) ACC_PRIVATE
public void <init>(org.bouncycastle.crypto.Digest);
descriptor: (Lorg/bouncycastle/crypto/Digest;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
putfield org.bouncycastle.crypto.generators.MGF1BytesGenerator.digest:Lorg/bouncycastle/crypto/Digest;
2: aload 0
aload 1
invokeinterface org.bouncycastle.crypto.Digest.getDigestSize:()I
putfield org.bouncycastle.crypto.generators.MGF1BytesGenerator.hLen:I
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/bouncycastle/crypto/generators/MGF1BytesGenerator;
0 4 1 digest Lorg/bouncycastle/crypto/Digest;
MethodParameters:
Name Flags
digest
public void init(org.bouncycastle.crypto.DerivationParameters);
descriptor: (Lorg/bouncycastle/crypto/DerivationParameters;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 1
instanceof org.bouncycastle.crypto.params.MGFParameters
ifne 2
1: new java.lang.IllegalArgumentException
dup
ldc "MGF parameters required for MGF1Generator"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 1
checkcast org.bouncycastle.crypto.params.MGFParameters
astore 2
start local 2 3: aload 0
aload 2
invokevirtual org.bouncycastle.crypto.params.MGFParameters.getSeed:()[B
putfield org.bouncycastle.crypto.generators.MGF1BytesGenerator.seed:[B
4: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/bouncycastle/crypto/generators/MGF1BytesGenerator;
0 5 1 param Lorg/bouncycastle/crypto/DerivationParameters;
3 5 2 p Lorg/bouncycastle/crypto/params/MGFParameters;
MethodParameters:
Name Flags
param
public org.bouncycastle.crypto.Digest getDigest();
descriptor: ()Lorg/bouncycastle/crypto/Digest;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.bouncycastle.crypto.generators.MGF1BytesGenerator.digest:Lorg/bouncycastle/crypto/Digest;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bouncycastle/crypto/generators/MGF1BytesGenerator;
private void ItoOSP(int, byte[]);
descriptor: (I[B)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 2
iconst_0
iload 1
bipush 24
iushr
i2b
bastore
1: aload 2
iconst_1
iload 1
bipush 16
iushr
i2b
bastore
2: aload 2
iconst_2
iload 1
bipush 8
iushr
i2b
bastore
3: aload 2
iconst_3
iload 1
iconst_0
iushr
i2b
bastore
4: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/bouncycastle/crypto/generators/MGF1BytesGenerator;
0 5 1 i I
0 5 2 sp [B
MethodParameters:
Name Flags
i
sp
public int generateBytes(byte[], int, int);
descriptor: ([BII)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=7, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 1
arraylength
iload 3
isub
iload 2
if_icmpge 2
1: new org.bouncycastle.crypto.OutputLengthException
dup
ldc "output buffer too small"
invokespecial org.bouncycastle.crypto.OutputLengthException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
getfield org.bouncycastle.crypto.generators.MGF1BytesGenerator.hLen:I
newarray 8
astore 4
start local 4 3: iconst_4
newarray 8
astore 5
start local 5 4: iconst_0
istore 6
start local 6 5: aload 0
getfield org.bouncycastle.crypto.generators.MGF1BytesGenerator.digest:Lorg/bouncycastle/crypto/Digest;
invokeinterface org.bouncycastle.crypto.Digest.reset:()V
6: iload 3
aload 0
getfield org.bouncycastle.crypto.generators.MGF1BytesGenerator.hLen:I
if_icmple 14
7: StackMap locals: byte[] byte[] int
StackMap stack:
aload 0
iload 6
aload 5
invokevirtual org.bouncycastle.crypto.generators.MGF1BytesGenerator.ItoOSP:(I[B)V
8: aload 0
getfield org.bouncycastle.crypto.generators.MGF1BytesGenerator.digest:Lorg/bouncycastle/crypto/Digest;
aload 0
getfield org.bouncycastle.crypto.generators.MGF1BytesGenerator.seed:[B
iconst_0
aload 0
getfield org.bouncycastle.crypto.generators.MGF1BytesGenerator.seed:[B
arraylength
invokeinterface org.bouncycastle.crypto.Digest.update:([BII)V
9: aload 0
getfield org.bouncycastle.crypto.generators.MGF1BytesGenerator.digest:Lorg/bouncycastle/crypto/Digest;
aload 5
iconst_0
aload 5
arraylength
invokeinterface org.bouncycastle.crypto.Digest.update:([BII)V
10: aload 0
getfield org.bouncycastle.crypto.generators.MGF1BytesGenerator.digest:Lorg/bouncycastle/crypto/Digest;
aload 4
iconst_0
invokeinterface org.bouncycastle.crypto.Digest.doFinal:([BI)I
pop
11: aload 4
iconst_0
aload 1
iload 2
iload 6
aload 0
getfield org.bouncycastle.crypto.generators.MGF1BytesGenerator.hLen:I
imul
iadd
aload 0
getfield org.bouncycastle.crypto.generators.MGF1BytesGenerator.hLen:I
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
12: iinc 6 1
iload 6
iload 3
aload 0
getfield org.bouncycastle.crypto.generators.MGF1BytesGenerator.hLen:I
idiv
13: if_icmplt 7
14: StackMap locals:
StackMap stack:
iload 6
aload 0
getfield org.bouncycastle.crypto.generators.MGF1BytesGenerator.hLen:I
imul
iload 3
if_icmpge 20
15: aload 0
iload 6
aload 5
invokevirtual org.bouncycastle.crypto.generators.MGF1BytesGenerator.ItoOSP:(I[B)V
16: aload 0
getfield org.bouncycastle.crypto.generators.MGF1BytesGenerator.digest:Lorg/bouncycastle/crypto/Digest;
aload 0
getfield org.bouncycastle.crypto.generators.MGF1BytesGenerator.seed:[B
iconst_0
aload 0
getfield org.bouncycastle.crypto.generators.MGF1BytesGenerator.seed:[B
arraylength
invokeinterface org.bouncycastle.crypto.Digest.update:([BII)V
17: aload 0
getfield org.bouncycastle.crypto.generators.MGF1BytesGenerator.digest:Lorg/bouncycastle/crypto/Digest;
aload 5
iconst_0
aload 5
arraylength
invokeinterface org.bouncycastle.crypto.Digest.update:([BII)V
18: aload 0
getfield org.bouncycastle.crypto.generators.MGF1BytesGenerator.digest:Lorg/bouncycastle/crypto/Digest;
aload 4
iconst_0
invokeinterface org.bouncycastle.crypto.Digest.doFinal:([BI)I
pop
19: aload 4
iconst_0
aload 1
iload 2
iload 6
aload 0
getfield org.bouncycastle.crypto.generators.MGF1BytesGenerator.hLen:I
imul
iadd
iload 3
iload 6
aload 0
getfield org.bouncycastle.crypto.generators.MGF1BytesGenerator.hLen:I
imul
isub
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
20: StackMap locals:
StackMap stack:
iload 3
ireturn
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 21 0 this Lorg/bouncycastle/crypto/generators/MGF1BytesGenerator;
0 21 1 out [B
0 21 2 outOff I
0 21 3 len I
3 21 4 hashBuf [B
4 21 5 C [B
5 21 6 counter I
Exceptions:
throws org.bouncycastle.crypto.DataLengthException, java.lang.IllegalArgumentException
MethodParameters:
Name Flags
out
outOff
len
}
SourceFile: "MGF1BytesGenerator.java"