final class sun.security.pkcs11.P11ECDHKeyAgreement extends javax.crypto.KeyAgreementSpi
  minor version: 0
  major version: 59
  flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
  this_class: sun.security.pkcs11.P11ECDHKeyAgreement
  super_class: javax.crypto.KeyAgreementSpi
{
  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.pkcs11.P11Key privateKey;
    descriptor: Lsun/security/pkcs11/P11Key;
    flags: (0x0002) ACC_PRIVATE

  private byte[] publicValue;
    descriptor: [B
    flags: (0x0002) ACC_PRIVATE

  private int secretLen;
    descriptor: I
    flags: (0x0002) ACC_PRIVATE

  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 // sun.security.pkcs11.P11ECDHKeyAgreement this
        start local 1 // sun.security.pkcs11.Token token
        start local 2 // java.lang.String algorithm
        start local 3 // long mechanism
         0: .line 65
            aload 0 /* this */
            invokespecial javax.crypto.KeyAgreementSpi.<init>:()V
         1: .line 66
            aload 0 /* this */
            aload 1 /* token */
            putfield sun.security.pkcs11.P11ECDHKeyAgreement.token:Lsun/security/pkcs11/Token;
         2: .line 67
            aload 0 /* this */
            aload 2 /* algorithm */
            putfield sun.security.pkcs11.P11ECDHKeyAgreement.algorithm:Ljava/lang/String;
         3: .line 68
            aload 0 /* this */
            lload 3 /* mechanism */
            putfield sun.security.pkcs11.P11ECDHKeyAgreement.mechanism:J
         4: .line 69
            return
        end local 3 // long mechanism
        end local 2 // java.lang.String algorithm
        end local 1 // sun.security.pkcs11.Token token
        end local 0 // sun.security.pkcs11.P11ECDHKeyAgreement this
      LocalVariableTable:
        Start  End  Slot       Name  Signature
            0    5     0       this  Lsun/security/pkcs11/P11ECDHKeyAgreement;
            0    5     1      token  Lsun/security/pkcs11/Token;
            0    5     2  algorithm  Ljava/lang/String;
            0    5     3  mechanism  J
    MethodParameters:
           Name  Flags
      token      
      algorithm  
      mechanism  

  protected void engineInit(java.security.Key, java.security.SecureRandom);
    descriptor: (Ljava/security/Key;Ljava/security/SecureRandom;)V
    flags: (0x0004) ACC_PROTECTED
    Code:
      stack=4, locals=3, args_size=3
        start local 0 // sun.security.pkcs11.P11ECDHKeyAgreement this
        start local 1 // java.security.Key key
        start local 2 // java.security.SecureRandom random
         0: .line 74
            aload 1 /* key */
            instanceof java.security.PrivateKey
            ifne 4
         1: .line 75
            new java.security.InvalidKeyException
            dup
         2: .line 76
            ldc "Key must be instance of PrivateKey"
         3: .line 75
            invokespecial java.security.InvalidKeyException.<init>:(Ljava/lang/String;)V
            athrow
         4: .line 78
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            aload 0 /* this */
            getfield sun.security.pkcs11.P11ECDHKeyAgreement.token:Lsun/security/pkcs11/Token;
            aload 1 /* key */
            ldc "EC"
            invokestatic sun.security.pkcs11.P11KeyFactory.convertKey:(Lsun/security/pkcs11/Token;Ljava/security/Key;Ljava/lang/String;)Lsun/security/pkcs11/P11Key;
            putfield sun.security.pkcs11.P11ECDHKeyAgreement.privateKey:Lsun/security/pkcs11/P11Key;
         5: .line 79
            aload 0 /* this */
            aconst_null
            putfield sun.security.pkcs11.P11ECDHKeyAgreement.publicValue:[B
         6: .line 80
            return
        end local 2 // java.security.SecureRandom random
        end local 1 // java.security.Key key
        end local 0 // sun.security.pkcs11.P11ECDHKeyAgreement this
      LocalVariableTable:
        Start  End  Slot    Name  Signature
            0    7     0    this  Lsun/security/pkcs11/P11ECDHKeyAgreement;
            0    7     1     key  Ljava/security/Key;
            0    7     2  random  Ljava/security/SecureRandom;
    Exceptions:
      throws java.security.InvalidKeyException
    MethodParameters:
        Name  Flags
      key     
      random  

  protected void engineInit(java.security.Key, java.security.spec.AlgorithmParameterSpec, java.security.SecureRandom);
    descriptor: (Ljava/security/Key;Ljava/security/spec/AlgorithmParameterSpec;Ljava/security/SecureRandom;)V
    flags: (0x0004) ACC_PROTECTED
    Code:
      stack=3, locals=4, args_size=4
        start local 0 // sun.security.pkcs11.P11ECDHKeyAgreement this
        start local 1 // java.security.Key key
        start local 2 // java.security.spec.AlgorithmParameterSpec params
        start local 3 // java.security.SecureRandom random
         0: .line 86
            aload 2 /* params */
            ifnull 4
         1: .line 87
            new java.security.InvalidAlgorithmParameterException
            dup
         2: .line 88
            ldc "Parameters not supported"
         3: .line 87
            invokespecial java.security.InvalidAlgorithmParameterException.<init>:(Ljava/lang/String;)V
            athrow
         4: .line 90
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            aload 1 /* key */
            aload 3 /* random */
            invokevirtual sun.security.pkcs11.P11ECDHKeyAgreement.engineInit:(Ljava/security/Key;Ljava/security/SecureRandom;)V
         5: .line 91
            return
        end local 3 // java.security.SecureRandom random
        end local 2 // java.security.spec.AlgorithmParameterSpec params
        end local 1 // java.security.Key key
        end local 0 // sun.security.pkcs11.P11ECDHKeyAgreement this
      LocalVariableTable:
        Start  End  Slot    Name  Signature
            0    6     0    this  Lsun/security/pkcs11/P11ECDHKeyAgreement;
            0    6     1     key  Ljava/security/Key;
            0    6     2  params  Ljava/security/spec/AlgorithmParameterSpec;
            0    6     3  random  Ljava/security/SecureRandom;
    Exceptions:
      throws java.security.InvalidKeyException, java.security.InvalidAlgorithmParameterException
    MethodParameters:
        Name  Flags
      key     
      params  
      random  

  protected java.security.Key engineDoPhase(java.security.Key, boolean);
    descriptor: (Ljava/security/Key;Z)Ljava/security/Key;
    flags: (0x0004) ACC_PROTECTED
    Code:
      stack=3, locals=5, args_size=3
        start local 0 // sun.security.pkcs11.P11ECDHKeyAgreement this
        start local 1 // java.security.Key key
        start local 2 // boolean lastPhase
         0: .line 96
            aload 0 /* this */
            getfield sun.security.pkcs11.P11ECDHKeyAgreement.privateKey:Lsun/security/pkcs11/P11Key;
            ifnonnull 2
         1: .line 97
            new java.lang.IllegalStateException
            dup
            ldc "Not initialized"
            invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
            athrow
         2: .line 99
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield sun.security.pkcs11.P11ECDHKeyAgreement.publicValue:[B
            ifnull 4
         3: .line 100
            new java.lang.IllegalStateException
            dup
            ldc "Phase already executed"
            invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
            athrow
         4: .line 102
      StackMap locals:
      StackMap stack:
            iload 2 /* lastPhase */
            ifne 8
         5: .line 103
            new java.lang.IllegalStateException
            dup
         6: .line 104
            ldc "Only two party agreement supported, lastPhase must be true"
         7: .line 103
            invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
            athrow
         8: .line 106
      StackMap locals:
      StackMap stack:
            aload 1 /* key */
            instanceof java.security.interfaces.ECPublicKey
            ifne 12
         9: .line 107
            new java.security.InvalidKeyException
            dup
        10: .line 108
            ldc "Key must be a PublicKey with algorithm EC"
        11: .line 107
            invokespecial java.security.InvalidKeyException.<init>:(Ljava/lang/String;)V
            athrow
        12: .line 110
      StackMap locals:
      StackMap stack:
            aload 1 /* key */
            checkcast java.security.interfaces.ECPublicKey
            astore 3 /* ecKey */
        start local 3 // java.security.interfaces.ECPublicKey ecKey
        13: .line 111
            aload 3 /* ecKey */
            invokeinterface java.security.interfaces.ECPublicKey.getParams:()Ljava/security/spec/ECParameterSpec;
            invokevirtual java.security.spec.ECParameterSpec.getCurve:()Ljava/security/spec/EllipticCurve;
            invokevirtual java.security.spec.EllipticCurve.getField:()Ljava/security/spec/ECField;
            invokeinterface java.security.spec.ECField.getFieldSize:()I
            istore 4 /* keyLenBits */
        start local 4 // int keyLenBits
        14: .line 112
            aload 0 /* this */
            iload 4 /* keyLenBits */
            bipush 7
            iadd
            iconst_3
            ishr
            putfield sun.security.pkcs11.P11ECDHKeyAgreement.secretLen:I
        15: .line 113
            aload 0 /* this */
            aload 3 /* ecKey */
            invokestatic sun.security.pkcs11.P11ECKeyFactory.getEncodedPublicValue:(Ljava/security/PublicKey;)[B
            putfield sun.security.pkcs11.P11ECDHKeyAgreement.publicValue:[B
        16: .line 114
            aconst_null
            areturn
        end local 4 // int keyLenBits
        end local 3 // java.security.interfaces.ECPublicKey ecKey
        end local 2 // boolean lastPhase
        end local 1 // java.security.Key key
        end local 0 // sun.security.pkcs11.P11ECDHKeyAgreement this
      LocalVariableTable:
        Start  End  Slot        Name  Signature
            0   17     0        this  Lsun/security/pkcs11/P11ECDHKeyAgreement;
            0   17     1         key  Ljava/security/Key;
            0   17     2   lastPhase  Z
           13   17     3       ecKey  Ljava/security/interfaces/ECPublicKey;
           14   17     4  keyLenBits  I
    Exceptions:
      throws java.security.InvalidKeyException, java.lang.IllegalStateException
    MethodParameters:
           Name  Flags
      key        
      lastPhase  

  protected byte[] engineGenerateSecret();
    descriptor: ()[B
    flags: (0x0004) ACC_PROTECTED
    Code:
      stack=9, locals=9, args_size=1
        start local 0 // sun.security.pkcs11.P11ECDHKeyAgreement this
         0: .line 119
            aload 0 /* this */
            getfield sun.security.pkcs11.P11ECDHKeyAgreement.privateKey:Lsun/security/pkcs11/P11Key;
            ifnull 1
            aload 0 /* this */
            getfield sun.security.pkcs11.P11ECDHKeyAgreement.publicValue:[B
            ifnonnull 2
         1: .line 120
      StackMap locals:
      StackMap stack:
            new java.lang.IllegalStateException
            dup
            ldc "Not initialized correctly"
            invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
            athrow
         2: .line 122
      StackMap locals:
      StackMap stack:
            aconst_null
            astore 1 /* session */
        start local 1 // sun.security.pkcs11.Session session
         3: .line 124
            aload 0 /* this */
            getfield sun.security.pkcs11.P11ECDHKeyAgreement.token:Lsun/security/pkcs11/Token;
            invokevirtual sun.security.pkcs11.Token.getOpSession:()Lsun/security/pkcs11/Session;
            astore 1 /* session */
         4: .line 125
            iconst_2
            anewarray sun.security.pkcs11.wrapper.CK_ATTRIBUTE
            dup
            iconst_0
         5: .line 126
            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
         6: .line 127
            new sun.security.pkcs11.wrapper.CK_ATTRIBUTE
            dup
            ldc 256
            ldc 16
            invokespecial sun.security.pkcs11.wrapper.CK_ATTRIBUTE.<init>:(JJ)V
            aastore
         7: .line 125
            astore 2 /* attributes */
        start local 2 // sun.security.pkcs11.wrapper.CK_ATTRIBUTE[] attributes
         8: .line 130
            new sun.security.pkcs11.wrapper.CK_ECDH1_DERIVE_PARAMS
            dup
            lconst_1
            aconst_null
            aload 0 /* this */
            getfield sun.security.pkcs11.P11ECDHKeyAgreement.publicValue:[B
            invokespecial sun.security.pkcs11.wrapper.CK_ECDH1_DERIVE_PARAMS.<init>:(J[B[B)V
         9: .line 129
            astore 3 /* ckParams */
        start local 3 // sun.security.pkcs11.wrapper.CK_ECDH1_DERIVE_PARAMS ckParams
        10: .line 131
            aload 0 /* this */
            getfield sun.security.pkcs11.P11ECDHKeyAgreement.token:Lsun/security/pkcs11/Token;
        11: .line 132
            ldc "generate"
            ldc 4
            ldc 16
            aload 2 /* attributes */
        12: .line 131
            invokevirtual sun.security.pkcs11.Token.getAttributes:(Ljava/lang/String;JJ[Lsun/security/pkcs11/wrapper/CK_ATTRIBUTE;)[Lsun/security/pkcs11/wrapper/CK_ATTRIBUTE;
            astore 2 /* attributes */
        13: .line 133
            aload 0 /* this */
            getfield sun.security.pkcs11.P11ECDHKeyAgreement.token:Lsun/security/pkcs11/Token;
            getfield sun.security.pkcs11.Token.p11:Lsun/security/pkcs11/wrapper/PKCS11;
            aload 1 /* session */
            invokevirtual sun.security.pkcs11.Session.id:()J
        14: .line 134
            new sun.security.pkcs11.wrapper.CK_MECHANISM
            dup
            aload 0 /* this */
            getfield sun.security.pkcs11.P11ECDHKeyAgreement.mechanism:J
            aload 3 /* ckParams */
            invokespecial sun.security.pkcs11.wrapper.CK_MECHANISM.<init>:(JLsun/security/pkcs11/wrapper/CK_ECDH1_DERIVE_PARAMS;)V
            aload 0 /* this */
            getfield sun.security.pkcs11.P11ECDHKeyAgreement.privateKey:Lsun/security/pkcs11/P11Key;
            getfield sun.security.pkcs11.P11Key.keyID:J
        15: .line 135
            aload 2 /* attributes */
        16: .line 133
            invokevirtual sun.security.pkcs11.wrapper.PKCS11.C_DeriveKey:(JLsun/security/pkcs11/wrapper/CK_MECHANISM;J[Lsun/security/pkcs11/wrapper/CK_ATTRIBUTE;)J
            lstore 4 /* keyID */
        start local 4 // long keyID
        17: .line 136
            iconst_1
            anewarray sun.security.pkcs11.wrapper.CK_ATTRIBUTE
            dup
            iconst_0
        18: .line 137
            new sun.security.pkcs11.wrapper.CK_ATTRIBUTE
            dup
            ldc 17
            invokespecial sun.security.pkcs11.wrapper.CK_ATTRIBUTE.<init>:(J)V
            aastore
        19: .line 136
            astore 2 /* attributes */
        20: .line 139
            aload 0 /* this */
            getfield sun.security.pkcs11.P11ECDHKeyAgreement.token:Lsun/security/pkcs11/Token;
            getfield sun.security.pkcs11.Token.p11:Lsun/security/pkcs11/wrapper/PKCS11;
            aload 1 /* session */
            invokevirtual sun.security.pkcs11.Session.id:()J
            lload 4 /* keyID */
            aload 2 /* attributes */
            invokevirtual sun.security.pkcs11.wrapper.PKCS11.C_GetAttributeValue:(JJ[Lsun/security/pkcs11/wrapper/CK_ATTRIBUTE;)V
        21: .line 140
            aload 2 /* attributes */
            iconst_0
            aaload
            invokevirtual sun.security.pkcs11.wrapper.CK_ATTRIBUTE.getByteArray:()[B
            astore 6 /* secret */
        start local 6 // byte[] secret
        22: .line 141
            aload 0 /* this */
            getfield sun.security.pkcs11.P11ECDHKeyAgreement.token:Lsun/security/pkcs11/Token;
            getfield sun.security.pkcs11.Token.p11:Lsun/security/pkcs11/wrapper/PKCS11;
            aload 1 /* session */
            invokevirtual sun.security.pkcs11.Session.id:()J
            lload 4 /* keyID */
            invokevirtual sun.security.pkcs11.wrapper.PKCS11.C_DestroyObject:(JJ)V
        23: .line 142
            aload 6 /* secret */
            astore 8
        24: .line 146
            aload 0 /* this */
            aconst_null
            putfield sun.security.pkcs11.P11ECDHKeyAgreement.publicValue:[B
        25: .line 147
            aload 0 /* this */
            getfield sun.security.pkcs11.P11ECDHKeyAgreement.token:Lsun/security/pkcs11/Token;
            aload 1 /* session */
            invokevirtual sun.security.pkcs11.Token.releaseSession:(Lsun/security/pkcs11/Session;)Lsun/security/pkcs11/Session;
            pop
        26: .line 142
            aload 8
            areturn
        end local 6 // byte[] secret
        end local 4 // long keyID
        end local 3 // sun.security.pkcs11.wrapper.CK_ECDH1_DERIVE_PARAMS ckParams
        end local 2 // sun.security.pkcs11.wrapper.CK_ATTRIBUTE[] attributes
        27: .line 143
      StackMap locals: sun.security.pkcs11.P11ECDHKeyAgreement sun.security.pkcs11.Session
      StackMap stack: sun.security.pkcs11.wrapper.PKCS11Exception
            astore 2 /* e */
        start local 2 // sun.security.pkcs11.wrapper.PKCS11Exception e
        28: .line 144
            new java.security.ProviderException
            dup
            ldc "Could not derive key"
            aload 2 /* e */
            invokespecial java.security.ProviderException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
            athrow
        end local 2 // sun.security.pkcs11.wrapper.PKCS11Exception e
        29: .line 145
      StackMap locals:
      StackMap stack: java.lang.Throwable
            astore 7
        30: .line 146
            aload 0 /* this */
            aconst_null
            putfield sun.security.pkcs11.P11ECDHKeyAgreement.publicValue:[B
        31: .line 147
            aload 0 /* this */
            getfield sun.security.pkcs11.P11ECDHKeyAgreement.token:Lsun/security/pkcs11/Token;
            aload 1 /* session */
            invokevirtual sun.security.pkcs11.Token.releaseSession:(Lsun/security/pkcs11/Session;)Lsun/security/pkcs11/Session;
            pop
        32: .line 148
            aload 7
            athrow
        end local 1 // sun.security.pkcs11.Session session
        end local 0 // sun.security.pkcs11.P11ECDHKeyAgreement this
      LocalVariableTable:
        Start  End  Slot        Name  Signature
            0   33     0        this  Lsun/security/pkcs11/P11ECDHKeyAgreement;
            3   33     1     session  Lsun/security/pkcs11/Session;
            8   27     2  attributes  [Lsun/security/pkcs11/wrapper/CK_ATTRIBUTE;
           10   27     3    ckParams  Lsun/security/pkcs11/wrapper/CK_ECDH1_DERIVE_PARAMS;
           17   27     4       keyID  J
           22   27     6      secret  [B
           28   29     2           e  Lsun/security/pkcs11/wrapper/PKCS11Exception;
      Exception table:
        from    to  target  type
           3    24      27  Class sun.security.pkcs11.wrapper.PKCS11Exception
           3    24      29  any
          27    29      29  any
    Exceptions:
      throws java.lang.IllegalStateException

  protected int engineGenerateSecret(byte[], int);
    descriptor: ([BI)I
    flags: (0x0004) ACC_PROTECTED
    Code:
      stack=5, locals=4, args_size=3
        start local 0 // sun.security.pkcs11.P11ECDHKeyAgreement this
        start local 1 // byte[] sharedSecret
        start local 2 // int offset
         0: .line 154
            iload 2 /* offset */
            aload 0 /* this */
            getfield sun.security.pkcs11.P11ECDHKeyAgreement.secretLen:I
            iadd
            aload 1 /* sharedSecret */
            arraylength
            if_icmple 4
         1: .line 155
            new javax.crypto.ShortBufferException
            dup
            new java.lang.StringBuilder
            dup
            ldc "Need "
            invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
            aload 0 /* this */
            getfield sun.security.pkcs11.P11ECDHKeyAgreement.secretLen:I
            invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
         2: .line 156
            ldc " bytes, only "
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
            aload 1 /* sharedSecret */
            arraylength
            iload 2 /* offset */
            isub
            invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
            ldc " available"
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
            invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
         3: .line 155
            invokespecial javax.crypto.ShortBufferException.<init>:(Ljava/lang/String;)V
            athrow
         4: .line 158
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            invokevirtual sun.security.pkcs11.P11ECDHKeyAgreement.engineGenerateSecret:()[B
            astore 3 /* secret */
        start local 3 // byte[] secret
         5: .line 159
            aload 3 /* secret */
            iconst_0
            aload 1 /* sharedSecret */
            iload 2 /* offset */
            aload 3 /* secret */
            arraylength
            invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
         6: .line 160
            aload 3 /* secret */
            arraylength
            ireturn
        end local 3 // byte[] secret
        end local 2 // int offset
        end local 1 // byte[] sharedSecret
        end local 0 // sun.security.pkcs11.P11ECDHKeyAgreement this
      LocalVariableTable:
        Start  End  Slot          Name  Signature
            0    7     0          this  Lsun/security/pkcs11/P11ECDHKeyAgreement;
            0    7     1  sharedSecret  [B
            0    7     2        offset  I
            5    7     3        secret  [B
    Exceptions:
      throws java.lang.IllegalStateException, javax.crypto.ShortBufferException
    MethodParameters:
              Name  Flags
      sharedSecret  
      offset        

  protected javax.crypto.SecretKey engineGenerateSecret(java.lang.String);
    descriptor: (Ljava/lang/String;)Ljavax/crypto/SecretKey;
    flags: (0x0004) ACC_PROTECTED
    Code:
      stack=3, locals=2, args_size=2
        start local 0 // sun.security.pkcs11.P11ECDHKeyAgreement this
        start local 1 // java.lang.String algorithm
         0: .line 167
            aload 1 /* algorithm */
            ifnonnull 2
         1: .line 168
            new java.security.NoSuchAlgorithmException
            dup
            ldc "Algorithm must not be null"
            invokespecial java.security.NoSuchAlgorithmException.<init>:(Ljava/lang/String;)V
            athrow
         2: .line 170
      StackMap locals:
      StackMap stack:
            aload 1 /* algorithm */
            ldc "TlsPremasterSecret"
            invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
            ifne 6
         3: .line 171
            new java.security.NoSuchAlgorithmException
            dup
         4: .line 172
            ldc "Only supported for algorithm TlsPremasterSecret"
         5: .line 171
            invokespecial java.security.NoSuchAlgorithmException.<init>:(Ljava/lang/String;)V
            athrow
         6: .line 174
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            aload 1 /* algorithm */
            invokevirtual sun.security.pkcs11.P11ECDHKeyAgreement.nativeGenerateSecret:(Ljava/lang/String;)Ljavax/crypto/SecretKey;
            areturn
        end local 1 // java.lang.String algorithm
        end local 0 // sun.security.pkcs11.P11ECDHKeyAgreement this
      LocalVariableTable:
        Start  End  Slot       Name  Signature
            0    7     0       this  Lsun/security/pkcs11/P11ECDHKeyAgreement;
            0    7     1  algorithm  Ljava/lang/String;
    Exceptions:
      throws java.lang.IllegalStateException, java.security.NoSuchAlgorithmException, java.security.InvalidKeyException
    MethodParameters:
           Name  Flags
      algorithm  

  private javax.crypto.SecretKey nativeGenerateSecret(java.lang.String);
    descriptor: (Ljava/lang/String;)Ljavax/crypto/SecretKey;
    flags: (0x0002) ACC_PRIVATE
    Code:
      stack=9, locals=14, args_size=2
        start local 0 // sun.security.pkcs11.P11ECDHKeyAgreement this
        start local 1 // java.lang.String algorithm
         0: .line 180
            aload 0 /* this */
            getfield sun.security.pkcs11.P11ECDHKeyAgreement.privateKey:Lsun/security/pkcs11/P11Key;
            ifnull 1
            aload 0 /* this */
            getfield sun.security.pkcs11.P11ECDHKeyAgreement.publicValue:[B
            ifnonnull 2
         1: .line 181
      StackMap locals:
      StackMap stack:
            new java.lang.IllegalStateException
            dup
            ldc "Not initialized correctly"
            invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
            athrow
         2: .line 183
      StackMap locals:
      StackMap stack:
            ldc 16
            lstore 2 /* keyType */
        start local 2 // long keyType
         3: .line 184
            aconst_null
            astore 4 /* session */
        start local 4 // sun.security.pkcs11.Session session
         4: .line 186
            aload 0 /* this */
            getfield sun.security.pkcs11.P11ECDHKeyAgreement.token:Lsun/security/pkcs11/Token;
            invokevirtual sun.security.pkcs11.Token.getObjSession:()Lsun/security/pkcs11/Session;
            astore 4 /* session */
         5: .line 187
            iconst_2
            anewarray sun.security.pkcs11.wrapper.CK_ATTRIBUTE
            dup
            iconst_0
         6: .line 188
            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
         7: .line 189
            new sun.security.pkcs11.wrapper.CK_ATTRIBUTE
            dup
            ldc 256
            lload 2 /* keyType */
            invokespecial sun.security.pkcs11.wrapper.CK_ATTRIBUTE.<init>:(JJ)V
            aastore
         8: .line 187
            astore 5 /* attributes */
        start local 5 // sun.security.pkcs11.wrapper.CK_ATTRIBUTE[] attributes
         9: .line 192
            new sun.security.pkcs11.wrapper.CK_ECDH1_DERIVE_PARAMS
            dup
            lconst_1
            aconst_null
            aload 0 /* this */
            getfield sun.security.pkcs11.P11ECDHKeyAgreement.publicValue:[B
            invokespecial sun.security.pkcs11.wrapper.CK_ECDH1_DERIVE_PARAMS.<init>:(J[B[B)V
        10: .line 191
            astore 6 /* ckParams */
        start local 6 // sun.security.pkcs11.wrapper.CK_ECDH1_DERIVE_PARAMS ckParams
        11: .line 193
            aload 0 /* this */
            getfield sun.security.pkcs11.P11ECDHKeyAgreement.token:Lsun/security/pkcs11/Token;
        12: .line 194
            ldc "generate"
            ldc 4
            lload 2 /* keyType */
            aload 5 /* attributes */
        13: .line 193
            invokevirtual sun.security.pkcs11.Token.getAttributes:(Ljava/lang/String;JJ[Lsun/security/pkcs11/wrapper/CK_ATTRIBUTE;)[Lsun/security/pkcs11/wrapper/CK_ATTRIBUTE;
            astore 5 /* attributes */
        14: .line 195
            aload 0 /* this */
            getfield sun.security.pkcs11.P11ECDHKeyAgreement.token:Lsun/security/pkcs11/Token;
            getfield sun.security.pkcs11.Token.p11:Lsun/security/pkcs11/wrapper/PKCS11;
            aload 4 /* session */
            invokevirtual sun.security.pkcs11.Session.id:()J
        15: .line 196
            new sun.security.pkcs11.wrapper.CK_MECHANISM
            dup
            aload 0 /* this */
            getfield sun.security.pkcs11.P11ECDHKeyAgreement.mechanism:J
            aload 6 /* ckParams */
            invokespecial sun.security.pkcs11.wrapper.CK_MECHANISM.<init>:(JLsun/security/pkcs11/wrapper/CK_ECDH1_DERIVE_PARAMS;)V
            aload 0 /* this */
            getfield sun.security.pkcs11.P11ECDHKeyAgreement.privateKey:Lsun/security/pkcs11/P11Key;
            getfield sun.security.pkcs11.P11Key.keyID:J
        16: .line 197
            aload 5 /* attributes */
        17: .line 195
            invokevirtual sun.security.pkcs11.wrapper.PKCS11.C_DeriveKey:(JLsun/security/pkcs11/wrapper/CK_MECHANISM;J[Lsun/security/pkcs11/wrapper/CK_ATTRIBUTE;)J
            lstore 7 /* keyID */
        start local 7 // long keyID
        18: .line 198
            iconst_1
            anewarray sun.security.pkcs11.wrapper.CK_ATTRIBUTE
            dup
            iconst_0
        19: .line 199
            new sun.security.pkcs11.wrapper.CK_ATTRIBUTE
            dup
            ldc 353
            invokespecial sun.security.pkcs11.wrapper.CK_ATTRIBUTE.<init>:(J)V
            aastore
        20: .line 198
            astore 9 /* lenAttributes */
        start local 9 // sun.security.pkcs11.wrapper.CK_ATTRIBUTE[] lenAttributes
        21: .line 201
            aload 0 /* this */
            getfield sun.security.pkcs11.P11ECDHKeyAgreement.token:Lsun/security/pkcs11/Token;
            getfield sun.security.pkcs11.Token.p11:Lsun/security/pkcs11/wrapper/PKCS11;
            aload 4 /* session */
            invokevirtual sun.security.pkcs11.Session.id:()J
            lload 7 /* keyID */
            aload 9 /* lenAttributes */
            invokevirtual sun.security.pkcs11.wrapper.PKCS11.C_GetAttributeValue:(JJ[Lsun/security/pkcs11/wrapper/CK_ATTRIBUTE;)V
        22: .line 202
            aload 9 /* lenAttributes */
            iconst_0
            aaload
            invokevirtual sun.security.pkcs11.wrapper.CK_ATTRIBUTE.getLong:()J
            l2i
            istore 10 /* keyLen */
        start local 10 // int keyLen
        23: .line 204
            aload 4 /* session */
            lload 7 /* keyID */
            aload 1 /* algorithm */
            iload 10 /* keyLen */
            iconst_3
            ishl
            aload 5 /* attributes */
        24: .line 203
            invokestatic sun.security.pkcs11.P11Key.secretKey:(Lsun/security/pkcs11/Session;JLjava/lang/String;I[Lsun/security/pkcs11/wrapper/CK_ATTRIBUTE;)Ljavax/crypto/SecretKey;
            astore 11 /* key */
        start local 11 // javax.crypto.SecretKey key
        25: .line 205
            aload 11 /* key */
            astore 13
        26: .line 209
            aload 0 /* this */
            aconst_null
            putfield sun.security.pkcs11.P11ECDHKeyAgreement.publicValue:[B
        27: .line 210
            aload 0 /* this */
            getfield sun.security.pkcs11.P11ECDHKeyAgreement.token:Lsun/security/pkcs11/Token;
            aload 4 /* session */
            invokevirtual sun.security.pkcs11.Token.releaseSession:(Lsun/security/pkcs11/Session;)Lsun/security/pkcs11/Session;
            pop
        28: .line 205
            aload 13
            areturn
        end local 11 // javax.crypto.SecretKey key
        end local 10 // int keyLen
        end local 9 // sun.security.pkcs11.wrapper.CK_ATTRIBUTE[] lenAttributes
        end local 7 // long keyID
        end local 6 // sun.security.pkcs11.wrapper.CK_ECDH1_DERIVE_PARAMS ckParams
        end local 5 // sun.security.pkcs11.wrapper.CK_ATTRIBUTE[] attributes
        29: .line 206
      StackMap locals: sun.security.pkcs11.P11ECDHKeyAgreement java.lang.String long sun.security.pkcs11.Session
      StackMap stack: sun.security.pkcs11.wrapper.PKCS11Exception
            astore 5 /* e */
        start local 5 // sun.security.pkcs11.wrapper.PKCS11Exception e
        30: .line 207
            new java.security.InvalidKeyException
            dup
            ldc "Could not derive key"
            aload 5 /* e */
            invokespecial java.security.InvalidKeyException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
            athrow
        end local 5 // sun.security.pkcs11.wrapper.PKCS11Exception e
        31: .line 208
      StackMap locals:
      StackMap stack: java.lang.Throwable
            astore 12
        32: .line 209
            aload 0 /* this */
            aconst_null
            putfield sun.security.pkcs11.P11ECDHKeyAgreement.publicValue:[B
        33: .line 210
            aload 0 /* this */
            getfield sun.security.pkcs11.P11ECDHKeyAgreement.token:Lsun/security/pkcs11/Token;
            aload 4 /* session */
            invokevirtual sun.security.pkcs11.Token.releaseSession:(Lsun/security/pkcs11/Session;)Lsun/security/pkcs11/Session;
            pop
        34: .line 211
            aload 12
            athrow
        end local 4 // sun.security.pkcs11.Session session
        end local 2 // long keyType
        end local 1 // java.lang.String algorithm
        end local 0 // sun.security.pkcs11.P11ECDHKeyAgreement this
      LocalVariableTable:
        Start  End  Slot           Name  Signature
            0   35     0           this  Lsun/security/pkcs11/P11ECDHKeyAgreement;
            0   35     1      algorithm  Ljava/lang/String;
            3   35     2        keyType  J
            4   35     4        session  Lsun/security/pkcs11/Session;
            9   29     5     attributes  [Lsun/security/pkcs11/wrapper/CK_ATTRIBUTE;
           11   29     6       ckParams  Lsun/security/pkcs11/wrapper/CK_ECDH1_DERIVE_PARAMS;
           18   29     7          keyID  J
           21   29     9  lenAttributes  [Lsun/security/pkcs11/wrapper/CK_ATTRIBUTE;
           23   29    10         keyLen  I
           25   29    11            key  Ljavax/crypto/SecretKey;
           30   31     5              e  Lsun/security/pkcs11/wrapper/PKCS11Exception;
      Exception table:
        from    to  target  type
           4    26      29  Class sun.security.pkcs11.wrapper.PKCS11Exception
           4    26      31  any
          29    31      31  any
    Exceptions:
      throws java.lang.IllegalStateException, java.security.NoSuchAlgorithmException, java.security.InvalidKeyException
    MethodParameters:
           Name  Flags
      algorithm  
}
SourceFile: "P11ECDHKeyAgreement.java"