public final class com.sun.crypto.provider.DESedeKeyGenerator extends javax.crypto.KeyGeneratorSpi
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: com.sun.crypto.provider.DESedeKeyGenerator
super_class: javax.crypto.KeyGeneratorSpi
{
private java.security.SecureRandom random;
descriptor: Ljava/security/SecureRandom;
flags: (0x0002) ACC_PRIVATE
private int keysize;
descriptor: I
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
invokespecial javax.crypto.KeyGeneratorSpi.<init>:()V
1: aload 0
aconst_null
putfield com.sun.crypto.provider.DESedeKeyGenerator.random:Ljava/security/SecureRandom;
2: aload 0
sipush 168
putfield com.sun.crypto.provider.DESedeKeyGenerator.keysize:I
3: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/sun/crypto/provider/DESedeKeyGenerator;
protected void engineInit(java.security.SecureRandom);
descriptor: (Ljava/security/SecureRandom;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
putfield com.sun.crypto.provider.DESedeKeyGenerator.random:Ljava/security/SecureRandom;
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/sun/crypto/provider/DESedeKeyGenerator;
0 2 1 random Ljava/security/SecureRandom;
MethodParameters:
Name Flags
random
protected void engineInit(java.security.spec.AlgorithmParameterSpec, java.security.SecureRandom);
descriptor: (Ljava/security/spec/AlgorithmParameterSpec;Ljava/security/SecureRandom;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: new java.security.InvalidAlgorithmParameterException
dup
1: ldc "Triple DES key generation does not take any parameters"
2: invokespecial java.security.InvalidAlgorithmParameterException.<init>:(Ljava/lang/String;)V
athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/sun/crypto/provider/DESedeKeyGenerator;
0 3 1 params Ljava/security/spec/AlgorithmParameterSpec;
0 3 2 random Ljava/security/SecureRandom;
Exceptions:
throws java.security.InvalidAlgorithmParameterException
MethodParameters:
Name Flags
params
random
protected void engineInit(int, java.security.SecureRandom);
descriptor: (ILjava/security/SecureRandom;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: iload 1
bipush 112
if_icmpeq 2
iload 1
sipush 168
if_icmpeq 2
1: new java.security.InvalidParameterException
dup
ldc "Wrong keysize: must be equal to 112 or 168"
invokespecial java.security.InvalidParameterException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
iload 1
putfield com.sun.crypto.provider.DESedeKeyGenerator.keysize:I
3: aload 0
aload 2
invokevirtual com.sun.crypto.provider.DESedeKeyGenerator.engineInit:(Ljava/security/SecureRandom;)V
4: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lcom/sun/crypto/provider/DESedeKeyGenerator;
0 5 1 keysize I
0 5 2 random Ljava/security/SecureRandom;
MethodParameters:
Name Flags
keysize
random
protected javax.crypto.SecretKey engineGenerateKey();
descriptor: ()Ljavax/crypto/SecretKey;
flags: (0x0004) ACC_PROTECTED
Code:
stack=5, locals=4, args_size=1
start local 0 0: aload 0
getfield com.sun.crypto.provider.DESedeKeyGenerator.random:Ljava/security/SecureRandom;
ifnonnull 2
1: aload 0
invokestatic com.sun.crypto.provider.SunJCE.getRandom:()Ljava/security/SecureRandom;
putfield com.sun.crypto.provider.DESedeKeyGenerator.random:Ljava/security/SecureRandom;
2: StackMap locals:
StackMap stack:
bipush 24
newarray 8
astore 1
start local 1 3: aload 0
getfield com.sun.crypto.provider.DESedeKeyGenerator.keysize:I
sipush 168
if_icmpne 9
4: aload 0
getfield com.sun.crypto.provider.DESedeKeyGenerator.random:Ljava/security/SecureRandom;
aload 1
invokevirtual java.security.SecureRandom.nextBytes:([B)V
5: aload 1
iconst_0
invokestatic com.sun.crypto.provider.DESKeyGenerator.setParityBit:([BI)V
6: aload 1
bipush 8
invokestatic com.sun.crypto.provider.DESKeyGenerator.setParityBit:([BI)V
7: aload 1
bipush 16
invokestatic com.sun.crypto.provider.DESKeyGenerator.setParityBit:([BI)V
8: goto 16
9: StackMap locals: byte[]
StackMap stack:
bipush 16
newarray 8
astore 2
start local 2 10: aload 0
getfield com.sun.crypto.provider.DESedeKeyGenerator.random:Ljava/security/SecureRandom;
aload 2
invokevirtual java.security.SecureRandom.nextBytes:([B)V
11: aload 2
iconst_0
invokestatic com.sun.crypto.provider.DESKeyGenerator.setParityBit:([BI)V
12: aload 2
bipush 8
invokestatic com.sun.crypto.provider.DESKeyGenerator.setParityBit:([BI)V
13: aload 2
iconst_0
aload 1
iconst_0
aload 2
arraylength
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
14: aload 2
iconst_0
aload 1
bipush 16
bipush 8
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
15: aload 2
iconst_0
invokestatic java.util.Arrays.fill:([BB)V
end local 2 16: StackMap locals:
StackMap stack:
aconst_null
astore 2
start local 2 17: new com.sun.crypto.provider.DESedeKey
dup
aload 1
invokespecial com.sun.crypto.provider.DESedeKey.<init>:([B)V
astore 2
18: goto 21
StackMap locals: com.sun.crypto.provider.DESedeKeyGenerator byte[] com.sun.crypto.provider.DESedeKey
StackMap stack: java.security.InvalidKeyException
19: astore 3
start local 3 20: new java.lang.RuntimeException
dup
aload 3
invokevirtual java.security.InvalidKeyException.getMessage:()Ljava/lang/String;
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;)V
athrow
end local 3 21: StackMap locals:
StackMap stack:
aload 1
iconst_0
invokestatic java.util.Arrays.fill:([BB)V
22: aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 23 0 this Lcom/sun/crypto/provider/DESedeKeyGenerator;
3 23 1 rawkey [B
10 16 2 tmpkey [B
17 23 2 desEdeKey Lcom/sun/crypto/provider/DESedeKey;
20 21 3 ike Ljava/security/InvalidKeyException;
Exception table:
from to target type
17 18 19 Class java.security.InvalidKeyException
}
SourceFile: "DESedeKeyGenerator.java"