final class com.sun.crypto.provider.PBKDF2KeyImpl implements javax.crypto.interfaces.PBEKey
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: com.sun.crypto.provider.PBKDF2KeyImpl
super_class: java.lang.Object
{
static final long serialVersionUID;
descriptor: J
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: -2234868909660948157
private char[] passwd;
descriptor: [C
flags: (0x0002) ACC_PRIVATE
private byte[] salt;
descriptor: [B
flags: (0x0002) ACC_PRIVATE
private int iterCount;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private byte[] key;
descriptor: [B
flags: (0x0002) ACC_PRIVATE
private javax.crypto.Mac prf;
descriptor: Ljavax/crypto/Mac;
flags: (0x0002) ACC_PRIVATE
private static byte[] getPasswordBytes(char[]);
descriptor: ([C)[B
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=6, args_size=1
start local 0 0: ldc "UTF-8"
invokestatic java.nio.charset.Charset.forName:(Ljava/lang/String;)Ljava/nio/charset/Charset;
astore 1
start local 1 1: aload 0
invokestatic java.nio.CharBuffer.wrap:([C)Ljava/nio/CharBuffer;
astore 2
start local 2 2: aload 1
aload 2
invokevirtual java.nio.charset.Charset.encode:(Ljava/nio/CharBuffer;)Ljava/nio/ByteBuffer;
astore 3
start local 3 3: aload 3
invokevirtual java.nio.ByteBuffer.limit:()I
istore 4
start local 4 4: iload 4
newarray 8
astore 5
start local 5 5: aload 3
aload 5
iconst_0
iload 4
invokevirtual java.nio.ByteBuffer.get:([BII)Ljava/nio/ByteBuffer;
pop
6: 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 7 0 passwd [C
1 7 1 utf8 Ljava/nio/charset/Charset;
2 7 2 cb Ljava/nio/CharBuffer;
3 7 3 bb Ljava/nio/ByteBuffer;
4 7 4 len I
5 7 5 passwdBytes [B
MethodParameters:
Name Flags
passwd
void <init>(javax.crypto.spec.PBEKeySpec, java.lang.String);
descriptor: (Ljavax/crypto/spec/PBEKeySpec;Ljava/lang/String;)V
flags: (0x0000)
Code:
stack=6, locals=8, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 1
invokevirtual javax.crypto.spec.PBEKeySpec.getPassword:()[C
astore 3
start local 3 2: aload 3
ifnonnull 5
3: aload 0
iconst_0
newarray 5
putfield com.sun.crypto.provider.PBKDF2KeyImpl.passwd:[C
4: goto 6
5: StackMap locals: com.sun.crypto.provider.PBKDF2KeyImpl javax.crypto.spec.PBEKeySpec java.lang.String char[]
StackMap stack:
aload 0
aload 3
invokevirtual char[].clone:()Ljava/lang/Object;
checkcast char[]
putfield com.sun.crypto.provider.PBKDF2KeyImpl.passwd:[C
6: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.crypto.provider.PBKDF2KeyImpl.passwd:[C
invokestatic com.sun.crypto.provider.PBKDF2KeyImpl.getPasswordBytes:([C)[B
astore 4
start local 4 7: aload 0
aload 1
invokevirtual javax.crypto.spec.PBEKeySpec.getSalt:()[B
putfield com.sun.crypto.provider.PBKDF2KeyImpl.salt:[B
8: aload 0
getfield com.sun.crypto.provider.PBKDF2KeyImpl.salt:[B
ifnonnull 10
9: new java.security.spec.InvalidKeySpecException
dup
ldc "Salt not found"
invokespecial java.security.spec.InvalidKeySpecException.<init>:(Ljava/lang/String;)V
athrow
10: StackMap locals: byte[]
StackMap stack:
aload 0
aload 1
invokevirtual javax.crypto.spec.PBEKeySpec.getIterationCount:()I
putfield com.sun.crypto.provider.PBKDF2KeyImpl.iterCount:I
11: aload 0
getfield com.sun.crypto.provider.PBKDF2KeyImpl.iterCount:I
ifne 13
12: new java.security.spec.InvalidKeySpecException
dup
ldc "Iteration count not found"
invokespecial java.security.spec.InvalidKeySpecException.<init>:(Ljava/lang/String;)V
athrow
13: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.crypto.provider.PBKDF2KeyImpl.iterCount:I
ifge 15
14: new java.security.spec.InvalidKeySpecException
dup
ldc "Iteration count is negative"
invokespecial java.security.spec.InvalidKeySpecException.<init>:(Ljava/lang/String;)V
athrow
15: StackMap locals:
StackMap stack:
aload 1
invokevirtual javax.crypto.spec.PBEKeySpec.getKeyLength:()I
istore 5
start local 5 16: iload 5
ifne 18
17: new java.security.spec.InvalidKeySpecException
dup
ldc "Key length not found"
invokespecial java.security.spec.InvalidKeySpecException.<init>:(Ljava/lang/String;)V
athrow
18: StackMap locals: int
StackMap stack:
iload 5
ifne 20
19: new java.security.spec.InvalidKeySpecException
dup
ldc "Key length is negative"
invokespecial java.security.spec.InvalidKeySpecException.<init>:(Ljava/lang/String;)V
athrow
20: StackMap locals:
StackMap stack:
aload 0
aload 2
ldc "SunJCE"
invokestatic javax.crypto.Mac.getInstance:(Ljava/lang/String;Ljava/lang/String;)Ljavax/crypto/Mac;
putfield com.sun.crypto.provider.PBKDF2KeyImpl.prf:Ljavax/crypto/Mac;
21: goto 30
StackMap locals:
StackMap stack: java.security.NoSuchAlgorithmException
22: astore 6
start local 6 23: new java.security.spec.InvalidKeySpecException
dup
invokespecial java.security.spec.InvalidKeySpecException.<init>:()V
astore 7
start local 7 24: aload 7
aload 6
invokevirtual java.security.spec.InvalidKeySpecException.initCause:(Ljava/lang/Throwable;)Ljava/lang/Throwable;
pop
25: aload 7
athrow
end local 7 end local 6 26: StackMap locals:
StackMap stack: java.security.NoSuchProviderException
astore 6
start local 6 27: new java.security.spec.InvalidKeySpecException
dup
invokespecial java.security.spec.InvalidKeySpecException.<init>:()V
astore 7
start local 7 28: aload 7
aload 6
invokevirtual java.security.spec.InvalidKeySpecException.initCause:(Ljava/lang/Throwable;)Ljava/lang/Throwable;
pop
29: aload 7
athrow
end local 7 end local 6 30: StackMap locals:
StackMap stack:
aload 0
aload 0
getfield com.sun.crypto.provider.PBKDF2KeyImpl.prf:Ljavax/crypto/Mac;
aload 4
aload 0
getfield com.sun.crypto.provider.PBKDF2KeyImpl.salt:[B
aload 0
getfield com.sun.crypto.provider.PBKDF2KeyImpl.iterCount:I
iload 5
invokestatic com.sun.crypto.provider.PBKDF2KeyImpl.deriveKey:(Ljavax/crypto/Mac;[B[BII)[B
putfield com.sun.crypto.provider.PBKDF2KeyImpl.key:[B
31: 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 32 0 this Lcom/sun/crypto/provider/PBKDF2KeyImpl;
0 32 1 keySpec Ljavax/crypto/spec/PBEKeySpec;
0 32 2 prfAlgo Ljava/lang/String;
2 32 3 passwd [C
7 32 4 passwdBytes [B
16 32 5 keyLength I
23 26 6 nsae Ljava/security/NoSuchAlgorithmException;
24 26 7 ike Ljava/security/spec/InvalidKeySpecException;
27 30 6 nspe Ljava/security/NoSuchProviderException;
28 30 7 ike Ljava/security/spec/InvalidKeySpecException;
Exception table:
from to target type
20 21 22 Class java.security.NoSuchAlgorithmException
20 21 26 Class java.security.NoSuchProviderException
Exceptions:
throws java.security.spec.InvalidKeySpecException
MethodParameters:
Name Flags
keySpec
prfAlgo
private static byte[] deriveKey(javax.crypto.Mac, byte[], byte[], int, int);
descriptor: (Ljavax/crypto/Mac;[B[BII)[B
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=17, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: iload 4
bipush 8
idiv
istore 5
start local 5 1: iload 5
newarray 8
astore 6
start local 6 2: aload 0
invokevirtual javax.crypto.Mac.getMacLength:()I
istore 7
start local 7 3: iload 5
iload 7
iadd
iconst_1
isub
iload 7
idiv
istore 8
start local 8 4: iload 5
iload 8
iconst_1
isub
iload 7
imul
isub
istore 9
start local 9 5: iload 7
newarray 8
astore 10
start local 10 6: iload 7
newarray 8
astore 11
start local 11 7: new javax.crypto.spec.SecretKeySpec
dup
aload 1
aload 0
invokevirtual javax.crypto.Mac.getAlgorithm:()Ljava/lang/String;
invokespecial javax.crypto.spec.SecretKeySpec.<init>:([BLjava/lang/String;)V
astore 12
start local 12 8: aload 0
aload 12
invokevirtual javax.crypto.Mac.init:(Ljava/security/Key;)V
9: iconst_4
newarray 8
astore 13
start local 13 10: iconst_1
istore 14
start local 14 11: goto 36
12: StackMap locals: javax.crypto.Mac byte[] byte[] int int int byte[] int int int byte[] byte[] javax.crypto.SecretKey byte[] int
StackMap stack:
aload 0
aload 2
invokevirtual javax.crypto.Mac.update:([B)V
13: aload 13
iconst_3
iload 14
i2b
bastore
14: aload 13
iconst_2
iload 14
bipush 8
ishr
sipush 255
iand
i2b
bastore
15: aload 13
iconst_1
iload 14
bipush 16
ishr
sipush 255
iand
i2b
bastore
16: aload 13
iconst_0
iload 14
bipush 24
ishr
sipush 255
iand
i2b
bastore
17: aload 0
aload 13
invokevirtual javax.crypto.Mac.update:([B)V
18: aload 0
aload 10
iconst_0
invokevirtual javax.crypto.Mac.doFinal:([BI)V
19: aload 10
iconst_0
aload 11
iconst_0
aload 10
arraylength
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
20: iconst_2
istore 15
start local 15 21: goto 30
22: StackMap locals: int
StackMap stack:
aload 0
aload 10
invokevirtual javax.crypto.Mac.update:([B)V
23: aload 0
aload 10
iconst_0
invokevirtual javax.crypto.Mac.doFinal:([BI)V
24: iconst_0
istore 16
start local 16 25: goto 28
26: StackMap locals: int
StackMap stack:
aload 11
iload 16
dup2
baload
aload 10
iload 16
baload
ixor
i2b
bastore
27: iinc 16 1
StackMap locals:
StackMap stack:
28: iload 16
aload 10
arraylength
if_icmplt 26
end local 16 29: iinc 15 1
StackMap locals:
StackMap stack:
30: iload 15
iload 3
if_icmple 22
end local 15 31: iload 14
iload 8
if_icmpne 34
32: aload 11
iconst_0
aload 6
iload 14
iconst_1
isub
iload 7
imul
iload 9
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
33: goto 35
34: StackMap locals:
StackMap stack:
aload 11
iconst_0
aload 6
iload 14
iconst_1
isub
iload 7
imul
iload 7
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
35: StackMap locals:
StackMap stack:
iinc 14 1
StackMap locals:
StackMap stack:
36: iload 14
iload 8
if_icmple 12
end local 14 end local 13 end local 12 end local 11 end local 10 end local 9 end local 8 end local 7 37: goto 40
StackMap locals: javax.crypto.Mac byte[] byte[] int int int byte[]
StackMap stack: java.security.GeneralSecurityException
38: pop
39: new java.lang.RuntimeException
dup
ldc "Error deriving PBKDF2 keys"
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;)V
athrow
40: StackMap locals:
StackMap stack:
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 41 0 prf Ljavax/crypto/Mac;
0 41 1 password [B
0 41 2 salt [B
0 41 3 iterCount I
0 41 4 keyLengthInBit I
1 41 5 keyLength I
2 41 6 key [B
3 37 7 hlen I
4 37 8 intL I
5 37 9 intR I
6 37 10 ui [B
7 37 11 ti [B
8 37 12 macKey Ljavax/crypto/SecretKey;
10 37 13 ibytes [B
11 37 14 i I
21 31 15 j I
25 29 16 k I
Exception table:
from to target type
2 37 38 Class java.security.GeneralSecurityException
MethodParameters:
Name Flags
prf
password
salt
iterCount
keyLengthInBit
public synchronized byte[] getEncoded();
descriptor: ()[B
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.sun.crypto.provider.PBKDF2KeyImpl.key:[B
invokevirtual byte[].clone:()Ljava/lang/Object;
checkcast byte[]
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/sun/crypto/provider/PBKDF2KeyImpl;
public java.lang.String getAlgorithm();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.lang.StringBuilder
dup
ldc "PBKDF2With"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield com.sun.crypto.provider.PBKDF2KeyImpl.prf:Ljavax/crypto/Mac;
invokevirtual javax.crypto.Mac.getAlgorithm:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/sun/crypto/provider/PBKDF2KeyImpl;
public int getIterationCount();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.sun.crypto.provider.PBKDF2KeyImpl.iterCount:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/sun/crypto/provider/PBKDF2KeyImpl;
public synchronized char[] getPassword();
descriptor: ()[C
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.sun.crypto.provider.PBKDF2KeyImpl.passwd:[C
invokevirtual char[].clone:()Ljava/lang/Object;
checkcast char[]
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/sun/crypto/provider/PBKDF2KeyImpl;
public byte[] getSalt();
descriptor: ()[B
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.sun.crypto.provider.PBKDF2KeyImpl.salt:[B
invokevirtual byte[].clone:()Ljava/lang/Object;
checkcast byte[]
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/sun/crypto/provider/PBKDF2KeyImpl;
public java.lang.String getFormat();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: ldc "RAW"
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/sun/crypto/provider/PBKDF2KeyImpl;
public int hashCode();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=1
start local 0 0: iconst_0
istore 1
start local 1 1: iconst_1
istore 2
start local 2 2: goto 5
3: StackMap locals: int int
StackMap stack:
iload 1
aload 0
getfield com.sun.crypto.provider.PBKDF2KeyImpl.key:[B
iload 2
baload
iload 2
imul
iadd
istore 1
4: iinc 2 1
StackMap locals:
StackMap stack:
5: iload 2
aload 0
getfield com.sun.crypto.provider.PBKDF2KeyImpl.key:[B
arraylength
if_icmplt 3
end local 2 6: iload 1
aload 0
invokevirtual com.sun.crypto.provider.PBKDF2KeyImpl.getAlgorithm:()Ljava/lang/String;
invokevirtual java.lang.String.toLowerCase:()Ljava/lang/String;
invokevirtual java.lang.String.hashCode:()I
ixor
dup
istore 1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lcom/sun/crypto/provider/PBKDF2KeyImpl;
1 7 1 retval I
2 6 2 i I
public boolean equals(java.lang.Object);
descriptor: (Ljava/lang/Object;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=5, args_size=2
start local 0 start local 1 0: aload 1
aload 0
if_acmpne 2
1: iconst_1
ireturn
2: StackMap locals:
StackMap stack:
aload 1
instanceof javax.crypto.SecretKey
ifne 4
3: iconst_0
ireturn
4: StackMap locals:
StackMap stack:
aload 1
checkcast javax.crypto.SecretKey
astore 2
start local 2 5: aload 2
invokeinterface javax.crypto.SecretKey.getAlgorithm:()Ljava/lang/String;
aload 0
invokevirtual com.sun.crypto.provider.PBKDF2KeyImpl.getAlgorithm:()Ljava/lang/String;
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifne 7
6: iconst_0
ireturn
7: StackMap locals: javax.crypto.SecretKey
StackMap stack:
aload 2
invokeinterface javax.crypto.SecretKey.getFormat:()Ljava/lang/String;
ldc "RAW"
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifne 9
8: iconst_0
ireturn
9: StackMap locals:
StackMap stack:
aload 2
invokeinterface javax.crypto.SecretKey.getEncoded:()[B
astore 3
start local 3 10: aload 0
getfield com.sun.crypto.provider.PBKDF2KeyImpl.key:[B
aload 2
invokeinterface javax.crypto.SecretKey.getEncoded:()[B
invokestatic java.security.MessageDigest.isEqual:([B[B)Z
istore 4
start local 4 11: aload 3
iconst_0
invokestatic java.util.Arrays.fill:([BB)V
12: iload 4
ireturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lcom/sun/crypto/provider/PBKDF2KeyImpl;
0 13 1 obj Ljava/lang/Object;
5 13 2 that Ljavax/crypto/SecretKey;
10 13 3 thatEncoded [B
11 13 4 ret Z
MethodParameters:
Name Flags
obj
private java.lang.Object writeReplace();
descriptor: ()Ljava/lang/Object;
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=1, args_size=1
start local 0 0: new java.security.KeyRep
dup
getstatic java.security.KeyRep$Type.SECRET:Ljava/security/KeyRep$Type;
aload 0
invokevirtual com.sun.crypto.provider.PBKDF2KeyImpl.getAlgorithm:()Ljava/lang/String;
1: aload 0
invokevirtual com.sun.crypto.provider.PBKDF2KeyImpl.getFormat:()Ljava/lang/String;
aload 0
invokevirtual com.sun.crypto.provider.PBKDF2KeyImpl.getEncoded:()[B
2: invokespecial java.security.KeyRep.<init>:(Ljava/security/KeyRep$Type;Ljava/lang/String;Ljava/lang/String;[B)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/sun/crypto/provider/PBKDF2KeyImpl;
Exceptions:
throws java.io.ObjectStreamException
protected void finalize();
descriptor: ()V
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=3, args_size=1
start local 0 0: aload 0
dup
astore 1
monitorenter
1: aload 0
getfield com.sun.crypto.provider.PBKDF2KeyImpl.passwd:[C
ifnull 4
2: aload 0
getfield com.sun.crypto.provider.PBKDF2KeyImpl.passwd:[C
bipush 48
invokestatic java.util.Arrays.fill:([CC)V
3: aload 0
aconst_null
putfield com.sun.crypto.provider.PBKDF2KeyImpl.passwd:[C
4: StackMap locals: com.sun.crypto.provider.PBKDF2KeyImpl
StackMap stack:
aload 0
getfield com.sun.crypto.provider.PBKDF2KeyImpl.key:[B
ifnull 7
5: aload 0
getfield com.sun.crypto.provider.PBKDF2KeyImpl.key:[B
iconst_0
invokestatic java.util.Arrays.fill:([BB)V
6: aload 0
aconst_null
putfield com.sun.crypto.provider.PBKDF2KeyImpl.key:[B
7: StackMap locals:
StackMap stack:
aload 1
monitorexit
8: goto 14
StackMap locals:
StackMap stack: java.lang.Throwable
9: aload 1
monitorexit
10: athrow
11: StackMap locals: com.sun.crypto.provider.PBKDF2KeyImpl
StackMap stack: java.lang.Throwable
astore 2
12: aload 0
invokespecial java.lang.Object.finalize:()V
13: aload 2
athrow
14: StackMap locals:
StackMap stack:
aload 0
invokespecial java.lang.Object.finalize:()V
15: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 this Lcom/sun/crypto/provider/PBKDF2KeyImpl;
Exception table:
from to target type
1 8 9 any
9 10 9 any
0 11 11 any
Exceptions:
throws java.lang.Throwable
}
SourceFile: "PBKDF2KeyImpl.java"
InnerClasses:
public final Type = java.security.KeyRep$Type of java.security.KeyRep