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=11, 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 123
            aload 0 /* this */
            getfield sun.security.pkcs11.P11ECDHKeyAgreement.privateKey:Lsun/security/pkcs11/P11Key;
            invokevirtual sun.security.pkcs11.P11Key.getKeyID:()J
            lstore 2 /* privKeyID */
        start local 2 // long privKeyID
         4: .line 125
            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 */
         5: .line 126
            iconst_2
            anewarray sun.security.pkcs11.wrapper.CK_ATTRIBUTE
            dup
            iconst_0
         6: .line 127
            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 128
            new sun.security.pkcs11.wrapper.CK_ATTRIBUTE
            dup
            ldc 256
            ldc 16
            invokespecial sun.security.pkcs11.wrapper.CK_ATTRIBUTE.<init>:(JJ)V
            aastore
         8: .line 126
            astore 4 /* attributes */
        start local 4 // sun.security.pkcs11.wrapper.CK_ATTRIBUTE[] attributes
         9: .line 131
            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 130
            astore 5 /* ckParams */
        start local 5 // sun.security.pkcs11.wrapper.CK_ECDH1_DERIVE_PARAMS ckParams
        11: .line 132
            aload 0 /* this */
            getfield sun.security.pkcs11.P11ECDHKeyAgreement.token:Lsun/security/pkcs11/Token;
        12: .line 133
            ldc "generate"
            ldc 4
            ldc 16
            aload 4 /* attributes */
        13: .line 132
            invokevirtual sun.security.pkcs11.Token.getAttributes:(Ljava/lang/String;JJ[Lsun/security/pkcs11/wrapper/CK_ATTRIBUTE;)[Lsun/security/pkcs11/wrapper/CK_ATTRIBUTE;
            astore 4 /* attributes */
        14: .line 134
            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
        15: .line 135
            new sun.security.pkcs11.wrapper.CK_MECHANISM
            dup
            aload 0 /* this */
            getfield sun.security.pkcs11.P11ECDHKeyAgreement.mechanism:J
            aload 5 /* ckParams */
            invokespecial sun.security.pkcs11.wrapper.CK_MECHANISM.<init>:(JLsun/security/pkcs11/wrapper/CK_ECDH1_DERIVE_PARAMS;)V
            lload 2 /* privKeyID */
        16: .line 136
            aload 4 /* attributes */
        17: .line 134
            invokevirtual sun.security.pkcs11.wrapper.PKCS11.C_DeriveKey:(JLsun/security/pkcs11/wrapper/CK_MECHANISM;J[Lsun/security/pkcs11/wrapper/CK_ATTRIBUTE;)J
            lstore 6 /* keyID */
        start local 6 // long keyID
        18: .line 137
            iconst_1
            anewarray sun.security.pkcs11.wrapper.CK_ATTRIBUTE
            dup
            iconst_0
        19: .line 138
            new sun.security.pkcs11.wrapper.CK_ATTRIBUTE
            dup
            ldc 17
            invokespecial sun.security.pkcs11.wrapper.CK_ATTRIBUTE.<init>:(J)V
            aastore
        20: .line 137
            astore 4 /* attributes */
        21: .line 140
            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 6 /* keyID */
            aload 4 /* attributes */
            invokevirtual sun.security.pkcs11.wrapper.PKCS11.C_GetAttributeValue:(JJ[Lsun/security/pkcs11/wrapper/CK_ATTRIBUTE;)V
        22: .line 141
            aload 4 /* attributes */
            iconst_0
            aaload
            invokevirtual sun.security.pkcs11.wrapper.CK_ATTRIBUTE.getByteArray:()[B
            astore 8 /* secret */
        start local 8 // byte[] secret
        23: .line 142
            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 6 /* keyID */
            invokevirtual sun.security.pkcs11.wrapper.PKCS11.C_DestroyObject:(JJ)V
        24: .line 143
            aload 8 /* secret */
            astore 10
        25: .line 147
            aload 0 /* this */
            getfield sun.security.pkcs11.P11ECDHKeyAgreement.privateKey:Lsun/security/pkcs11/P11Key;
            invokevirtual sun.security.pkcs11.P11Key.releaseKeyID:()V
        26: .line 148
            aload 0 /* this */
            aconst_null
            putfield sun.security.pkcs11.P11ECDHKeyAgreement.publicValue:[B
        27: .line 149
            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
        28: .line 143
            aload 10
            areturn
        end local 8 // byte[] secret
        end local 6 // long keyID
        end local 5 // sun.security.pkcs11.wrapper.CK_ECDH1_DERIVE_PARAMS ckParams
        end local 4 // sun.security.pkcs11.wrapper.CK_ATTRIBUTE[] attributes
        29: .line 144
      StackMap locals: sun.security.pkcs11.P11ECDHKeyAgreement sun.security.pkcs11.Session long
      StackMap stack: sun.security.pkcs11.wrapper.PKCS11Exception
            astore 4 /* e */
        start local 4 // sun.security.pkcs11.wrapper.PKCS11Exception e
        30: .line 145
            new java.security.ProviderException
            dup
            ldc "Could not derive key"
            aload 4 /* e */
            invokespecial java.security.ProviderException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
            athrow
        end local 4 // sun.security.pkcs11.wrapper.PKCS11Exception e
        31: .line 146
      StackMap locals:
      StackMap stack: java.lang.Throwable
            astore 9
        32: .line 147
            aload 0 /* this */
            getfield sun.security.pkcs11.P11ECDHKeyAgreement.privateKey:Lsun/security/pkcs11/P11Key;
            invokevirtual sun.security.pkcs11.P11Key.releaseKeyID:()V
        33: .line 148
            aload 0 /* this */
            aconst_null
            putfield sun.security.pkcs11.P11ECDHKeyAgreement.publicValue:[B
        34: .line 149
            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
        35: .line 150
            aload 9
            athrow
        end local 2 // long privKeyID
        end local 1 // sun.security.pkcs11.Session session
        end local 0 // sun.security.pkcs11.P11ECDHKeyAgreement this
      LocalVariableTable:
        Start  End  Slot        Name  Signature
            0   36     0        this  Lsun/security/pkcs11/P11ECDHKeyAgreement;
            3   36     1     session  Lsun/security/pkcs11/Session;
            4   36     2   privKeyID  J
            9   29     4  attributes  [Lsun/security/pkcs11/wrapper/CK_ATTRIBUTE;
           11   29     5    ckParams  Lsun/security/pkcs11/wrapper/CK_ECDH1_DERIVE_PARAMS;
           18   29     6       keyID  J
           23   29     8      secret  [B
           30   31     4           e  Lsun/security/pkcs11/wrapper/PKCS11Exception;
      Exception table:
        from    to  target  type
           4    25      29  Class sun.security.pkcs11.wrapper.PKCS11Exception
           4    25      31  any
          29    31      31  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 156
            iload 2 /* offset */
            aload 0 /* this */
            getfield sun.security.pkcs11.P11ECDHKeyAgreement.secretLen:I
            iadd
            aload 1 /* sharedSecret */
            arraylength
            if_icmple 4
         1: .line 157
            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 158
            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 157
            invokespecial javax.crypto.ShortBufferException.<init>:(Ljava/lang/String;)V
            athrow
         4: .line 160
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            invokevirtual sun.security.pkcs11.P11ECDHKeyAgreement.engineGenerateSecret:()[B
            astore 3 /* secret */
        start local 3 // byte[] secret
         5: .line 161
            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 162
            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 169
            aload 1 /* algorithm */
            ifnonnull 2
         1: .line 170
            new java.security.NoSuchAlgorithmException
            dup
            ldc "Algorithm must not be null"
            invokespecial java.security.NoSuchAlgorithmException.<init>:(Ljava/lang/String;)V
            athrow
         2: .line 172
      StackMap locals:
      StackMap stack:
            aload 1 /* algorithm */
            ldc "TlsPremasterSecret"
            invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
            ifne 6
         3: .line 173
            new java.security.NoSuchAlgorithmException
            dup
         4: .line 174
            ldc "Only supported for algorithm TlsPremasterSecret"
         5: .line 173
            invokespecial java.security.NoSuchAlgorithmException.<init>:(Ljava/lang/String;)V
            athrow
         6: .line 176
      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=16, args_size=2
        start local 0 // sun.security.pkcs11.P11ECDHKeyAgreement this
        start local 1 // java.lang.String algorithm
         0: .line 182
            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 183
      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 185
      StackMap locals:
      StackMap stack:
            ldc 16
            lstore 2 /* keyType */
        start local 2 // long keyType
         3: .line 186
            aconst_null
            astore 4 /* session */
        start local 4 // sun.security.pkcs11.Session session
         4: .line 187
            aload 0 /* this */
            getfield sun.security.pkcs11.P11ECDHKeyAgreement.privateKey:Lsun/security/pkcs11/P11Key;
            invokevirtual sun.security.pkcs11.P11Key.getKeyID:()J
            lstore 5 /* privKeyID */
        start local 5 // long privKeyID
         5: .line 189
            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 */
         6: .line 190
            iconst_2
            anewarray sun.security.pkcs11.wrapper.CK_ATTRIBUTE
            dup
            iconst_0
         7: .line 191
            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
         8: .line 192
            new sun.security.pkcs11.wrapper.CK_ATTRIBUTE
            dup
            ldc 256
            lload 2 /* keyType */
            invokespecial sun.security.pkcs11.wrapper.CK_ATTRIBUTE.<init>:(JJ)V
            aastore
         9: .line 190
            astore 7 /* attributes */
        start local 7 // sun.security.pkcs11.wrapper.CK_ATTRIBUTE[] attributes
        10: .line 195
            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
        11: .line 194
            astore 8 /* ckParams */
        start local 8 // sun.security.pkcs11.wrapper.CK_ECDH1_DERIVE_PARAMS ckParams
        12: .line 196
            aload 0 /* this */
            getfield sun.security.pkcs11.P11ECDHKeyAgreement.token:Lsun/security/pkcs11/Token;
        13: .line 197
            ldc "generate"
            ldc 4
            lload 2 /* keyType */
            aload 7 /* attributes */
        14: .line 196
            invokevirtual sun.security.pkcs11.Token.getAttributes:(Ljava/lang/String;JJ[Lsun/security/pkcs11/wrapper/CK_ATTRIBUTE;)[Lsun/security/pkcs11/wrapper/CK_ATTRIBUTE;
            astore 7 /* attributes */
        15: .line 198
            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
        16: .line 199
            new sun.security.pkcs11.wrapper.CK_MECHANISM
            dup
            aload 0 /* this */
            getfield sun.security.pkcs11.P11ECDHKeyAgreement.mechanism:J
            aload 8 /* ckParams */
            invokespecial sun.security.pkcs11.wrapper.CK_MECHANISM.<init>:(JLsun/security/pkcs11/wrapper/CK_ECDH1_DERIVE_PARAMS;)V
            lload 5 /* privKeyID */
        17: .line 200
            aload 7 /* attributes */
        18: .line 198
            invokevirtual sun.security.pkcs11.wrapper.PKCS11.C_DeriveKey:(JLsun/security/pkcs11/wrapper/CK_MECHANISM;J[Lsun/security/pkcs11/wrapper/CK_ATTRIBUTE;)J
            lstore 9 /* keyID */
        start local 9 // long keyID
        19: .line 201
            iconst_1
            anewarray sun.security.pkcs11.wrapper.CK_ATTRIBUTE
            dup
            iconst_0
        20: .line 202
            new sun.security.pkcs11.wrapper.CK_ATTRIBUTE
            dup
            ldc 353
            invokespecial sun.security.pkcs11.wrapper.CK_ATTRIBUTE.<init>:(J)V
            aastore
        21: .line 201
            astore 11 /* lenAttributes */
        start local 11 // sun.security.pkcs11.wrapper.CK_ATTRIBUTE[] lenAttributes
        22: .line 204
            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 9 /* keyID */
            aload 11 /* lenAttributes */
            invokevirtual sun.security.pkcs11.wrapper.PKCS11.C_GetAttributeValue:(JJ[Lsun/security/pkcs11/wrapper/CK_ATTRIBUTE;)V
        23: .line 205
            aload 11 /* lenAttributes */
            iconst_0
            aaload
            invokevirtual sun.security.pkcs11.wrapper.CK_ATTRIBUTE.getLong:()J
            l2i
            istore 12 /* keyLen */
        start local 12 // int keyLen
        24: .line 207
            aload 4 /* session */
            lload 9 /* keyID */
            aload 1 /* algorithm */
            iload 12 /* keyLen */
            iconst_3
            ishl
            aload 7 /* attributes */
        25: .line 206
            invokestatic sun.security.pkcs11.P11Key.secretKey:(Lsun/security/pkcs11/Session;JLjava/lang/String;I[Lsun/security/pkcs11/wrapper/CK_ATTRIBUTE;)Ljavax/crypto/SecretKey;
            astore 13 /* key */
        start local 13 // javax.crypto.SecretKey key
        26: .line 208
            aload 13 /* key */
            astore 15
        27: .line 212
            aload 0 /* this */
            getfield sun.security.pkcs11.P11ECDHKeyAgreement.privateKey:Lsun/security/pkcs11/P11Key;
            invokevirtual sun.security.pkcs11.P11Key.releaseKeyID:()V
        28: .line 213
            aload 0 /* this */
            aconst_null
            putfield sun.security.pkcs11.P11ECDHKeyAgreement.publicValue:[B
        29: .line 214
            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
        30: .line 208
            aload 15
            areturn
        end local 13 // javax.crypto.SecretKey key
        end local 12 // int keyLen
        end local 11 // sun.security.pkcs11.wrapper.CK_ATTRIBUTE[] lenAttributes
        end local 9 // long keyID
        end local 8 // sun.security.pkcs11.wrapper.CK_ECDH1_DERIVE_PARAMS ckParams
        end local 7 // sun.security.pkcs11.wrapper.CK_ATTRIBUTE[] attributes
        31: .line 209
      StackMap locals: sun.security.pkcs11.P11ECDHKeyAgreement java.lang.String long sun.security.pkcs11.Session long
      StackMap stack: sun.security.pkcs11.wrapper.PKCS11Exception
            astore 7 /* e */
        start local 7 // sun.security.pkcs11.wrapper.PKCS11Exception e
        32: .line 210
            new java.security.InvalidKeyException
            dup
            ldc "Could not derive key"
            aload 7 /* e */
            invokespecial java.security.InvalidKeyException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
            athrow
        end local 7 // sun.security.pkcs11.wrapper.PKCS11Exception e
        33: .line 211
      StackMap locals:
      StackMap stack: java.lang.Throwable
            astore 14
        34: .line 212
            aload 0 /* this */
            getfield sun.security.pkcs11.P11ECDHKeyAgreement.privateKey:Lsun/security/pkcs11/P11Key;
            invokevirtual sun.security.pkcs11.P11Key.releaseKeyID:()V
        35: .line 213
            aload 0 /* this */
            aconst_null
            putfield sun.security.pkcs11.P11ECDHKeyAgreement.publicValue:[B
        36: .line 214
            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
        37: .line 215
            aload 14
            athrow
        end local 5 // long privKeyID
        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   38     0           this  Lsun/security/pkcs11/P11ECDHKeyAgreement;
            0   38     1      algorithm  Ljava/lang/String;
            3   38     2        keyType  J
            4   38     4        session  Lsun/security/pkcs11/Session;
            5   38     5      privKeyID  J
           10   31     7     attributes  [Lsun/security/pkcs11/wrapper/CK_ATTRIBUTE;
           12   31     8       ckParams  Lsun/security/pkcs11/wrapper/CK_ECDH1_DERIVE_PARAMS;
           19   31     9          keyID  J
           22   31    11  lenAttributes  [Lsun/security/pkcs11/wrapper/CK_ATTRIBUTE;
           24   31    12         keyLen  I
           26   31    13            key  Ljavax/crypto/SecretKey;
           32   33     7              e  Lsun/security/pkcs11/wrapper/PKCS11Exception;
      Exception table:
        from    to  target  type
           5    27      31  Class sun.security.pkcs11.wrapper.PKCS11Exception
           5    27      33  any
          31    33      33  any
    Exceptions:
      throws java.lang.IllegalStateException, java.security.NoSuchAlgorithmException, java.security.InvalidKeyException
    MethodParameters:
           Name  Flags
      algorithm  
}
SourceFile: "P11ECDHKeyAgreement.java"