final class sun.security.pkcs11.P11TlsPrfGenerator extends javax.crypto.KeyGeneratorSpi
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: sun.security.pkcs11.P11TlsPrfGenerator
super_class: javax.crypto.KeyGeneratorSpi
{
private static final java.lang.String MSG;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "TlsPrfGenerator must be initialized using a TlsPrfParameterSpec"
private final sun.security.pkcs11.Token token;
descriptor: Lsun/security/pkcs11/Token;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.lang.String algorithm;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final long mechanism;
descriptor: J
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private sun.security.internal.spec.TlsPrfParameterSpec spec;
descriptor: Lsun/security/internal/spec/TlsPrfParameterSpec;
flags: (0x0002) ACC_PRIVATE
private sun.security.pkcs11.P11Key p11Key;
descriptor: Lsun/security/pkcs11/P11Key;
flags: (0x0002) ACC_PRIVATE
private static final javax.crypto.SecretKey NULL_KEY;
descriptor: Ljavax/crypto/SecretKey;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: new sun.security.pkcs11.P11TlsPrfGenerator$1
dup
invokespecial sun.security.pkcs11.P11TlsPrfGenerator$1.<init>:()V
putstatic sun.security.pkcs11.P11TlsPrfGenerator.NULL_KEY:Ljavax/crypto/SecretKey;
1: return
LocalVariableTable:
Start End Slot Name Signature
void <init>(sun.security.pkcs11.Token, java.lang.String, long);
descriptor: (Lsun/security/pkcs11/Token;Ljava/lang/String;J)V
flags: (0x0000)
Code:
stack=3, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokespecial javax.crypto.KeyGeneratorSpi.<init>:()V
1: aload 0
aload 1
putfield sun.security.pkcs11.P11TlsPrfGenerator.token:Lsun/security/pkcs11/Token;
2: aload 0
aload 2
putfield sun.security.pkcs11.P11TlsPrfGenerator.algorithm:Ljava/lang/String;
3: aload 0
lload 3
putfield sun.security.pkcs11.P11TlsPrfGenerator.mechanism:J
4: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lsun/security/pkcs11/P11TlsPrfGenerator;
0 5 1 token Lsun/security/pkcs11/Token;
0 5 2 algorithm Ljava/lang/String;
0 5 3 mechanism J
Exceptions:
throws sun.security.pkcs11.wrapper.PKCS11Exception
MethodParameters:
Name Flags
token
algorithm
mechanism
protected void engineInit(java.security.SecureRandom);
descriptor: (Ljava/security/SecureRandom;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: new java.security.InvalidParameterException
dup
ldc "TlsPrfGenerator must be initialized using a TlsPrfParameterSpec"
invokespecial java.security.InvalidParameterException.<init>:(Ljava/lang/String;)V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/security/pkcs11/P11TlsPrfGenerator;
0 1 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=4, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 1
instanceof sun.security.internal.spec.TlsPrfParameterSpec
ifne 2
1: new java.security.InvalidAlgorithmParameterException
dup
ldc "TlsPrfGenerator must be initialized using a TlsPrfParameterSpec"
invokespecial java.security.InvalidAlgorithmParameterException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
aload 1
checkcast sun.security.internal.spec.TlsPrfParameterSpec
putfield sun.security.pkcs11.P11TlsPrfGenerator.spec:Lsun/security/internal/spec/TlsPrfParameterSpec;
3: aload 0
getfield sun.security.pkcs11.P11TlsPrfGenerator.spec:Lsun/security/internal/spec/TlsPrfParameterSpec;
invokevirtual sun.security.internal.spec.TlsPrfParameterSpec.getSecret:()Ljavax/crypto/SecretKey;
astore 3
start local 3 4: aload 3
ifnonnull 6
5: getstatic sun.security.pkcs11.P11TlsPrfGenerator.NULL_KEY:Ljavax/crypto/SecretKey;
astore 3
6: StackMap locals: javax.crypto.SecretKey
StackMap stack:
aload 0
aload 0
getfield sun.security.pkcs11.P11TlsPrfGenerator.token:Lsun/security/pkcs11/Token;
aload 3
aconst_null
invokestatic sun.security.pkcs11.P11SecretKeyFactory.convertKey:(Lsun/security/pkcs11/Token;Ljava/security/Key;Ljava/lang/String;)Lsun/security/pkcs11/P11Key;
putfield sun.security.pkcs11.P11TlsPrfGenerator.p11Key:Lsun/security/pkcs11/P11Key;
7: goto 10
StackMap locals:
StackMap stack: java.security.InvalidKeyException
8: astore 4
start local 4 9: new java.security.InvalidAlgorithmParameterException
dup
ldc "init() failed"
aload 4
invokespecial java.security.InvalidAlgorithmParameterException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 4 10: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lsun/security/pkcs11/P11TlsPrfGenerator;
0 11 1 params Ljava/security/spec/AlgorithmParameterSpec;
0 11 2 random Ljava/security/SecureRandom;
4 11 3 key Ljavax/crypto/SecretKey;
9 10 4 e Ljava/security/InvalidKeyException;
Exception table:
from to target type
6 7 8 Class java.security.InvalidKeyException
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: new java.security.InvalidParameterException
dup
ldc "TlsPrfGenerator must be initialized using a TlsPrfParameterSpec"
invokespecial java.security.InvalidParameterException.<init>:(Ljava/lang/String;)V
athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/security/pkcs11/P11TlsPrfGenerator;
0 1 1 keysize I
0 1 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=8, locals=9, args_size=1
start local 0 0: aload 0
getfield sun.security.pkcs11.P11TlsPrfGenerator.spec:Lsun/security/internal/spec/TlsPrfParameterSpec;
ifnonnull 2
1: new java.lang.IllegalStateException
dup
ldc "TlsPrfGenerator must be initialized"
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
getfield sun.security.pkcs11.P11TlsPrfGenerator.spec:Lsun/security/internal/spec/TlsPrfParameterSpec;
invokevirtual sun.security.internal.spec.TlsPrfParameterSpec.getLabel:()Ljava/lang/String;
invokestatic sun.security.pkcs11.P11Util.getBytesUTF8:(Ljava/lang/String;)[B
astore 1
start local 1 3: aload 0
getfield sun.security.pkcs11.P11TlsPrfGenerator.spec:Lsun/security/internal/spec/TlsPrfParameterSpec;
invokevirtual sun.security.internal.spec.TlsPrfParameterSpec.getSeed:()[B
astore 2
start local 2 4: aload 0
getfield sun.security.pkcs11.P11TlsPrfGenerator.mechanism:J
ldc 2147484531
lcmp
ifne 23
5: aconst_null
astore 3
start local 3 6: aload 0
getfield sun.security.pkcs11.P11TlsPrfGenerator.token:Lsun/security/pkcs11/Token;
invokevirtual sun.security.pkcs11.Token.getOpSession:()Lsun/security/pkcs11/Session;
astore 3
7: aload 0
getfield sun.security.pkcs11.P11TlsPrfGenerator.token:Lsun/security/pkcs11/Token;
getfield sun.security.pkcs11.Token.p11:Lsun/security/pkcs11/wrapper/PKCS11;
8: aload 3
invokevirtual sun.security.pkcs11.Session.id:()J
new sun.security.pkcs11.wrapper.CK_MECHANISM
dup
aload 0
getfield sun.security.pkcs11.P11TlsPrfGenerator.mechanism:J
invokespecial sun.security.pkcs11.wrapper.CK_MECHANISM.<init>:(J)V
aload 0
getfield sun.security.pkcs11.P11TlsPrfGenerator.p11Key:Lsun/security/pkcs11/P11Key;
getfield sun.security.pkcs11.P11Key.keyID:J
9: invokevirtual sun.security.pkcs11.wrapper.PKCS11.C_SignInit:(JLsun/security/pkcs11/wrapper/CK_MECHANISM;J)V
10: aload 0
getfield sun.security.pkcs11.P11TlsPrfGenerator.token:Lsun/security/pkcs11/Token;
getfield sun.security.pkcs11.Token.p11:Lsun/security/pkcs11/wrapper/PKCS11;
aload 3
invokevirtual sun.security.pkcs11.Session.id:()J
lconst_0
aload 1
iconst_0
aload 1
arraylength
invokevirtual sun.security.pkcs11.wrapper.PKCS11.C_SignUpdate:(JJ[BII)V
11: aload 0
getfield sun.security.pkcs11.P11TlsPrfGenerator.token:Lsun/security/pkcs11/Token;
getfield sun.security.pkcs11.Token.p11:Lsun/security/pkcs11/wrapper/PKCS11;
aload 3
invokevirtual sun.security.pkcs11.Session.id:()J
lconst_0
aload 2
iconst_0
aload 2
arraylength
invokevirtual sun.security.pkcs11.wrapper.PKCS11.C_SignUpdate:(JJ[BII)V
12: aload 0
getfield sun.security.pkcs11.P11TlsPrfGenerator.token:Lsun/security/pkcs11/Token;
getfield sun.security.pkcs11.Token.p11:Lsun/security/pkcs11/wrapper/PKCS11;
13: aload 3
invokevirtual sun.security.pkcs11.Session.id:()J
aload 0
getfield sun.security.pkcs11.P11TlsPrfGenerator.spec:Lsun/security/internal/spec/TlsPrfParameterSpec;
invokevirtual sun.security.internal.spec.TlsPrfParameterSpec.getOutputLength:()I
14: invokevirtual sun.security.pkcs11.wrapper.PKCS11.C_SignFinal:(JI)[B
astore 4
start local 4 15: new javax.crypto.spec.SecretKeySpec
dup
aload 4
ldc "TlsPrf"
invokespecial javax.crypto.spec.SecretKeySpec.<init>:([BLjava/lang/String;)V
astore 6
16: aload 0
getfield sun.security.pkcs11.P11TlsPrfGenerator.token:Lsun/security/pkcs11/Token;
aload 3
invokevirtual sun.security.pkcs11.Token.releaseSession:(Lsun/security/pkcs11/Session;)Lsun/security/pkcs11/Session;
pop
17: aload 6
areturn
end local 4 18: StackMap locals: sun.security.pkcs11.P11TlsPrfGenerator byte[] byte[] sun.security.pkcs11.Session
StackMap stack: sun.security.pkcs11.wrapper.PKCS11Exception
astore 4
start local 4 19: new java.security.ProviderException
dup
ldc "Could not calculate PRF"
aload 4
invokespecial java.security.ProviderException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 4 20: StackMap locals:
StackMap stack: java.lang.Throwable
astore 5
21: aload 0
getfield sun.security.pkcs11.P11TlsPrfGenerator.token:Lsun/security/pkcs11/Token;
aload 3
invokevirtual sun.security.pkcs11.Token.releaseSession:(Lsun/security/pkcs11/Session;)Lsun/security/pkcs11/Session;
pop
22: aload 5
athrow
end local 3 23: StackMap locals:
StackMap stack:
aload 0
getfield sun.security.pkcs11.P11TlsPrfGenerator.spec:Lsun/security/internal/spec/TlsPrfParameterSpec;
invokevirtual sun.security.internal.spec.TlsPrfParameterSpec.getOutputLength:()I
newarray 8
astore 3
start local 3 24: new sun.security.pkcs11.wrapper.CK_TLS_PRF_PARAMS
dup
aload 2
aload 1
aload 3
invokespecial sun.security.pkcs11.wrapper.CK_TLS_PRF_PARAMS.<init>:([B[B[B)V
astore 4
start local 4 25: aconst_null
astore 5
start local 5 26: aload 0
getfield sun.security.pkcs11.P11TlsPrfGenerator.token:Lsun/security/pkcs11/Token;
invokevirtual sun.security.pkcs11.Token.getOpSession:()Lsun/security/pkcs11/Session;
astore 5
27: aload 0
getfield sun.security.pkcs11.P11TlsPrfGenerator.token:Lsun/security/pkcs11/Token;
getfield sun.security.pkcs11.Token.p11:Lsun/security/pkcs11/wrapper/PKCS11;
aload 5
invokevirtual sun.security.pkcs11.Session.id:()J
28: new sun.security.pkcs11.wrapper.CK_MECHANISM
dup
aload 0
getfield sun.security.pkcs11.P11TlsPrfGenerator.mechanism:J
aload 4
invokespecial sun.security.pkcs11.wrapper.CK_MECHANISM.<init>:(JLsun/security/pkcs11/wrapper/CK_TLS_PRF_PARAMS;)V
aload 0
getfield sun.security.pkcs11.P11TlsPrfGenerator.p11Key:Lsun/security/pkcs11/P11Key;
getfield sun.security.pkcs11.P11Key.keyID:J
aconst_null
29: invokevirtual sun.security.pkcs11.wrapper.PKCS11.C_DeriveKey:(JLsun/security/pkcs11/wrapper/CK_MECHANISM;J[Lsun/security/pkcs11/wrapper/CK_ATTRIBUTE;)J
pop2
30: new javax.crypto.spec.SecretKeySpec
dup
aload 3
ldc "TlsPrf"
invokespecial javax.crypto.spec.SecretKeySpec.<init>:([BLjava/lang/String;)V
astore 8
31: aload 0
getfield sun.security.pkcs11.P11TlsPrfGenerator.token:Lsun/security/pkcs11/Token;
aload 5
invokevirtual sun.security.pkcs11.Token.releaseSession:(Lsun/security/pkcs11/Session;)Lsun/security/pkcs11/Session;
pop
32: aload 8
areturn
33: StackMap locals: sun.security.pkcs11.P11TlsPrfGenerator byte[] byte[] byte[] sun.security.pkcs11.wrapper.CK_TLS_PRF_PARAMS sun.security.pkcs11.Session
StackMap stack: sun.security.pkcs11.wrapper.PKCS11Exception
astore 6
start local 6 34: new java.security.ProviderException
dup
ldc "Could not calculate PRF"
aload 6
invokespecial java.security.ProviderException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 6 35: StackMap locals:
StackMap stack: java.lang.Throwable
astore 7
36: aload 0
getfield sun.security.pkcs11.P11TlsPrfGenerator.token:Lsun/security/pkcs11/Token;
aload 5
invokevirtual sun.security.pkcs11.Token.releaseSession:(Lsun/security/pkcs11/Session;)Lsun/security/pkcs11/Session;
pop
37: aload 7
athrow
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 38 0 this Lsun/security/pkcs11/P11TlsPrfGenerator;
3 38 1 label [B
4 38 2 seed [B
6 23 3 session Lsun/security/pkcs11/Session;
15 18 4 out [B
19 20 4 e Lsun/security/pkcs11/wrapper/PKCS11Exception;
24 38 3 out [B
25 38 4 params Lsun/security/pkcs11/wrapper/CK_TLS_PRF_PARAMS;
26 38 5 session Lsun/security/pkcs11/Session;
34 35 6 e Lsun/security/pkcs11/wrapper/PKCS11Exception;
Exception table:
from to target type
6 16 18 Class sun.security.pkcs11.wrapper.PKCS11Exception
6 16 20 any
18 20 20 any
26 31 33 Class sun.security.pkcs11.wrapper.PKCS11Exception
26 31 35 any
33 35 35 any
}
SourceFile: "P11TlsPrfGenerator.java"
NestMembers:
sun.security.pkcs11.P11TlsPrfGenerator$1
InnerClasses:
sun.security.pkcs11.P11TlsPrfGenerator$1