public class javax.crypto.spec.SecretKeySpec implements java.security.spec.KeySpec, javax.crypto.SecretKey
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: javax.crypto.spec.SecretKeySpec
super_class: java.lang.Object
{
private static final long serialVersionUID;
descriptor: J
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 6577238317307289933
private byte[] key;
descriptor: [B
flags: (0x0002) ACC_PRIVATE
private java.lang.String algorithm;
descriptor: Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
public void <init>(byte[], java.lang.String);
descriptor: ([BLjava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 1
ifnull 2
aload 2
ifnonnull 3
2: StackMap locals: javax.crypto.spec.SecretKeySpec byte[] java.lang.String
StackMap stack:
new java.lang.IllegalArgumentException
dup
ldc "Missing argument"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals:
StackMap stack:
aload 1
arraylength
ifne 5
4: new java.lang.IllegalArgumentException
dup
ldc "Empty key"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
5: StackMap locals:
StackMap stack:
aload 0
aload 1
invokevirtual byte[].clone:()Ljava/lang/Object;
checkcast byte[]
putfield javax.crypto.spec.SecretKeySpec.key:[B
6: aload 0
aload 2
putfield javax.crypto.spec.SecretKeySpec.algorithm:Ljava/lang/String;
7: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Ljavax/crypto/spec/SecretKeySpec;
0 8 1 key [B
0 8 2 algorithm Ljava/lang/String;
MethodParameters:
Name Flags
key
algorithm
public void <init>(byte[], int, int, java.lang.String);
descriptor: ([BIILjava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=5, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 1
ifnull 2
aload 4
ifnonnull 3
2: StackMap locals: javax.crypto.spec.SecretKeySpec byte[] int int java.lang.String
StackMap stack:
new java.lang.IllegalArgumentException
dup
ldc "Missing argument"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals:
StackMap stack:
aload 1
arraylength
ifne 5
4: new java.lang.IllegalArgumentException
dup
ldc "Empty key"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
5: StackMap locals:
StackMap stack:
aload 1
arraylength
iload 2
isub
iload 3
if_icmpge 9
6: new java.lang.IllegalArgumentException
dup
7: ldc "Invalid offset/length combination"
8: invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
9: StackMap locals:
StackMap stack:
iload 3
ifge 11
10: new java.lang.ArrayIndexOutOfBoundsException
dup
ldc "len is negative"
invokespecial java.lang.ArrayIndexOutOfBoundsException.<init>:(Ljava/lang/String;)V
athrow
11: StackMap locals:
StackMap stack:
aload 0
iload 3
newarray 8
putfield javax.crypto.spec.SecretKeySpec.key:[B
12: aload 1
iload 2
aload 0
getfield javax.crypto.spec.SecretKeySpec.key:[B
iconst_0
iload 3
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
13: aload 0
aload 4
putfield javax.crypto.spec.SecretKeySpec.algorithm:Ljava/lang/String;
14: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Ljavax/crypto/spec/SecretKeySpec;
0 15 1 key [B
0 15 2 offset I
0 15 3 len I
0 15 4 algorithm Ljava/lang/String;
MethodParameters:
Name Flags
key
offset
len
algorithm
public java.lang.String getAlgorithm();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield javax.crypto.spec.SecretKeySpec.algorithm:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavax/crypto/spec/SecretKeySpec;
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 Ljavax/crypto/spec/SecretKeySpec;
public byte[] getEncoded();
descriptor: ()[B
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield javax.crypto.spec.SecretKeySpec.key:[B
invokevirtual byte[].clone:()Ljava/lang/Object;
checkcast byte[]
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavax/crypto/spec/SecretKeySpec;
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 javax.crypto.spec.SecretKeySpec.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 javax.crypto.spec.SecretKeySpec.key:[B
arraylength
if_icmplt 3
end local 2 6: aload 0
getfield javax.crypto.spec.SecretKeySpec.algorithm:Ljava/lang/String;
ldc "TripleDES"
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifeq 8
7: iload 1
ldc "desede"
invokevirtual java.lang.String.hashCode:()I
ixor
dup
istore 1
ireturn
8: StackMap locals:
StackMap stack:
iload 1
9: aload 0
getfield javax.crypto.spec.SecretKeySpec.algorithm:Ljava/lang/String;
getstatic java.util.Locale.ENGLISH:Ljava/util/Locale;
invokevirtual java.lang.String.toLowerCase:(Ljava/util/Locale;)Ljava/lang/String;
invokevirtual java.lang.String.hashCode:()I
ixor
dup
istore 1
10: ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Ljavax/crypto/spec/SecretKeySpec;
1 11 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=4, args_size=2
start local 0 start local 1 0: aload 0
aload 1
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
invokeinterface javax.crypto.SecretKey.getAlgorithm:()Ljava/lang/String;
astore 2
start local 2 5: aload 2
aload 0
getfield javax.crypto.spec.SecretKeySpec.algorithm:Ljava/lang/String;
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifne 11
6: aload 2
ldc "DESede"
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifeq 8
7: aload 0
getfield javax.crypto.spec.SecretKeySpec.algorithm:Ljava/lang/String;
ldc "TripleDES"
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifne 11
8: StackMap locals: java.lang.String
StackMap stack:
aload 2
ldc "TripleDES"
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifeq 10
9: aload 0
getfield javax.crypto.spec.SecretKeySpec.algorithm:Ljava/lang/String;
ldc "DESede"
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifne 11
10: StackMap locals:
StackMap stack:
iconst_0
ireturn
11: StackMap locals:
StackMap stack:
aload 1
checkcast javax.crypto.SecretKey
invokeinterface javax.crypto.SecretKey.getEncoded:()[B
astore 3
start local 3 12: aload 0
getfield javax.crypto.spec.SecretKeySpec.key:[B
aload 3
invokestatic java.security.MessageDigest.isEqual:([B[B)Z
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Ljavax/crypto/spec/SecretKeySpec;
0 13 1 obj Ljava/lang/Object;
5 13 2 thatAlg Ljava/lang/String;
12 13 3 thatKey [B
MethodParameters:
Name Flags
obj
}
SourceFile: "SecretKeySpec.java"