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
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=1, args_size=1
start local 0 0: aload 0
invokespecial org.bouncycastle.crypto.PBEParametersGenerator.<init>:()V
1: aload 0
new org.bouncycastle.crypto.macs.HMac
dup
new org.bouncycastle.crypto.digests.SHA1Digest
dup
invokespecial org.bouncycastle.crypto.digests.SHA1Digest.<init>:()V
invokespecial org.bouncycastle.crypto.macs.HMac.<init>:(Lorg/bouncycastle/crypto/Digest;)V
putfield org.bouncycastle.crypto.generators.PKCS5S2ParametersGenerator.hMac:Lorg/bouncycastle/crypto/Mac;
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/bouncycastle/crypto/generators/PKCS5S2ParametersGenerator;
private void F(byte[], byte[], int, byte[], byte[], int);
descriptor: ([B[BI[B[BI)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=11, args_size=7
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 start local 6 0: aload 0
getfield org.bouncycastle.crypto.generators.PKCS5S2ParametersGenerator.hMac:Lorg/bouncycastle/crypto/Mac;
invokeinterface org.bouncycastle.crypto.Mac.getMacSize:()I
newarray 8
astore 7
start local 7 1: new org.bouncycastle.crypto.params.KeyParameter
dup
aload 1
invokespecial org.bouncycastle.crypto.params.KeyParameter.<init>:([B)V
astore 8
start local 8 2: aload 0
getfield org.bouncycastle.crypto.generators.PKCS5S2ParametersGenerator.hMac:Lorg/bouncycastle/crypto/Mac;
aload 8
invokeinterface org.bouncycastle.crypto.Mac.init:(Lorg/bouncycastle/crypto/CipherParameters;)V
3: aload 2
ifnull 5
4: aload 0
getfield org.bouncycastle.crypto.generators.PKCS5S2ParametersGenerator.hMac:Lorg/bouncycastle/crypto/Mac;
aload 2
iconst_0
aload 2
arraylength
invokeinterface org.bouncycastle.crypto.Mac.update:([BII)V
5: StackMap locals: byte[] org.bouncycastle.crypto.CipherParameters
StackMap stack:
aload 0
getfield org.bouncycastle.crypto.generators.PKCS5S2ParametersGenerator.hMac:Lorg/bouncycastle/crypto/Mac;
aload 4
iconst_0
aload 4
arraylength
invokeinterface org.bouncycastle.crypto.Mac.update:([BII)V
6: aload 0
getfield org.bouncycastle.crypto.generators.PKCS5S2ParametersGenerator.hMac:Lorg/bouncycastle/crypto/Mac;
aload 7
iconst_0
invokeinterface org.bouncycastle.crypto.Mac.doFinal:([BI)I
pop
7: aload 7
iconst_0
aload 5
iload 6
aload 7
arraylength
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
8: iload 3
ifne 10
9: new java.lang.IllegalArgumentException
dup
ldc "iteration count must be at least 1."
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
10: StackMap locals:
StackMap stack:
iconst_1
istore 9
start local 9 11: goto 21
12: StackMap locals: int
StackMap stack:
aload 0
getfield org.bouncycastle.crypto.generators.PKCS5S2ParametersGenerator.hMac:Lorg/bouncycastle/crypto/Mac;
aload 8
invokeinterface org.bouncycastle.crypto.Mac.init:(Lorg/bouncycastle/crypto/CipherParameters;)V
13: aload 0
getfield org.bouncycastle.crypto.generators.PKCS5S2ParametersGenerator.hMac:Lorg/bouncycastle/crypto/Mac;
aload 7
iconst_0
aload 7
arraylength
invokeinterface org.bouncycastle.crypto.Mac.update:([BII)V
14: aload 0
getfield org.bouncycastle.crypto.generators.PKCS5S2ParametersGenerator.hMac:Lorg/bouncycastle/crypto/Mac;
aload 7
iconst_0
invokeinterface org.bouncycastle.crypto.Mac.doFinal:([BI)I
pop
15: iconst_0
istore 10
start local 10 16: goto 19
17: StackMap locals: int
StackMap stack:
aload 5
iload 6
iload 10
iadd
dup2
baload
aload 7
iload 10
baload
ixor
i2b
bastore
18: iinc 10 1
StackMap locals:
StackMap stack:
19: iload 10
aload 7
arraylength
if_icmpne 17
end local 10 20: iinc 9 1
StackMap locals:
StackMap stack:
21: iload 9
iload 3
if_icmplt 12
end local 9 22: return
end local 8 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 23 0 this Lorg/bouncycastle/crypto/generators/PKCS5S2ParametersGenerator;
0 23 1 P [B
0 23 2 S [B
0 23 3 c I
0 23 4 iBuf [B
0 23 5 out [B
0 23 6 outOff I
1 23 7 state [B
2 23 8 param Lorg/bouncycastle/crypto/CipherParameters;
11 22 9 count I
16 20 10 j I
MethodParameters:
Name Flags
P
S
c
iBuf
out
outOff
private void intToOctet(byte[], int);
descriptor: ([BI)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 1
iconst_0
iload 2
bipush 24
iushr
i2b
bastore
1: aload 1
iconst_1
iload 2
bipush 16
iushr
i2b
bastore
2: aload 1
iconst_2
iload 2
bipush 8
iushr
i2b
bastore
3: aload 1
iconst_3
iload 2
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/PKCS5S2ParametersGenerator;
0 5 1 buf [B
0 5 2 i I
MethodParameters:
Name Flags
buf
i
private byte[] generateDerivedKey(int);
descriptor: (I)[B
flags: (0x0002) ACC_PRIVATE
Code:
stack=8, locals=7, 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_1
istore 6
start local 6 5: goto 9
6: StackMap locals: org.bouncycastle.crypto.generators.PKCS5S2ParametersGenerator int int int byte[] byte[] int
StackMap stack:
aload 0
aload 4
iload 6
invokevirtual org.bouncycastle.crypto.generators.PKCS5S2ParametersGenerator.intToOctet:([BI)V
7: aload 0
aload 0
getfield org.bouncycastle.crypto.generators.PKCS5S2ParametersGenerator.password:[B
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
iconst_1
isub
iload 2
imul
invokevirtual org.bouncycastle.crypto.generators.PKCS5S2ParametersGenerator.F:([B[BI[B[BI)V
8: iinc 6 1
StackMap locals:
StackMap stack:
9: iload 6
iload 3
if_icmple 6
end local 6 10: aload 5
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 11 0 this Lorg/bouncycastle/crypto/generators/PKCS5S2ParametersGenerator;
0 11 1 dkLen I
1 11 2 hLen I
2 11 3 l I
3 11 4 iBuf [B
4 11 5 out [B
5 10 6 i 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
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"