public class sun.security.krb5.internal.crypto.dk.Des3DkCrypto extends sun.security.krb5.internal.crypto.dk.DkCrypto
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: sun.security.krb5.internal.crypto.dk.Des3DkCrypto
super_class: sun.security.krb5.internal.crypto.dk.DkCrypto
{
private static final byte[] ZERO_IV;
descriptor: [B
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: bipush 8
newarray 8
putstatic sun.security.krb5.internal.crypto.dk.Des3DkCrypto.ZERO_IV:[B
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial sun.security.krb5.internal.crypto.dk.DkCrypto.<init>:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/security/krb5/internal/crypto/dk/Des3DkCrypto;
protected int getKeySeedLength();
descriptor: ()I
flags: (0x0004) ACC_PROTECTED
Code:
stack=1, locals=1, args_size=1
start local 0 0: sipush 168
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/security/krb5/internal/crypto/dk/Des3DkCrypto;
public byte[] stringToKey(char[]);
descriptor: ([C)[B
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=5, args_size=2
start local 0 start local 1 0: aconst_null
astore 2
start local 2 1: aload 1
invokestatic sun.security.krb5.internal.crypto.dk.Des3DkCrypto.charToUtf8:([C)[B
astore 2
2: aload 0
aload 2
aconst_null
invokevirtual sun.security.krb5.internal.crypto.dk.Des3DkCrypto.stringToKey:([B[B)[B
astore 4
3: aload 2
ifnull 5
4: aload 2
iconst_0
invokestatic java.util.Arrays.fill:([BB)V
5: StackMap locals: sun.security.krb5.internal.crypto.dk.Des3DkCrypto char[] byte[] top byte[]
StackMap stack:
aload 4
areturn
6: StackMap locals: sun.security.krb5.internal.crypto.dk.Des3DkCrypto char[] byte[]
StackMap stack: java.lang.Throwable
astore 3
7: aload 2
ifnull 9
8: aload 2
iconst_0
invokestatic java.util.Arrays.fill:([BB)V
9: StackMap locals: java.lang.Throwable
StackMap stack:
aload 3
athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lsun/security/krb5/internal/crypto/dk/Des3DkCrypto;
0 10 1 salt [C
1 10 2 saltUtf8 [B
Exception table:
from to target type
1 3 6 any
Exceptions:
throws java.security.GeneralSecurityException
MethodParameters:
Name Flags
salt
private byte[] stringToKey(byte[], byte[]);
descriptor: ([B[B)[B
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 2
ifnull 2
aload 2
arraylength
ifle 2
1: new java.lang.RuntimeException
dup
ldc "Invalid parameter to stringToKey"
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
aload 1
aload 0
invokevirtual sun.security.krb5.internal.crypto.dk.Des3DkCrypto.getKeySeedLength:()I
invokestatic sun.security.krb5.internal.crypto.dk.Des3DkCrypto.nfold:([BI)[B
invokevirtual sun.security.krb5.internal.crypto.dk.Des3DkCrypto.randomToKey:([B)[B
astore 3
start local 3 3: aload 0
aload 3
getstatic sun.security.krb5.internal.crypto.dk.Des3DkCrypto.KERBEROS_CONSTANT:[B
invokevirtual sun.security.krb5.internal.crypto.dk.Des3DkCrypto.dk:([B[B)[B
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lsun/security/krb5/internal/crypto/dk/Des3DkCrypto;
0 4 1 secretAndSalt [B
0 4 2 opaque [B
3 4 3 tmpKey [B
Exceptions:
throws java.security.GeneralSecurityException
MethodParameters:
Name Flags
secretAndSalt
opaque
public byte[] parityFix(byte[]);
descriptor: ([B)[B
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: aload 1
invokestatic sun.security.krb5.internal.crypto.dk.Des3DkCrypto.setParityBit:([B)V
1: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/security/krb5/internal/crypto/dk/Des3DkCrypto;
0 2 1 value [B
Exceptions:
throws java.security.GeneralSecurityException
MethodParameters:
Name Flags
value
protected byte[] randomToKey(byte[]);
descriptor: ([B)[B
flags: (0x0004) ACC_PROTECTED
Code:
stack=5, locals=6, args_size=2
start local 0 start local 1 0: aload 1
arraylength
bipush 21
if_icmpeq 2
1: new java.lang.IllegalArgumentException
dup
ldc "input must be 168 bits"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 1
iconst_0
bipush 7
invokestatic sun.security.krb5.internal.crypto.dk.Des3DkCrypto.des3Expand:([BII)[B
invokestatic sun.security.krb5.internal.crypto.dk.Des3DkCrypto.keyCorrection:([B)[B
astore 2
start local 2 3: aload 1
bipush 7
bipush 14
invokestatic sun.security.krb5.internal.crypto.dk.Des3DkCrypto.des3Expand:([BII)[B
invokestatic sun.security.krb5.internal.crypto.dk.Des3DkCrypto.keyCorrection:([B)[B
astore 3
start local 3 4: aload 1
bipush 14
bipush 21
invokestatic sun.security.krb5.internal.crypto.dk.Des3DkCrypto.des3Expand:([BII)[B
invokestatic sun.security.krb5.internal.crypto.dk.Des3DkCrypto.keyCorrection:([B)[B
astore 4
start local 4 5: bipush 24
newarray 8
astore 5
start local 5 6: aload 2
iconst_0
aload 5
iconst_0
bipush 8
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
7: aload 3
iconst_0
aload 5
bipush 8
bipush 8
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
8: aload 4
iconst_0
aload 5
bipush 16
bipush 8
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
9: 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 10 0 this Lsun/security/krb5/internal/crypto/dk/Des3DkCrypto;
0 10 1 in [B
3 10 2 one [B
4 10 3 two [B
5 10 4 three [B
6 10 5 key [B
MethodParameters:
Name Flags
in
private static byte[] keyCorrection(byte[]);
descriptor: ([B)[B
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
iconst_0
invokestatic javax.crypto.spec.DESKeySpec.isWeak:([BI)Z
ifeq 4
1: aload 0
bipush 7
aload 0
bipush 7
baload
sipush 240
ixor
i2b
bastore
2: goto 4
StackMap locals:
StackMap stack: java.security.InvalidKeyException
3: pop
4: StackMap locals:
StackMap stack:
aload 0
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 key [B
Exception table:
from to target type
0 2 3 Class java.security.InvalidKeyException
MethodParameters:
Name Flags
key
private static byte[] des3Expand(byte[], int, int);
descriptor: ([BII)[B
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=8, args_size=3
start local 0 start local 1 start local 2 0: iload 2
iload 1
isub
bipush 7
if_icmpeq 4
1: new java.lang.IllegalArgumentException
dup
2: new java.lang.StringBuilder
dup
ldc "Invalid length of DES Key Value:"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 1
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc ","
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
iload 2
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
3: invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
bipush 8
newarray 8
astore 3
start local 3 5: iconst_0
istore 4
start local 4 6: aload 0
iload 1
aload 3
iconst_0
bipush 7
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
7: iconst_0
istore 5
start local 5 8: iload 1
istore 6
start local 6 9: goto 15
10: StackMap locals: byte[] int int byte[] int int int
StackMap stack:
aload 0
iload 6
baload
iconst_1
iand
i2b
istore 7
start local 7 11: iload 5
iconst_1
iadd
i2b
istore 5
12: iload 7
ifeq 14
13: iload 4
iload 7
iload 5
ishl
ior
i2b
istore 4
end local 7 14: StackMap locals:
StackMap stack:
iinc 6 1
StackMap locals:
StackMap stack:
15: iload 6
iload 2
if_icmplt 10
end local 6 16: aload 3
bipush 7
iload 4
bastore
17: aload 3
invokestatic sun.security.krb5.internal.crypto.dk.Des3DkCrypto.setParityBit:([B)V
18: aload 3
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 19 0 input [B
0 19 1 start I
0 19 2 end I
5 19 3 result [B
6 19 4 last B
8 19 5 posn B
9 16 6 i I
11 14 7 bit B
MethodParameters:
Name Flags
input
start
end
private static void setParityBit(byte[]);
descriptor: ([B)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=3, args_size=1
start local 0 0: iconst_0
istore 1
start local 1 1: goto 6
2: StackMap locals: int
StackMap stack:
aload 0
iload 1
baload
sipush 254
iand
istore 2
start local 2 3: iload 2
iload 2
invokestatic java.lang.Integer.bitCount:(I)I
iconst_1
iand
iconst_1
ixor
ior
istore 2
4: aload 0
iload 1
iload 2
i2b
bastore
end local 2 5: iinc 1 1
StackMap locals:
StackMap stack:
6: iload 1
aload 0
arraylength
if_icmplt 2
end local 1 7: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 key [B
1 7 1 i I
3 5 2 b I
MethodParameters:
Name Flags
key
protected javax.crypto.Cipher getCipher(byte[], byte[], int);
descriptor: ([B[BI)Ljavax/crypto/Cipher;
flags: (0x0004) ACC_PROTECTED
Code:
stack=5, locals=9, args_size=4
start local 0 start local 1 start local 2 start local 3 0: ldc "desede"
invokestatic javax.crypto.SecretKeyFactory.getInstance:(Ljava/lang/String;)Ljavax/crypto/SecretKeyFactory;
astore 4
start local 4 1: new javax.crypto.spec.DESedeKeySpec
dup
aload 1
iconst_0
invokespecial javax.crypto.spec.DESedeKeySpec.<init>:([BI)V
astore 5
start local 5 2: aload 4
aload 5
invokevirtual javax.crypto.SecretKeyFactory.generateSecret:(Ljava/security/spec/KeySpec;)Ljavax/crypto/SecretKey;
astore 6
start local 6 3: aload 2
ifnonnull 5
4: getstatic sun.security.krb5.internal.crypto.dk.Des3DkCrypto.ZERO_IV:[B
astore 2
5: StackMap locals: javax.crypto.SecretKeyFactory java.security.spec.KeySpec javax.crypto.SecretKey
StackMap stack:
ldc "DESede/CBC/NoPadding"
invokestatic javax.crypto.Cipher.getInstance:(Ljava/lang/String;)Ljavax/crypto/Cipher;
astore 7
start local 7 6: new javax.crypto.spec.IvParameterSpec
dup
aload 2
iconst_0
aload 2
arraylength
invokespecial javax.crypto.spec.IvParameterSpec.<init>:([BII)V
astore 8
start local 8 7: aload 7
iload 3
aload 6
aload 8
invokevirtual javax.crypto.Cipher.init:(ILjava/security/Key;Ljava/security/spec/AlgorithmParameterSpec;)V
8: aload 7
areturn
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 9 0 this Lsun/security/krb5/internal/crypto/dk/Des3DkCrypto;
0 9 1 key [B
0 9 2 ivec [B
0 9 3 mode I
1 9 4 factory Ljavax/crypto/SecretKeyFactory;
2 9 5 spec Ljava/security/spec/KeySpec;
3 9 6 secretKey Ljavax/crypto/SecretKey;
6 9 7 cipher Ljavax/crypto/Cipher;
7 9 8 encIv Ljavax/crypto/spec/IvParameterSpec;
Exceptions:
throws java.security.GeneralSecurityException
MethodParameters:
Name Flags
key
ivec
mode
public int getChecksumLength();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: bipush 20
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/security/krb5/internal/crypto/dk/Des3DkCrypto;
protected byte[] getHmac(byte[], byte[]);
descriptor: ([B[B)[B
flags: (0x0004) ACC_PROTECTED
Code:
stack=4, locals=5, args_size=3
start local 0 start local 1 start local 2 0: new javax.crypto.spec.SecretKeySpec
dup
aload 1
ldc "HmacSHA1"
invokespecial javax.crypto.spec.SecretKeySpec.<init>:([BLjava/lang/String;)V
astore 3
start local 3 1: ldc "HmacSHA1"
invokestatic javax.crypto.Mac.getInstance:(Ljava/lang/String;)Ljavax/crypto/Mac;
astore 4
start local 4 2: aload 4
aload 3
invokevirtual javax.crypto.Mac.init:(Ljava/security/Key;)V
3: aload 4
aload 2
invokevirtual javax.crypto.Mac.doFinal:([B)[B
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lsun/security/krb5/internal/crypto/dk/Des3DkCrypto;
0 4 1 key [B
0 4 2 msg [B
1 4 3 keyKi Ljavax/crypto/SecretKey;
2 4 4 m Ljavax/crypto/Mac;
Exceptions:
throws java.security.GeneralSecurityException
MethodParameters:
Name Flags
key
msg
}
SourceFile: "Des3DkCrypto.java"