public class org.bouncycastle.crypto.generators.PKCS5S2ParametersGenerator extends org.bouncycastle.crypto.PBEParametersGenerator
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.bouncycastle.crypto.generators.PKCS5S2ParametersGenerator
super_class: org.bouncycastle.crypto.PBEParametersGenerator
{
private org.bouncycastle.crypto.Mac hMac;
descriptor: Lorg/bouncycastle/crypto/Mac;
flags: (0x0002) ACC_PRIVATE
private byte[] state;
descriptor: [B
flags: (0x0002) ACC_PRIVATE
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokestatic org.bouncycastle.crypto.util.DigestFactory.createSHA1:()Lorg/bouncycastle/crypto/Digest;
invokespecial org.bouncycastle.crypto.generators.PKCS5S2ParametersGenerator.<init>:(Lorg/bouncycastle/crypto/Digest;)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/bouncycastle/crypto/generators/PKCS5S2ParametersGenerator;
public void <init>(org.bouncycastle.crypto.Digest);
descriptor: (Lorg/bouncycastle/crypto/Digest;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial org.bouncycastle.crypto.PBEParametersGenerator.<init>:()V
1: aload 0
new org.bouncycastle.crypto.macs.HMac
dup
aload 1
invokespecial org.bouncycastle.crypto.macs.HMac.<init>:(Lorg/bouncycastle/crypto/Digest;)V
putfield org.bouncycastle.crypto.generators.PKCS5S2ParametersGenerator.hMac:Lorg/bouncycastle/crypto/Mac;
2: aload 0
aload 0
getfield org.bouncycastle.crypto.generators.PKCS5S2ParametersGenerator.hMac:Lorg/bouncycastle/crypto/Mac;
invokeinterface org.bouncycastle.crypto.Mac.getMacSize:()I
newarray 8
putfield org.bouncycastle.crypto.generators.PKCS5S2ParametersGenerator.state:[B
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/bouncycastle/crypto/generators/PKCS5S2ParametersGenerator;
0 4 1 digest Lorg/bouncycastle/crypto/Digest;
MethodParameters:
Name Flags
digest
private void F(byte[], int, byte[], byte[], int);
descriptor: ([BI[B[BI)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=8, args_size=6
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 0: iload 2
ifne 2
1: new java.lang.IllegalArgumentException
dup
ldc "iteration count must be at least 1."
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 1
ifnull 4
3: aload 0
getfield org.bouncycastle.crypto.generators.PKCS5S2ParametersGenerator.hMac:Lorg/bouncycastle/crypto/Mac;
aload 1
iconst_0
aload 1
arraylength
invokeinterface org.bouncycastle.crypto.Mac.update:([BII)V
4: StackMap locals:
StackMap stack:
aload 0
getfield org.bouncycastle.crypto.generators.PKCS5S2ParametersGenerator.hMac:Lorg/bouncycastle/crypto/Mac;
aload 3
iconst_0
aload 3
arraylength
invokeinterface org.bouncycastle.crypto.Mac.update:([BII)V
5: aload 0
getfield org.bouncycastle.crypto.generators.PKCS5S2ParametersGenerator.hMac:Lorg/bouncycastle/crypto/Mac;
aload 0
getfield org.bouncycastle.crypto.generators.PKCS5S2ParametersGenerator.state:[B
iconst_0
invokeinterface org.bouncycastle.crypto.Mac.doFinal:([BI)I
pop
6: aload 0
getfield org.bouncycastle.crypto.generators.PKCS5S2ParametersGenerator.state:[B
iconst_0
aload 4
iload 5
aload 0
getfield org.bouncycastle.crypto.generators.PKCS5S2ParametersGenerator.state:[B
arraylength
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
7: iconst_1
istore 6
start local 6 8: goto 17
9: StackMap locals: int
StackMap stack:
aload 0
getfield org.bouncycastle.crypto.generators.PKCS5S2ParametersGenerator.hMac:Lorg/bouncycastle/crypto/Mac;
aload 0
getfield org.bouncycastle.crypto.generators.PKCS5S2ParametersGenerator.state:[B
iconst_0
aload 0
getfield org.bouncycastle.crypto.generators.PKCS5S2ParametersGenerator.state:[B
arraylength
invokeinterface org.bouncycastle.crypto.Mac.update:([BII)V
10: aload 0
getfield org.bouncycastle.crypto.generators.PKCS5S2ParametersGenerator.hMac:Lorg/bouncycastle/crypto/Mac;
aload 0
getfield org.bouncycastle.crypto.generators.PKCS5S2ParametersGenerator.state:[B
iconst_0
invokeinterface org.bouncycastle.crypto.Mac.doFinal:([BI)I
pop
11: iconst_0
istore 7
start local 7 12: goto 15
13: StackMap locals: int
StackMap stack:
aload 4
iload 5
iload 7
iadd
dup2
baload
aload 0
getfield org.bouncycastle.crypto.generators.PKCS5S2ParametersGenerator.state:[B
iload 7
baload
ixor
i2b
bastore
14: iinc 7 1
StackMap locals:
StackMap stack:
15: iload 7
aload 0
getfield org.bouncycastle.crypto.generators.PKCS5S2ParametersGenerator.state:[B
arraylength
if_icmpne 13
end local 7 16: iinc 6 1
StackMap locals:
StackMap stack:
17: iload 6
iload 2
if_icmplt 9
end local 6 18: return
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 19 0 this Lorg/bouncycastle/crypto/generators/PKCS5S2ParametersGenerator;
0 19 1 S [B
0 19 2 c I
0 19 3 iBuf [B
0 19 4 out [B
0 19 5 outOff I
8 18 6 count I
12 16 7 j I
MethodParameters:
Name Flags
S
c
iBuf
out
outOff
private byte[] generateDerivedKey(int);
descriptor: (I)[B
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=10, args_size=2
start local 0 start local 1 0: aload 0
getfield org.bouncycastle.crypto.generators.PKCS5S2ParametersGenerator.hMac:Lorg/bouncycastle/crypto/Mac;
invokeinterface org.bouncycastle.crypto.Mac.getMacSize:()I
istore 2
start local 2 1: iload 1
iload 2
iadd
iconst_1
isub
iload 2
idiv
istore 3
start local 3 2: iconst_4
newarray 8
astore 4
start local 4 3: iload 3
iload 2
imul
newarray 8
astore 5
start local 5 4: iconst_0
istore 6
start local 6 5: new org.bouncycastle.crypto.params.KeyParameter
dup
aload 0
getfield org.bouncycastle.crypto.generators.PKCS5S2ParametersGenerator.password:[B
invokespecial org.bouncycastle.crypto.params.KeyParameter.<init>:([B)V
astore 7
start local 7 6: aload 0
getfield org.bouncycastle.crypto.generators.PKCS5S2ParametersGenerator.hMac:Lorg/bouncycastle/crypto/Mac;
aload 7
invokeinterface org.bouncycastle.crypto.Mac.init:(Lorg/bouncycastle/crypto/CipherParameters;)V
7: iconst_1
istore 8
start local 8 8: goto 16
9: StackMap locals: org.bouncycastle.crypto.generators.PKCS5S2ParametersGenerator int int int byte[] byte[] int org.bouncycastle.crypto.CipherParameters int
StackMap stack:
iconst_3
istore 9
start local 9 10: goto 12
11: StackMap locals: int
StackMap stack:
iinc 9 -1
12: StackMap locals:
StackMap stack:
aload 4
iload 9
dup2
baload
iconst_1
iadd
i2b
dup_x2
bastore
ifeq 11
13: aload 0
aload 0
getfield org.bouncycastle.crypto.generators.PKCS5S2ParametersGenerator.salt:[B
aload 0
getfield org.bouncycastle.crypto.generators.PKCS5S2ParametersGenerator.iterationCount:I
aload 4
aload 5
iload 6
invokevirtual org.bouncycastle.crypto.generators.PKCS5S2ParametersGenerator.F:([BI[B[BI)V
14: iload 6
iload 2
iadd
istore 6
end local 9 15: iinc 8 1
StackMap locals:
StackMap stack:
16: iload 8
iload 3
if_icmple 9
end local 8 17: aload 5
areturn
end local 7 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 18 0 this Lorg/bouncycastle/crypto/generators/PKCS5S2ParametersGenerator;
0 18 1 dkLen I
1 18 2 hLen I
2 18 3 l I
3 18 4 iBuf [B
4 18 5 outBytes [B
5 18 6 outPos I
6 18 7 param Lorg/bouncycastle/crypto/CipherParameters;
8 17 8 i I
10 15 9 pos I
MethodParameters:
Name Flags
dkLen
public org.bouncycastle.crypto.CipherParameters generateDerivedParameters(int);
descriptor: (I)Lorg/bouncycastle/crypto/CipherParameters;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: iload 1
bipush 8
idiv
istore 1
1: aload 0
iload 1
invokevirtual org.bouncycastle.crypto.generators.PKCS5S2ParametersGenerator.generateDerivedKey:(I)[B
iconst_0
iload 1
invokestatic org.bouncycastle.util.Arrays.copyOfRange:([BII)[B
astore 2
start local 2 2: new org.bouncycastle.crypto.params.KeyParameter
dup
aload 2
iconst_0
iload 1
invokespecial org.bouncycastle.crypto.params.KeyParameter.<init>:([BII)V
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/bouncycastle/crypto/generators/PKCS5S2ParametersGenerator;
0 3 1 keySize I
2 3 2 dKey [B
MethodParameters:
Name Flags
keySize
public org.bouncycastle.crypto.CipherParameters generateDerivedParameters(int, int);
descriptor: (II)Lorg/bouncycastle/crypto/CipherParameters;
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=4, args_size=3
start local 0 start local 1 start local 2 0: iload 1
bipush 8
idiv
istore 1
1: iload 2
bipush 8
idiv
istore 2
2: aload 0
iload 1
iload 2
iadd
invokevirtual org.bouncycastle.crypto.generators.PKCS5S2ParametersGenerator.generateDerivedKey:(I)[B
astore 3
start local 3 3: new org.bouncycastle.crypto.params.ParametersWithIV
dup
new org.bouncycastle.crypto.params.KeyParameter
dup
aload 3
iconst_0
iload 1
invokespecial org.bouncycastle.crypto.params.KeyParameter.<init>:([BII)V
aload 3
iload 1
iload 2
invokespecial org.bouncycastle.crypto.params.ParametersWithIV.<init>:(Lorg/bouncycastle/crypto/CipherParameters;[BII)V
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/bouncycastle/crypto/generators/PKCS5S2ParametersGenerator;
0 4 1 keySize I
0 4 2 ivSize I
3 4 3 dKey [B
MethodParameters:
Name Flags
keySize
ivSize
public org.bouncycastle.crypto.CipherParameters generateDerivedMacParameters(int);
descriptor: (I)Lorg/bouncycastle/crypto/CipherParameters;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
invokevirtual org.bouncycastle.crypto.generators.PKCS5S2ParametersGenerator.generateDerivedParameters:(I)Lorg/bouncycastle/crypto/CipherParameters;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bouncycastle/crypto/generators/PKCS5S2ParametersGenerator;
0 1 1 keySize I
MethodParameters:
Name Flags
keySize
}
SourceFile: "PKCS5S2ParametersGenerator.java"