final class sun.security.pkcs11.P11SecretKeyFactory extends javax.crypto.SecretKeyFactorySpi
  minor version: 0
  major version: 59
  flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
  this_class: sun.security.pkcs11.P11SecretKeyFactory
  super_class: javax.crypto.SecretKeyFactorySpi
{
  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 static final java.util.Map<java.lang.String, java.lang.Long> keyTypes;
    descriptor: Ljava/util/Map;
    flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
    Signature: Ljava/util/Map<Ljava/lang/String;Ljava/lang/Long;>;

  static void <clinit>();
    descriptor: ()V
    flags: (0x0008) ACC_STATIC
    Code:
      stack=3, locals=0, args_size=0
         0: .line 64
            new java.util.HashMap
            dup
            invokespecial java.util.HashMap.<init>:()V
            putstatic sun.security.pkcs11.P11SecretKeyFactory.keyTypes:Ljava/util/Map;
         1: .line 65
            ldc "RC4"
            ldc 18
            invokestatic sun.security.pkcs11.P11SecretKeyFactory.addKeyType:(Ljava/lang/String;J)V
         2: .line 66
            ldc "ARCFOUR"
            ldc 18
            invokestatic sun.security.pkcs11.P11SecretKeyFactory.addKeyType:(Ljava/lang/String;J)V
         3: .line 67
            ldc "DES"
            ldc 19
            invokestatic sun.security.pkcs11.P11SecretKeyFactory.addKeyType:(Ljava/lang/String;J)V
         4: .line 68
            ldc "DESede"
            ldc 21
            invokestatic sun.security.pkcs11.P11SecretKeyFactory.addKeyType:(Ljava/lang/String;J)V
         5: .line 69
            ldc "AES"
            ldc 31
            invokestatic sun.security.pkcs11.P11SecretKeyFactory.addKeyType:(Ljava/lang/String;J)V
         6: .line 70
            ldc "Blowfish"
            ldc 32
            invokestatic sun.security.pkcs11.P11SecretKeyFactory.addKeyType:(Ljava/lang/String;J)V
         7: .line 74
            ldc "RC2"
            ldc 17
            invokestatic sun.security.pkcs11.P11SecretKeyFactory.addKeyType:(Ljava/lang/String;J)V
         8: .line 75
            ldc "IDEA"
            ldc 26
            invokestatic sun.security.pkcs11.P11SecretKeyFactory.addKeyType:(Ljava/lang/String;J)V
         9: .line 77
            ldc "TlsPremasterSecret"
            ldc 2147483429
            invokestatic sun.security.pkcs11.P11SecretKeyFactory.addKeyType:(Ljava/lang/String;J)V
        10: .line 78
            ldc "TlsRsaPremasterSecret"
            ldc 2147483430
            invokestatic sun.security.pkcs11.P11SecretKeyFactory.addKeyType:(Ljava/lang/String;J)V
        11: .line 79
            ldc "TlsMasterSecret"
            ldc 2147483431
            invokestatic sun.security.pkcs11.P11SecretKeyFactory.addKeyType:(Ljava/lang/String;J)V
        12: .line 80
            ldc "Generic"
            ldc 16
            invokestatic sun.security.pkcs11.P11SecretKeyFactory.addKeyType:(Ljava/lang/String;J)V
        13: .line 81
            return
      LocalVariableTable:
        Start  End  Slot  Name  Signature

  void <init>(sun.security.pkcs11.Token, java.lang.String);
    descriptor: (Lsun/security/pkcs11/Token;Ljava/lang/String;)V
    flags: (0x0000) 
    Code:
      stack=2, locals=3, args_size=3
        start local 0 // sun.security.pkcs11.P11SecretKeyFactory this
        start local 1 // sun.security.pkcs11.Token token
        start local 2 // java.lang.String algorithm
         0: .line 56
            aload 0 /* this */
            invokespecial javax.crypto.SecretKeyFactorySpi.<init>:()V
         1: .line 57
            aload 0 /* this */
            aload 1 /* token */
            putfield sun.security.pkcs11.P11SecretKeyFactory.token:Lsun/security/pkcs11/Token;
         2: .line 58
            aload 0 /* this */
            aload 2 /* algorithm */
            putfield sun.security.pkcs11.P11SecretKeyFactory.algorithm:Ljava/lang/String;
         3: .line 59
            return
        end local 2 // java.lang.String algorithm
        end local 1 // sun.security.pkcs11.Token token
        end local 0 // sun.security.pkcs11.P11SecretKeyFactory this
      LocalVariableTable:
        Start  End  Slot       Name  Signature
            0    4     0       this  Lsun/security/pkcs11/P11SecretKeyFactory;
            0    4     1      token  Lsun/security/pkcs11/Token;
            0    4     2  algorithm  Ljava/lang/String;
    MethodParameters:
           Name  Flags
      token      
      algorithm  

  private static void addKeyType(java.lang.String, long);
    descriptor: (Ljava/lang/String;J)V
    flags: (0x000a) ACC_PRIVATE, ACC_STATIC
    Code:
      stack=3, locals=4, args_size=2
        start local 0 // java.lang.String name
        start local 1 // long id
         0: .line 84
            lload 1 /* id */
            invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
            astore 3 /* l */
        start local 3 // java.lang.Long l
         1: .line 85
            getstatic sun.security.pkcs11.P11SecretKeyFactory.keyTypes:Ljava/util/Map;
            aload 0 /* name */
            aload 3 /* l */
            invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
            pop
         2: .line 86
            getstatic sun.security.pkcs11.P11SecretKeyFactory.keyTypes:Ljava/util/Map;
            aload 0 /* name */
            getstatic java.util.Locale.ENGLISH:Ljava/util/Locale;
            invokevirtual java.lang.String.toUpperCase:(Ljava/util/Locale;)Ljava/lang/String;
            aload 3 /* l */
            invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
            pop
         3: .line 87
            return
        end local 3 // java.lang.Long l
        end local 1 // long id
        end local 0 // java.lang.String name
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    4     0  name  Ljava/lang/String;
            0    4     1    id  J
            1    4     3     l  Ljava/lang/Long;
    MethodParameters:
      Name  Flags
      name  
      id    

  static long getKeyType(java.lang.String);
    descriptor: (Ljava/lang/String;)J
    flags: (0x0008) ACC_STATIC
    Code:
      stack=2, locals=2, args_size=1
        start local 0 // java.lang.String algorithm
         0: .line 90
            getstatic sun.security.pkcs11.P11SecretKeyFactory.keyTypes:Ljava/util/Map;
            aload 0 /* algorithm */
            invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
            checkcast java.lang.Long
            astore 1 /* l */
        start local 1 // java.lang.Long l
         1: .line 91
            aload 1 /* l */
            ifnonnull 9
         2: .line 92
            aload 0 /* algorithm */
            getstatic java.util.Locale.ENGLISH:Ljava/util/Locale;
            invokevirtual java.lang.String.toUpperCase:(Ljava/util/Locale;)Ljava/lang/String;
            astore 0 /* algorithm */
         3: .line 93
            getstatic sun.security.pkcs11.P11SecretKeyFactory.keyTypes:Ljava/util/Map;
            aload 0 /* algorithm */
            invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
            checkcast java.lang.Long
            astore 1 /* l */
         4: .line 94
            aload 1 /* l */
            ifnonnull 9
         5: .line 95
            aload 0 /* algorithm */
            ldc "HMAC"
            invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
            ifeq 7
         6: .line 96
            ldc 2147483427
            lreturn
         7: .line 97
      StackMap locals: java.lang.Long
      StackMap stack:
            aload 0 /* algorithm */
            ldc "SSLMAC"
            invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
            ifeq 9
         8: .line 98
            ldc 2147483428
            lreturn
         9: .line 102
      StackMap locals:
      StackMap stack:
            aload 1 /* l */
            ifnull 10
            aload 1 /* l */
            invokevirtual java.lang.Long.longValue:()J
            goto 11
      StackMap locals:
      StackMap stack:
        10: ldc -1
      StackMap locals:
      StackMap stack: long
        11: lreturn
        end local 1 // java.lang.Long l
        end local 0 // java.lang.String algorithm
      LocalVariableTable:
        Start  End  Slot       Name  Signature
            0   12     0  algorithm  Ljava/lang/String;
            1   12     1          l  Ljava/lang/Long;
    MethodParameters:
           Name  Flags
      algorithm  

  static sun.security.pkcs11.P11Key convertKey(sun.security.pkcs11.Token, java.security.Key, java.lang.String);
    descriptor: (Lsun/security/pkcs11/Token;Ljava/security/Key;Ljava/lang/String;)Lsun/security/pkcs11/P11Key;
    flags: (0x0008) ACC_STATIC
    Code:
      stack=5, locals=7, args_size=3
        start local 0 // sun.security.pkcs11.Token token
        start local 1 // java.security.Key key
        start local 2 // java.lang.String algorithm
         0: .line 111
            aload 0 /* token */
            invokevirtual sun.security.pkcs11.Token.ensureValid:()V
         1: .line 112
            aload 1 /* key */
            ifnonnull 3
         2: .line 113
            new java.security.InvalidKeyException
            dup
            ldc "Key must not be null"
            invokespecial java.security.InvalidKeyException.<init>:(Ljava/lang/String;)V
            athrow
         3: .line 115
      StackMap locals:
      StackMap stack:
            aload 1 /* key */
            instanceof javax.crypto.SecretKey
            ifne 5
         4: .line 116
            new java.security.InvalidKeyException
            dup
            ldc "Key must be a SecretKey"
            invokespecial java.security.InvalidKeyException.<init>:(Ljava/lang/String;)V
            athrow
         5: .line 119
      StackMap locals:
      StackMap stack:
            aload 2 /* algorithm */
            ifnonnull 9
         6: .line 120
            aload 1 /* key */
            invokeinterface java.security.Key.getAlgorithm:()Ljava/lang/String;
            astore 2 /* algorithm */
         7: .line 121
            aload 2 /* algorithm */
            invokestatic sun.security.pkcs11.P11SecretKeyFactory.getKeyType:(Ljava/lang/String;)J
            lstore 3 /* algorithmType */
        start local 3 // long algorithmType
         8: .line 122
            goto 16
        end local 3 // long algorithmType
         9: .line 123
      StackMap locals:
      StackMap stack:
            aload 2 /* algorithm */
            invokestatic sun.security.pkcs11.P11SecretKeyFactory.getKeyType:(Ljava/lang/String;)J
            lstore 3 /* algorithmType */
        start local 3 // long algorithmType
        10: .line 124
            aload 1 /* key */
            invokeinterface java.security.Key.getAlgorithm:()Ljava/lang/String;
            invokestatic sun.security.pkcs11.P11SecretKeyFactory.getKeyType:(Ljava/lang/String;)J
            lstore 5 /* keyAlgorithmType */
        start local 5 // long keyAlgorithmType
        11: .line 125
            lload 3 /* algorithmType */
            lload 5 /* keyAlgorithmType */
            lcmp
            ifeq 16
        12: .line 126
            lload 3 /* algorithmType */
            ldc 2147483427
            lcmp
            ifeq 16
            lload 3 /* algorithmType */
            ldc 2147483428
            lcmp
            ifeq 16
        13: .line 129
            new java.security.InvalidKeyException
            dup
        14: .line 130
            new java.lang.StringBuilder
            dup
            ldc "Key algorithm must be "
            invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
            aload 2 /* algorithm */
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
            invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
        15: .line 129
            invokespecial java.security.InvalidKeyException.<init>:(Ljava/lang/String;)V
            athrow
        end local 5 // long keyAlgorithmType
        16: .line 134
      StackMap locals: long
      StackMap stack:
            aload 1 /* key */
            instanceof sun.security.pkcs11.P11Key
            ifeq 20
        17: .line 135
            aload 1 /* key */
            checkcast sun.security.pkcs11.P11Key
            astore 5 /* p11Key */
        start local 5 // sun.security.pkcs11.P11Key p11Key
        18: .line 136
            aload 5 /* p11Key */
            getfield sun.security.pkcs11.P11Key.token:Lsun/security/pkcs11/Token;
            aload 0 /* token */
            if_acmpne 20
        19: .line 137
            aload 5 /* p11Key */
            areturn
        end local 5 // sun.security.pkcs11.P11Key p11Key
        20: .line 140
      StackMap locals:
      StackMap stack:
            aload 0 /* token */
            getfield sun.security.pkcs11.Token.secretCache:Lsun/security/pkcs11/KeyCache;
            aload 1 /* key */
            invokevirtual sun.security.pkcs11.KeyCache.get:(Ljava/security/Key;)Lsun/security/pkcs11/P11Key;
            astore 5 /* p11Key */
        start local 5 // sun.security.pkcs11.P11Key p11Key
        21: .line 141
            aload 5 /* p11Key */
            ifnull 23
        22: .line 142
            aload 5 /* p11Key */
            areturn
        23: .line 144
      StackMap locals: sun.security.pkcs11.P11Key
      StackMap stack:
            ldc "RAW"
            aload 1 /* key */
            invokeinterface java.security.Key.getFormat:()Ljava/lang/String;
            invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
            ifne 25
        24: .line 145
            new java.security.InvalidKeyException
            dup
            ldc "Encoded format must be RAW"
            invokespecial java.security.InvalidKeyException.<init>:(Ljava/lang/String;)V
            athrow
        25: .line 147
      StackMap locals:
      StackMap stack:
            aload 1 /* key */
            invokeinterface java.security.Key.getEncoded:()[B
            astore 6 /* encoded */
        start local 6 // byte[] encoded
        26: .line 148
            aload 0 /* token */
            aload 6 /* encoded */
            aload 2 /* algorithm */
            lload 3 /* algorithmType */
            invokestatic sun.security.pkcs11.P11SecretKeyFactory.createKey:(Lsun/security/pkcs11/Token;[BLjava/lang/String;J)Lsun/security/pkcs11/P11Key;
            astore 5 /* p11Key */
        27: .line 149
            aload 0 /* token */
            getfield sun.security.pkcs11.Token.secretCache:Lsun/security/pkcs11/KeyCache;
            aload 1 /* key */
            aload 5 /* p11Key */
            invokevirtual sun.security.pkcs11.KeyCache.put:(Ljava/security/Key;Lsun/security/pkcs11/P11Key;)V
        28: .line 150
            aload 5 /* p11Key */
            areturn
        end local 6 // byte[] encoded
        end local 5 // sun.security.pkcs11.P11Key p11Key
        end local 3 // long algorithmType
        end local 2 // java.lang.String algorithm
        end local 1 // java.security.Key key
        end local 0 // sun.security.pkcs11.Token token
      LocalVariableTable:
        Start  End  Slot              Name  Signature
            0   29     0             token  Lsun/security/pkcs11/Token;
            0   29     1               key  Ljava/security/Key;
            0   29     2         algorithm  Ljava/lang/String;
            8    9     3     algorithmType  J
           10   29     3     algorithmType  J
           11   16     5  keyAlgorithmType  J
           18   20     5            p11Key  Lsun/security/pkcs11/P11Key;
           21   29     5            p11Key  Lsun/security/pkcs11/P11Key;
           26   29     6           encoded  [B
    Exceptions:
      throws java.security.InvalidKeyException
    MethodParameters:
           Name  Flags
      token      
      key        
      algorithm  

  static void fixDESParity(byte[], int);
    descriptor: ([BI)V
    flags: (0x0008) ACC_STATIC
    Code:
      stack=3, locals=4, args_size=2
        start local 0 // byte[] key
        start local 1 // int offset
         0: .line 154
            iconst_0
            istore 2 /* i */
        start local 2 // int i
         1: goto 6
         2: .line 155
      StackMap locals: int
      StackMap stack:
            aload 0 /* key */
            iload 1 /* offset */
            baload
            sipush 254
            iand
            istore 3 /* b */
        start local 3 // int b
         3: .line 156
            iload 3 /* b */
            iload 3 /* b */
            invokestatic java.lang.Integer.bitCount:(I)I
            iconst_1
            iand
            iconst_1
            ixor
            ior
            istore 3 /* b */
         4: .line 157
            aload 0 /* key */
            iload 1 /* offset */
            iinc 1 /* offset */ 1
            iload 3 /* b */
            i2b
            bastore
        end local 3 // int b
         5: .line 154
            iinc 2 /* i */ 1
      StackMap locals:
      StackMap stack:
         6: iload 2 /* i */
            bipush 8
            if_icmplt 2
        end local 2 // int i
         7: .line 159
            return
        end local 1 // int offset
        end local 0 // byte[] key
      LocalVariableTable:
        Start  End  Slot    Name  Signature
            0    8     0     key  [B
            0    8     1  offset  I
            1    7     2       i  I
            3    5     3       b  I
    MethodParameters:
        Name  Flags
      key     
      offset  

  private static sun.security.pkcs11.P11Key createKey(sun.security.pkcs11.Token, byte[], java.lang.String, long);
    descriptor: (Lsun/security/pkcs11/Token;[BLjava/lang/String;J)Lsun/security/pkcs11/P11Key;
    flags: (0x000a) ACC_PRIVATE, ACC_STATIC
    Code:
      stack=9, locals=14, args_size=4
        start local 0 // sun.security.pkcs11.Token token
        start local 1 // byte[] encoded
        start local 2 // java.lang.String algorithm
        start local 3 // long keyType
         0: .line 163
            aload 1 /* encoded */
            arraylength
            istore 5 /* n */
        start local 5 // int n
         1: .line 165
            lload 3 /* keyType */
            l2i
            lookupswitch { // 11
                   16: 41
                   18: 2
                   19: 8
                   21: 15
                   31: 29
                   32: 35
           2147483427: 44
           2147483428: 44
           2147483429: 41
           2147483430: 41
           2147483431: 41
              default: 51
          }
         2: .line 167
      StackMap locals: int
      StackMap stack:
            iload 5 /* n */
            iconst_5
            if_icmplt 3
            iload 5 /* n */
            sipush 128
            if_icmple 6
         3: .line 168
      StackMap locals:
      StackMap stack:
            new java.security.InvalidKeyException
            dup
         4: .line 169
            ldc "ARCFOUR key length must be between 5 and 128 bytes"
         5: .line 168
            invokespecial java.security.InvalidKeyException.<init>:(Ljava/lang/String;)V
            athrow
         6: .line 171
      StackMap locals:
      StackMap stack:
            iload 5 /* n */
            iconst_3
            ishl
            istore 6 /* keyLength */
        start local 6 // int keyLength
         7: .line 172
            goto 52
        end local 6 // int keyLength
         8: .line 174
      StackMap locals:
      StackMap stack:
            iload 5 /* n */
            bipush 8
            if_icmpeq 12
         9: .line 175
            new java.security.InvalidKeyException
            dup
        10: .line 176
            ldc "DES key length must be 8 bytes"
        11: .line 175
            invokespecial java.security.InvalidKeyException.<init>:(Ljava/lang/String;)V
            athrow
        12: .line 178
      StackMap locals:
      StackMap stack:
            bipush 56
            istore 6 /* keyLength */
        start local 6 // int keyLength
        13: .line 179
            aload 1 /* encoded */
            iconst_0
            invokestatic sun.security.pkcs11.P11SecretKeyFactory.fixDESParity:([BI)V
        14: .line 180
            goto 52
        end local 6 // int keyLength
        15: .line 182
      StackMap locals:
      StackMap stack:
            iload 5 /* n */
            bipush 16
            if_icmpne 18
        16: .line 183
            ldc 20
            lstore 3 /* keyType */
        17: .line 184
            goto 25
      StackMap locals:
      StackMap stack:
        18: iload 5 /* n */
            bipush 24
            if_icmpne 22
        19: .line 185
            ldc 21
            lstore 3 /* keyType */
        20: .line 186
            aload 1 /* encoded */
            bipush 16
            invokestatic sun.security.pkcs11.P11SecretKeyFactory.fixDESParity:([BI)V
        21: .line 187
            goto 25
        22: .line 188
      StackMap locals:
      StackMap stack:
            new java.security.InvalidKeyException
            dup
        23: .line 189
            ldc "DESede key length must be 16 or 24 bytes"
        24: .line 188
            invokespecial java.security.InvalidKeyException.<init>:(Ljava/lang/String;)V
            athrow
        25: .line 191
      StackMap locals:
      StackMap stack:
            aload 1 /* encoded */
            iconst_0
            invokestatic sun.security.pkcs11.P11SecretKeyFactory.fixDESParity:([BI)V
        26: .line 192
            aload 1 /* encoded */
            bipush 8
            invokestatic sun.security.pkcs11.P11SecretKeyFactory.fixDESParity:([BI)V
        27: .line 193
            iload 5 /* n */
            bipush 7
            imul
            istore 6 /* keyLength */
        start local 6 // int keyLength
        28: .line 194
            goto 52
        end local 6 // int keyLength
        29: .line 196
      StackMap locals:
      StackMap stack:
            iload 5 /* n */
            bipush 16
            if_icmpeq 33
            iload 5 /* n */
            bipush 24
            if_icmpeq 33
            iload 5 /* n */
            bipush 32
            if_icmpeq 33
        30: .line 197
            new java.security.InvalidKeyException
            dup
        31: .line 198
            ldc "AES key length must be 16, 24, or 32 bytes"
        32: .line 197
            invokespecial java.security.InvalidKeyException.<init>:(Ljava/lang/String;)V
            athrow
        33: .line 200
      StackMap locals:
      StackMap stack:
            iload 5 /* n */
            iconst_3
            ishl
            istore 6 /* keyLength */
        start local 6 // int keyLength
        34: .line 201
            goto 52
        end local 6 // int keyLength
        35: .line 203
      StackMap locals:
      StackMap stack:
            iload 5 /* n */
            iconst_5
            if_icmplt 36
            iload 5 /* n */
            bipush 56
            if_icmple 39
        36: .line 204
      StackMap locals:
      StackMap stack:
            new java.security.InvalidKeyException
            dup
        37: .line 205
            ldc "Blowfish key length must be between 5 and 56 bytes"
        38: .line 204
            invokespecial java.security.InvalidKeyException.<init>:(Ljava/lang/String;)V
            athrow
        39: .line 207
      StackMap locals:
      StackMap stack:
            iload 5 /* n */
            iconst_3
            ishl
            istore 6 /* keyLength */
        start local 6 // int keyLength
        40: .line 208
            goto 52
        end local 6 // int keyLength
        41: .line 213
      StackMap locals:
      StackMap stack:
            ldc 16
            lstore 3 /* keyType */
        42: .line 214
            iload 5 /* n */
            iconst_3
            ishl
            istore 6 /* keyLength */
        start local 6 // int keyLength
        43: .line 215
            goto 52
        end local 6 // int keyLength
        44: .line 218
      StackMap locals:
      StackMap stack:
            iload 5 /* n */
            ifne 48
        45: .line 219
            new java.security.InvalidKeyException
            dup
        46: .line 220
            ldc "MAC keys must not be empty"
        47: .line 219
            invokespecial java.security.InvalidKeyException.<init>:(Ljava/lang/String;)V
            athrow
        48: .line 222
      StackMap locals:
      StackMap stack:
            ldc 16
            lstore 3 /* keyType */
        49: .line 223
            iload 5 /* n */
            iconst_3
            ishl
            istore 6 /* keyLength */
        start local 6 // int keyLength
        50: .line 224
            goto 52
        end local 6 // int keyLength
        51: .line 226
      StackMap locals:
      StackMap stack:
            new java.security.InvalidKeyException
            dup
            new java.lang.StringBuilder
            dup
            ldc "Unknown algorithm "
            invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
            aload 2 /* algorithm */
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
            invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
            invokespecial java.security.InvalidKeyException.<init>:(Ljava/lang/String;)V
            athrow
        start local 6 // int keyLength
        52: .line 228
      StackMap locals: int
      StackMap stack:
            aconst_null
            astore 7 /* session */
        start local 7 // sun.security.pkcs11.Session session
        53: .line 230
            iconst_3
            anewarray sun.security.pkcs11.wrapper.CK_ATTRIBUTE
            dup
            iconst_0
        54: .line 231
            new sun.security.pkcs11.wrapper.CK_ATTRIBUTE
            dup
            lconst_0
            ldc 4
            invokespecial sun.security.pkcs11.wrapper.CK_ATTRIBUTE.<init>:(JJ)V
            aastore
            dup
            iconst_1
        55: .line 232
            new sun.security.pkcs11.wrapper.CK_ATTRIBUTE
            dup
            ldc 256
            lload 3 /* keyType */
            invokespecial sun.security.pkcs11.wrapper.CK_ATTRIBUTE.<init>:(JJ)V
            aastore
            dup
            iconst_2
        56: .line 233
            new sun.security.pkcs11.wrapper.CK_ATTRIBUTE
            dup
            ldc 17
            aload 1 /* encoded */
            invokespecial sun.security.pkcs11.wrapper.CK_ATTRIBUTE.<init>:(JLjava/lang/Object;)V
            aastore
        57: .line 230
            astore 8 /* attributes */
        start local 8 // sun.security.pkcs11.wrapper.CK_ATTRIBUTE[] attributes
        58: .line 235
            aload 0 /* token */
        59: .line 236
            ldc "import"
            ldc 4
            lload 3 /* keyType */
            aload 8 /* attributes */
        60: .line 235
            invokevirtual sun.security.pkcs11.Token.getAttributes:(Ljava/lang/String;JJ[Lsun/security/pkcs11/wrapper/CK_ATTRIBUTE;)[Lsun/security/pkcs11/wrapper/CK_ATTRIBUTE;
            astore 8 /* attributes */
        61: .line 237
            aload 0 /* token */
            invokevirtual sun.security.pkcs11.Token.getObjSession:()Lsun/security/pkcs11/Session;
            astore 7 /* session */
        62: .line 238
            aload 0 /* token */
            getfield sun.security.pkcs11.Token.p11:Lsun/security/pkcs11/wrapper/PKCS11;
            aload 7 /* session */
            invokevirtual sun.security.pkcs11.Session.id:()J
            aload 8 /* attributes */
            invokevirtual sun.security.pkcs11.wrapper.PKCS11.C_CreateObject:(J[Lsun/security/pkcs11/wrapper/CK_ATTRIBUTE;)J
            lstore 9 /* keyID */
        start local 9 // long keyID
        63: .line 240
            aload 7 /* session */
            lload 9 /* keyID */
            aload 2 /* algorithm */
            iload 6 /* keyLength */
            aload 8 /* attributes */
        64: .line 239
            invokestatic sun.security.pkcs11.P11Key.secretKey:(Lsun/security/pkcs11/Session;JLjava/lang/String;I[Lsun/security/pkcs11/wrapper/CK_ATTRIBUTE;)Ljavax/crypto/SecretKey;
            checkcast sun.security.pkcs11.P11Key
            astore 11 /* p11Key */
        start local 11 // sun.security.pkcs11.P11Key p11Key
        65: .line 241
            aload 11 /* p11Key */
            astore 13
        66: .line 245
            aload 0 /* token */
            aload 7 /* session */
            invokevirtual sun.security.pkcs11.Token.releaseSession:(Lsun/security/pkcs11/Session;)Lsun/security/pkcs11/Session;
            pop
        67: .line 241
            aload 13
            areturn
        end local 11 // sun.security.pkcs11.P11Key p11Key
        end local 9 // long keyID
        end local 8 // sun.security.pkcs11.wrapper.CK_ATTRIBUTE[] attributes
        68: .line 242
      StackMap locals: sun.security.pkcs11.Token byte[] java.lang.String long int int sun.security.pkcs11.Session
      StackMap stack: sun.security.pkcs11.wrapper.PKCS11Exception
            astore 8 /* e */
        start local 8 // sun.security.pkcs11.wrapper.PKCS11Exception e
        69: .line 243
            new java.security.InvalidKeyException
            dup
            ldc "Could not create key"
            aload 8 /* e */
            invokespecial java.security.InvalidKeyException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
            athrow
        end local 8 // sun.security.pkcs11.wrapper.PKCS11Exception e
        70: .line 244
      StackMap locals:
      StackMap stack: java.lang.Throwable
            astore 12
        71: .line 245
            aload 0 /* token */
            aload 7 /* session */
            invokevirtual sun.security.pkcs11.Token.releaseSession:(Lsun/security/pkcs11/Session;)Lsun/security/pkcs11/Session;
            pop
        72: .line 246
            aload 12
            athrow
        end local 7 // sun.security.pkcs11.Session session
        end local 6 // int keyLength
        end local 5 // int n
        end local 3 // long keyType
        end local 2 // java.lang.String algorithm
        end local 1 // byte[] encoded
        end local 0 // sun.security.pkcs11.Token token
      LocalVariableTable:
        Start  End  Slot        Name  Signature
            0   73     0       token  Lsun/security/pkcs11/Token;
            0   73     1     encoded  [B
            0   73     2   algorithm  Ljava/lang/String;
            0   73     3     keyType  J
            1   73     5           n  I
            7    8     6   keyLength  I
           13   15     6   keyLength  I
           28   29     6   keyLength  I
           34   35     6   keyLength  I
           40   41     6   keyLength  I
           43   44     6   keyLength  I
           50   51     6   keyLength  I
           52   73     6   keyLength  I
           53   73     7     session  Lsun/security/pkcs11/Session;
           58   68     8  attributes  [Lsun/security/pkcs11/wrapper/CK_ATTRIBUTE;
           63   68     9       keyID  J
           65   68    11      p11Key  Lsun/security/pkcs11/P11Key;
           69   70     8           e  Lsun/security/pkcs11/wrapper/PKCS11Exception;
      Exception table:
        from    to  target  type
          53    66      68  Class sun.security.pkcs11.wrapper.PKCS11Exception
          53    66      70  any
          68    70      70  any
    Exceptions:
      throws java.security.InvalidKeyException
    MethodParameters:
           Name  Flags
      token      
      encoded    
      algorithm  
      keyType    

  protected javax.crypto.SecretKey engineGenerateSecret(java.security.spec.KeySpec);
    descriptor: (Ljava/security/spec/KeySpec;)Ljavax/crypto/SecretKey;
    flags: (0x0004) ACC_PROTECTED
    Code:
      stack=5, locals=3, args_size=2
        start local 0 // sun.security.pkcs11.P11SecretKeyFactory this
        start local 1 // java.security.spec.KeySpec keySpec
         0: .line 252
            aload 0 /* this */
            getfield sun.security.pkcs11.P11SecretKeyFactory.token:Lsun/security/pkcs11/Token;
            invokevirtual sun.security.pkcs11.Token.ensureValid:()V
         1: .line 253
            aload 1 /* keySpec */
            ifnonnull 3
         2: .line 254
            new java.security.spec.InvalidKeySpecException
            dup
            ldc "KeySpec must not be null"
            invokespecial java.security.spec.InvalidKeySpecException.<init>:(Ljava/lang/String;)V
            athrow
         3: .line 256
      StackMap locals:
      StackMap stack:
            aload 1 /* keySpec */
            instanceof javax.crypto.spec.SecretKeySpec
            ifeq 9
         4: .line 258
            aload 0 /* this */
            getfield sun.security.pkcs11.P11SecretKeyFactory.token:Lsun/security/pkcs11/Token;
            aload 1 /* keySpec */
            checkcast javax.crypto.SecretKey
            aload 0 /* this */
            getfield sun.security.pkcs11.P11SecretKeyFactory.algorithm:Ljava/lang/String;
            invokestatic sun.security.pkcs11.P11SecretKeyFactory.convertKey:(Lsun/security/pkcs11/Token;Ljava/security/Key;Ljava/lang/String;)Lsun/security/pkcs11/P11Key;
            astore 2 /* key */
        start local 2 // java.security.Key key
         5: .line 259
            aload 2 /* key */
            checkcast javax.crypto.SecretKey
         6: areturn
        end local 2 // java.security.Key key
         7: .line 260
      StackMap locals:
      StackMap stack: java.security.InvalidKeyException
            astore 2 /* e */
        start local 2 // java.security.InvalidKeyException e
         8: .line 261
            new java.security.spec.InvalidKeySpecException
            dup
            aload 2 /* e */
            invokespecial java.security.spec.InvalidKeySpecException.<init>:(Ljava/lang/Throwable;)V
            athrow
        end local 2 // java.security.InvalidKeyException e
         9: .line 263
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield sun.security.pkcs11.P11SecretKeyFactory.algorithm:Ljava/lang/String;
            ldc "DES"
            invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
            ifeq 14
        10: .line 264
            aload 1 /* keySpec */
            instanceof javax.crypto.spec.DESKeySpec
            ifeq 19
        11: .line 265
            aload 1 /* keySpec */
            checkcast javax.crypto.spec.DESKeySpec
            invokevirtual javax.crypto.spec.DESKeySpec.getKey:()[B
            astore 2 /* keyBytes */
        start local 2 // byte[] keyBytes
        12: .line 266
            new javax.crypto.spec.SecretKeySpec
            dup
            aload 2 /* keyBytes */
            ldc "DES"
            invokespecial javax.crypto.spec.SecretKeySpec.<init>:([BLjava/lang/String;)V
            astore 1 /* keySpec */
        13: .line 267
            aload 0 /* this */
            aload 1 /* keySpec */
            invokevirtual sun.security.pkcs11.P11SecretKeyFactory.engineGenerateSecret:(Ljava/security/spec/KeySpec;)Ljavax/crypto/SecretKey;
            areturn
        end local 2 // byte[] keyBytes
        14: .line 269
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield sun.security.pkcs11.P11SecretKeyFactory.algorithm:Ljava/lang/String;
            ldc "DESede"
            invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
            ifeq 19
        15: .line 270
            aload 1 /* keySpec */
            instanceof javax.crypto.spec.DESedeKeySpec
            ifeq 19
        16: .line 271
            aload 1 /* keySpec */
            checkcast javax.crypto.spec.DESedeKeySpec
            invokevirtual javax.crypto.spec.DESedeKeySpec.getKey:()[B
            astore 2 /* keyBytes */
        start local 2 // byte[] keyBytes
        17: .line 272
            new javax.crypto.spec.SecretKeySpec
            dup
            aload 2 /* keyBytes */
            ldc "DESede"
            invokespecial javax.crypto.spec.SecretKeySpec.<init>:([BLjava/lang/String;)V
            astore 1 /* keySpec */
        18: .line 273
            aload 0 /* this */
            aload 1 /* keySpec */
            invokevirtual sun.security.pkcs11.P11SecretKeyFactory.engineGenerateSecret:(Ljava/security/spec/KeySpec;)Ljavax/crypto/SecretKey;
            areturn
        end local 2 // byte[] keyBytes
        19: .line 276
      StackMap locals:
      StackMap stack:
            new java.security.spec.InvalidKeySpecException
            dup
        20: .line 277
            new java.lang.StringBuilder
            dup
            ldc "Unsupported spec: "
            invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
            aload 1 /* keySpec */
            invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
            invokevirtual java.lang.Class.getName:()Ljava/lang/String;
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
            invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
        21: .line 276
            invokespecial java.security.spec.InvalidKeySpecException.<init>:(Ljava/lang/String;)V
            athrow
        end local 1 // java.security.spec.KeySpec keySpec
        end local 0 // sun.security.pkcs11.P11SecretKeyFactory this
      LocalVariableTable:
        Start  End  Slot      Name  Signature
            0   22     0      this  Lsun/security/pkcs11/P11SecretKeyFactory;
            0   22     1   keySpec  Ljava/security/spec/KeySpec;
            5    7     2       key  Ljava/security/Key;
            8    9     2         e  Ljava/security/InvalidKeyException;
           12   14     2  keyBytes  [B
           17   19     2  keyBytes  [B
      Exception table:
        from    to  target  type
           4     6       7  Class java.security.InvalidKeyException
    Exceptions:
      throws java.security.spec.InvalidKeySpecException
    MethodParameters:
         Name  Flags
      keySpec  

  private byte[] getKeyBytes(javax.crypto.SecretKey);
    descriptor: (Ljavax/crypto/SecretKey;)[B
    flags: (0x0002) ACC_PRIVATE
    Code:
      stack=3, locals=3, args_size=2
        start local 0 // sun.security.pkcs11.P11SecretKeyFactory this
        start local 1 // javax.crypto.SecretKey key
         0: .line 282
            aload 0 /* this */
            aload 1 /* key */
            invokevirtual sun.security.pkcs11.P11SecretKeyFactory.engineTranslateKey:(Ljavax/crypto/SecretKey;)Ljavax/crypto/SecretKey;
            astore 1 /* key */
         1: .line 283
            ldc "RAW"
            aload 1 /* key */
            invokeinterface javax.crypto.SecretKey.getFormat:()Ljava/lang/String;
            invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
            ifne 5
         2: .line 284
            new java.security.spec.InvalidKeySpecException
            dup
         3: .line 285
            ldc "Could not obtain key bytes"
         4: .line 284
            invokespecial java.security.spec.InvalidKeySpecException.<init>:(Ljava/lang/String;)V
            athrow
         5: .line 287
      StackMap locals:
      StackMap stack:
            aload 1 /* key */
            invokeinterface javax.crypto.SecretKey.getEncoded:()[B
            astore 2 /* k */
        start local 2 // byte[] k
         6: .line 288
            aload 2 /* k */
         7: areturn
        end local 2 // byte[] k
         8: .line 289
      StackMap locals:
      StackMap stack: java.security.InvalidKeyException
            astore 2 /* e */
        start local 2 // java.security.InvalidKeyException e
         9: .line 290
            new java.security.spec.InvalidKeySpecException
            dup
            aload 2 /* e */
            invokespecial java.security.spec.InvalidKeySpecException.<init>:(Ljava/lang/Throwable;)V
            athrow
        end local 2 // java.security.InvalidKeyException e
        end local 1 // javax.crypto.SecretKey key
        end local 0 // sun.security.pkcs11.P11SecretKeyFactory this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0   10     0  this  Lsun/security/pkcs11/P11SecretKeyFactory;
            0   10     1   key  Ljavax/crypto/SecretKey;
            6    8     2     k  [B
            9   10     2     e  Ljava/security/InvalidKeyException;
      Exception table:
        from    to  target  type
           0     7       8  Class java.security.InvalidKeyException
    Exceptions:
      throws java.security.spec.InvalidKeySpecException
    MethodParameters:
      Name  Flags
      key   

  protected java.security.spec.KeySpec engineGetKeySpec(javax.crypto.SecretKey, java.lang.Class);
    descriptor: (Ljavax/crypto/SecretKey;Ljava/lang/Class;)Ljava/security/spec/KeySpec;
    flags: (0x0004) ACC_PROTECTED
    Code:
      stack=5, locals=4, args_size=3
        start local 0 // sun.security.pkcs11.P11SecretKeyFactory this
        start local 1 // javax.crypto.SecretKey key
        start local 2 // java.lang.Class keySpec
         0: .line 297
            aload 0 /* this */
            getfield sun.security.pkcs11.P11SecretKeyFactory.token:Lsun/security/pkcs11/Token;
            invokevirtual sun.security.pkcs11.Token.ensureValid:()V
         1: .line 298
            aload 1 /* key */
            ifnull 2
            aload 2 /* keySpec */
            ifnonnull 5
         2: .line 299
      StackMap locals:
      StackMap stack:
            new java.security.spec.InvalidKeySpecException
            dup
         3: .line 300
            ldc "key and keySpec must not be null"
         4: .line 299
            invokespecial java.security.spec.InvalidKeySpecException.<init>:(Ljava/lang/String;)V
            athrow
         5: .line 302
      StackMap locals:
      StackMap stack:
            ldc Ljavax/crypto/spec/SecretKeySpec;
            aload 2 /* keySpec */
            invokevirtual java.lang.Class.isAssignableFrom:(Ljava/lang/Class;)Z
            ifeq 7
         6: .line 303
            new javax.crypto.spec.SecretKeySpec
            dup
            aload 0 /* this */
            aload 1 /* key */
            invokevirtual sun.security.pkcs11.P11SecretKeyFactory.getKeyBytes:(Ljavax/crypto/SecretKey;)[B
            aload 0 /* this */
            getfield sun.security.pkcs11.P11SecretKeyFactory.algorithm:Ljava/lang/String;
            invokespecial javax.crypto.spec.SecretKeySpec.<init>:([BLjava/lang/String;)V
            areturn
         7: .line 304
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield sun.security.pkcs11.P11SecretKeyFactory.algorithm:Ljava/lang/String;
            ldc "DES"
            invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
            ifeq 13
         8: .line 306
            ldc Ljavax/crypto/spec/DESKeySpec;
            aload 2 /* keySpec */
            invokevirtual java.lang.Class.isAssignableFrom:(Ljava/lang/Class;)Z
            ifeq 19
         9: .line 307
            new javax.crypto.spec.DESKeySpec
            dup
            aload 0 /* this */
            aload 1 /* key */
            invokevirtual sun.security.pkcs11.P11SecretKeyFactory.getKeyBytes:(Ljavax/crypto/SecretKey;)[B
            invokespecial javax.crypto.spec.DESKeySpec.<init>:([B)V
        10: areturn
        11: .line 309
      StackMap locals:
      StackMap stack: java.security.InvalidKeyException
            astore 3 /* e */
        start local 3 // java.security.InvalidKeyException e
        12: .line 310
            new java.security.spec.InvalidKeySpecException
            dup
            aload 3 /* e */
            invokespecial java.security.spec.InvalidKeySpecException.<init>:(Ljava/lang/Throwable;)V
            athrow
        end local 3 // java.security.InvalidKeyException e
        13: .line 312
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield sun.security.pkcs11.P11SecretKeyFactory.algorithm:Ljava/lang/String;
            ldc "DESede"
            invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
            ifeq 19
        14: .line 314
            ldc Ljavax/crypto/spec/DESedeKeySpec;
            aload 2 /* keySpec */
            invokevirtual java.lang.Class.isAssignableFrom:(Ljava/lang/Class;)Z
            ifeq 19
        15: .line 315
            new javax.crypto.spec.DESedeKeySpec
            dup
            aload 0 /* this */
            aload 1 /* key */
            invokevirtual sun.security.pkcs11.P11SecretKeyFactory.getKeyBytes:(Ljavax/crypto/SecretKey;)[B
            invokespecial javax.crypto.spec.DESedeKeySpec.<init>:([B)V
        16: areturn
        17: .line 317
      StackMap locals:
      StackMap stack: java.security.InvalidKeyException
            astore 3 /* e */
        start local 3 // java.security.InvalidKeyException e
        18: .line 318
            new java.security.spec.InvalidKeySpecException
            dup
            aload 3 /* e */
            invokespecial java.security.spec.InvalidKeySpecException.<init>:(Ljava/lang/Throwable;)V
            athrow
        end local 3 // java.security.InvalidKeyException e
        19: .line 321
      StackMap locals:
      StackMap stack:
            new java.security.spec.InvalidKeySpecException
            dup
        20: .line 322
            new java.lang.StringBuilder
            dup
            ldc "Unsupported spec: "
            invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
            aload 2 /* keySpec */
            invokevirtual java.lang.Class.getName:()Ljava/lang/String;
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
            invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
        21: .line 321
            invokespecial java.security.spec.InvalidKeySpecException.<init>:(Ljava/lang/String;)V
            athrow
        end local 2 // java.lang.Class keySpec
        end local 1 // javax.crypto.SecretKey key
        end local 0 // sun.security.pkcs11.P11SecretKeyFactory this
      LocalVariableTable:
        Start  End  Slot     Name  Signature
            0   22     0     this  Lsun/security/pkcs11/P11SecretKeyFactory;
            0   22     1      key  Ljavax/crypto/SecretKey;
            0   22     2  keySpec  Ljava/lang/Class;
           12   13     3        e  Ljava/security/InvalidKeyException;
           18   19     3        e  Ljava/security/InvalidKeyException;
      Exception table:
        from    to  target  type
           8    10      11  Class java.security.InvalidKeyException
          14    16      17  Class java.security.InvalidKeyException
    Exceptions:
      throws java.security.spec.InvalidKeySpecException
    MethodParameters:
         Name  Flags
      key      
      keySpec  

  protected javax.crypto.SecretKey engineTranslateKey(javax.crypto.SecretKey);
    descriptor: (Ljavax/crypto/SecretKey;)Ljavax/crypto/SecretKey;
    flags: (0x0004) ACC_PROTECTED
    Code:
      stack=3, locals=2, args_size=2
        start local 0 // sun.security.pkcs11.P11SecretKeyFactory this
        start local 1 // javax.crypto.SecretKey key
         0: .line 328
            aload 0 /* this */
            getfield sun.security.pkcs11.P11SecretKeyFactory.token:Lsun/security/pkcs11/Token;
            aload 1 /* key */
            aload 0 /* this */
            getfield sun.security.pkcs11.P11SecretKeyFactory.algorithm:Ljava/lang/String;
            invokestatic sun.security.pkcs11.P11SecretKeyFactory.convertKey:(Lsun/security/pkcs11/Token;Ljava/security/Key;Ljava/lang/String;)Lsun/security/pkcs11/P11Key;
            checkcast javax.crypto.SecretKey
            areturn
        end local 1 // javax.crypto.SecretKey key
        end local 0 // sun.security.pkcs11.P11SecretKeyFactory this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Lsun/security/pkcs11/P11SecretKeyFactory;
            0    1     1   key  Ljavax/crypto/SecretKey;
    Exceptions:
      throws java.security.InvalidKeyException
    MethodParameters:
      Name  Flags
      key   
}
SourceFile: "P11SecretKeyFactory.java"