public class org.bouncycastle.crypto.generators.BaseKDFBytesGenerator implements org.bouncycastle.crypto.DerivationFunction
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.bouncycastle.crypto.generators.BaseKDFBytesGenerator
super_class: java.lang.Object
{
private int counterStart;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private org.bouncycastle.crypto.Digest digest;
descriptor: Lorg/bouncycastle/crypto/Digest;
flags: (0x0002) ACC_PRIVATE
private byte[] shared;
descriptor: [B
flags: (0x0002) ACC_PRIVATE
private byte[] iv;
descriptor: [B
flags: (0x0002) ACC_PRIVATE
protected void <init>(int, org.bouncycastle.crypto.Digest);
descriptor: (ILorg/bouncycastle/crypto/Digest;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, 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
iload 1
putfield org.bouncycastle.crypto.generators.BaseKDFBytesGenerator.counterStart:I
2: aload 0
aload 2
putfield org.bouncycastle.crypto.generators.BaseKDFBytesGenerator.digest:Lorg/bouncycastle/crypto/Digest;
3: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/bouncycastle/crypto/generators/BaseKDFBytesGenerator;
0 4 1 counterStart I
0 4 2 digest Lorg/bouncycastle/crypto/Digest;
MethodParameters:
Name Flags
counterStart
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.KDFParameters
ifeq 5
1: aload 1
checkcast org.bouncycastle.crypto.params.KDFParameters
astore 2
start local 2 2: aload 0
aload 2
invokevirtual org.bouncycastle.crypto.params.KDFParameters.getSharedSecret:()[B
putfield org.bouncycastle.crypto.generators.BaseKDFBytesGenerator.shared:[B
3: aload 0
aload 2
invokevirtual org.bouncycastle.crypto.params.KDFParameters.getIV:()[B
putfield org.bouncycastle.crypto.generators.BaseKDFBytesGenerator.iv:[B
end local 2 4: goto 11
5: StackMap locals:
StackMap stack:
aload 1
instanceof org.bouncycastle.crypto.params.ISO18033KDFParameters
ifeq 10
6: aload 1
checkcast org.bouncycastle.crypto.params.ISO18033KDFParameters
astore 2
start local 2 7: aload 0
aload 2
invokevirtual org.bouncycastle.crypto.params.ISO18033KDFParameters.getSeed:()[B
putfield org.bouncycastle.crypto.generators.BaseKDFBytesGenerator.shared:[B
8: aload 0
aconst_null
putfield org.bouncycastle.crypto.generators.BaseKDFBytesGenerator.iv:[B
end local 2 9: goto 11
10: StackMap locals:
StackMap stack:
new java.lang.IllegalArgumentException
dup
ldc "KDF parameters required for KDF2Generator"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
11: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lorg/bouncycastle/crypto/generators/BaseKDFBytesGenerator;
0 12 1 param Lorg/bouncycastle/crypto/DerivationParameters;
2 4 2 p Lorg/bouncycastle/crypto/params/KDFParameters;
7 9 2 p Lorg/bouncycastle/crypto/params/ISO18033KDFParameters;
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.BaseKDFBytesGenerator.digest:Lorg/bouncycastle/crypto/Digest;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bouncycastle/crypto/generators/BaseKDFBytesGenerator;
public int generateBytes(byte[], int, int);
descriptor: ([BII)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=11, 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.DataLengthException
dup
ldc "output buffer too small"
invokespecial org.bouncycastle.crypto.DataLengthException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
iload 3
i2l
lstore 4
start local 4 3: aload 0
getfield org.bouncycastle.crypto.generators.BaseKDFBytesGenerator.digest:Lorg/bouncycastle/crypto/Digest;
invokeinterface org.bouncycastle.crypto.Digest.getDigestSize:()I
istore 6
start local 6 4: lload 4
ldc 8589934591
lcmp
ifle 6
5: new java.lang.IllegalArgumentException
dup
ldc "Output length too large"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
6: StackMap locals: long int
StackMap stack:
lload 4
iload 6
i2l
ladd
lconst_1
lsub
iload 6
i2l
ldiv
l2i
istore 7
start local 7 7: aconst_null
astore 8
start local 8 8: aload 0
getfield org.bouncycastle.crypto.generators.BaseKDFBytesGenerator.digest:Lorg/bouncycastle/crypto/Digest;
invokeinterface org.bouncycastle.crypto.Digest.getDigestSize:()I
newarray 8
astore 8
9: aload 0
getfield org.bouncycastle.crypto.generators.BaseKDFBytesGenerator.counterStart:I
istore 9
start local 9 10: iconst_0
istore 10
start local 10 11: goto 28
12: StackMap locals: org.bouncycastle.crypto.generators.BaseKDFBytesGenerator byte[] int int long int int byte[] int int
StackMap stack:
aload 0
getfield org.bouncycastle.crypto.generators.BaseKDFBytesGenerator.digest:Lorg/bouncycastle/crypto/Digest;
aload 0
getfield org.bouncycastle.crypto.generators.BaseKDFBytesGenerator.shared:[B
iconst_0
aload 0
getfield org.bouncycastle.crypto.generators.BaseKDFBytesGenerator.shared:[B
arraylength
invokeinterface org.bouncycastle.crypto.Digest.update:([BII)V
13: aload 0
getfield org.bouncycastle.crypto.generators.BaseKDFBytesGenerator.digest:Lorg/bouncycastle/crypto/Digest;
iload 9
bipush 24
ishr
i2b
invokeinterface org.bouncycastle.crypto.Digest.update:(B)V
14: aload 0
getfield org.bouncycastle.crypto.generators.BaseKDFBytesGenerator.digest:Lorg/bouncycastle/crypto/Digest;
iload 9
bipush 16
ishr
i2b
invokeinterface org.bouncycastle.crypto.Digest.update:(B)V
15: aload 0
getfield org.bouncycastle.crypto.generators.BaseKDFBytesGenerator.digest:Lorg/bouncycastle/crypto/Digest;
iload 9
bipush 8
ishr
i2b
invokeinterface org.bouncycastle.crypto.Digest.update:(B)V
16: aload 0
getfield org.bouncycastle.crypto.generators.BaseKDFBytesGenerator.digest:Lorg/bouncycastle/crypto/Digest;
iload 9
i2b
invokeinterface org.bouncycastle.crypto.Digest.update:(B)V
17: aload 0
getfield org.bouncycastle.crypto.generators.BaseKDFBytesGenerator.iv:[B
ifnull 19
18: aload 0
getfield org.bouncycastle.crypto.generators.BaseKDFBytesGenerator.digest:Lorg/bouncycastle/crypto/Digest;
aload 0
getfield org.bouncycastle.crypto.generators.BaseKDFBytesGenerator.iv:[B
iconst_0
aload 0
getfield org.bouncycastle.crypto.generators.BaseKDFBytesGenerator.iv:[B
arraylength
invokeinterface org.bouncycastle.crypto.Digest.update:([BII)V
19: StackMap locals:
StackMap stack:
aload 0
getfield org.bouncycastle.crypto.generators.BaseKDFBytesGenerator.digest:Lorg/bouncycastle/crypto/Digest;
aload 8
iconst_0
invokeinterface org.bouncycastle.crypto.Digest.doFinal:([BI)I
pop
20: iload 3
iload 6
if_icmple 25
21: aload 8
iconst_0
aload 1
iload 2
iload 6
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
22: iload 2
iload 6
iadd
istore 2
23: iload 3
iload 6
isub
istore 3
24: goto 26
25: StackMap locals:
StackMap stack:
aload 8
iconst_0
aload 1
iload 2
iload 3
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
26: StackMap locals:
StackMap stack:
iinc 9 1
27: iinc 10 1
StackMap locals:
StackMap stack:
28: iload 10
iload 7
if_icmplt 12
end local 10 29: aload 0
getfield org.bouncycastle.crypto.generators.BaseKDFBytesGenerator.digest:Lorg/bouncycastle/crypto/Digest;
invokeinterface org.bouncycastle.crypto.Digest.reset:()V
30: iload 3
ireturn
end local 9 end local 8 end local 7 end local 6 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 31 0 this Lorg/bouncycastle/crypto/generators/BaseKDFBytesGenerator;
0 31 1 out [B
0 31 2 outOff I
0 31 3 len I
3 31 4 oBytes J
4 31 6 outLen I
7 31 7 cThreshold I
8 31 8 dig [B
10 31 9 counter I
11 29 10 i I
Exceptions:
throws org.bouncycastle.crypto.DataLengthException, java.lang.IllegalArgumentException
MethodParameters:
Name Flags
out
outOff
len
}
SourceFile: "BaseKDFBytesGenerator.java"