abstract class com.microsoft.sqlserver.jdbc.BaseAttestationRequest
  minor version: 0
  major version: 59
  flags: flags: (0x0420) ACC_SUPER, ACC_ABSTRACT
  this_class: com.microsoft.sqlserver.jdbc.BaseAttestationRequest
  super_class: java.lang.Object
{
  protected static final byte[] ECDH_MAGIC;
    descriptor: [B
    flags: (0x001c) ACC_PROTECTED, ACC_STATIC, ACC_FINAL

  protected static final int ENCLAVE_LENGTH;
    descriptor: I
    flags: (0x001c) ACC_PROTECTED, ACC_STATIC, ACC_FINAL
    ConstantValue: 104

  protected static final int BIG_INTEGER_SIZE;
    descriptor: I
    flags: (0x001c) ACC_PROTECTED, ACC_STATIC, ACC_FINAL
    ConstantValue: 48

  protected java.security.PrivateKey privateKey;
    descriptor: Ljava/security/PrivateKey;
    flags: (0x0004) ACC_PROTECTED

  protected byte[] enclaveChallenge;
    descriptor: [B
    flags: (0x0004) ACC_PROTECTED

  protected byte[] x;
    descriptor: [B
    flags: (0x0004) ACC_PROTECTED

  protected byte[] y;
    descriptor: [B
    flags: (0x0004) ACC_PROTECTED

  static void <clinit>();
    descriptor: ()V
    flags: (0x0008) ACC_STATIC
    Code:
      stack=4, locals=0, args_size=0
         0: .line 248
            bipush 8
            newarray 8
            dup
            iconst_0
            bipush 69
            bastore
            dup
            iconst_1
            bipush 67
            bastore
            dup
            iconst_2
            bipush 75
            bastore
            dup
            iconst_3
            bipush 51
            bastore
            dup
            iconst_4
            bipush 48
            bastore
            putstatic com.microsoft.sqlserver.jdbc.BaseAttestationRequest.ECDH_MAGIC:[B
         1: .line 250
            return
      LocalVariableTable:
        Start  End  Slot  Name  Signature

  void <init>();
    descriptor: ()V
    flags: (0x0000) 
    Code:
      stack=1, locals=1, args_size=1
        start local 0 // com.microsoft.sqlserver.jdbc.BaseAttestationRequest this
         0: .line 247
            aload 0 /* this */
            invokespecial java.lang.Object.<init>:()V
            return
        end local 0 // com.microsoft.sqlserver.jdbc.BaseAttestationRequest this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Lcom/microsoft/sqlserver/jdbc/BaseAttestationRequest;

  byte[] getBytes();
    descriptor: ()[B
    flags: (0x0000) 
    Code:
      stack=1, locals=1, args_size=1
        start local 0 // com.microsoft.sqlserver.jdbc.BaseAttestationRequest this
         0: .line 258
            aconst_null
            areturn
        end local 0 // com.microsoft.sqlserver.jdbc.BaseAttestationRequest this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Lcom/microsoft/sqlserver/jdbc/BaseAttestationRequest;
    Exceptions:
      throws java.io.IOException

  byte[] createSessionSecret(byte[]);
    descriptor: ([B)[B
    flags: (0x0000) 
    Code:
      stack=9, locals=8, args_size=2
        start local 0 // com.microsoft.sqlserver.jdbc.BaseAttestationRequest this
        start local 1 // byte[] serverResponse
         0: .line 262
            aload 1 /* serverResponse */
            ifnull 1
            aload 1 /* serverResponse */
            arraylength
            bipush 104
            if_icmpeq 4
         1: .line 263
      StackMap locals:
      StackMap stack:
            aconst_null
            aload 0 /* this */
         2: .line 264
            ldc "R_MalformedECDHPublicKey"
            invokestatic com.microsoft.sqlserver.jdbc.SQLServerResource.getResource:(Ljava/lang/String;)Ljava/lang/String;
            ldc "0"
            iconst_0
         3: .line 263
            invokestatic com.microsoft.sqlserver.jdbc.SQLServerException.makeFromDriverError:(Lcom/microsoft/sqlserver/jdbc/SQLServerConnection;Ljava/lang/Object;Ljava/lang/String;Ljava/lang/String;Z)V
         4: .line 266
      StackMap locals:
      StackMap stack:
            aload 1 /* serverResponse */
            invokestatic java.nio.ByteBuffer.wrap:([B)Ljava/nio/ByteBuffer;
            astore 2 /* sr */
        start local 2 // java.nio.ByteBuffer sr
         5: .line 267
            bipush 8
            newarray 8
            astore 3 /* magic */
        start local 3 // byte[] magic
         6: .line 268
            aload 2 /* sr */
            aload 3 /* magic */
            invokevirtual java.nio.ByteBuffer.get:([B)Ljava/nio/ByteBuffer;
            pop
         7: .line 269
            aload 3 /* magic */
            getstatic com.microsoft.sqlserver.jdbc.BaseAttestationRequest.ECDH_MAGIC:[B
            invokestatic java.util.Arrays.equals:([B[B)Z
            ifne 11
         8: .line 270
            aconst_null
            aload 0 /* this */
            ldc "R_MalformedECDHHeader"
            invokestatic com.microsoft.sqlserver.jdbc.SQLServerResource.getResource:(Ljava/lang/String;)Ljava/lang/String;
         9: .line 271
            ldc "0"
            iconst_0
        10: .line 270
            invokestatic com.microsoft.sqlserver.jdbc.SQLServerException.makeFromDriverError:(Lcom/microsoft/sqlserver/jdbc/SQLServerConnection;Ljava/lang/Object;Ljava/lang/String;Ljava/lang/String;Z)V
        11: .line 273
      StackMap locals: java.nio.ByteBuffer byte[]
      StackMap stack:
            bipush 48
            newarray 8
            astore 4 /* x */
        start local 4 // byte[] x
        12: .line 274
            bipush 48
            newarray 8
            astore 5 /* y */
        start local 5 // byte[] y
        13: .line 275
            aload 2 /* sr */
            aload 4 /* x */
            invokevirtual java.nio.ByteBuffer.get:([B)Ljava/nio/ByteBuffer;
            pop
        14: .line 276
            aload 2 /* sr */
            aload 5 /* y */
            invokevirtual java.nio.ByteBuffer.get:([B)Ljava/nio/ByteBuffer;
            pop
        15: .line 281
            new java.security.spec.ECPublicKeySpec
            dup
            new java.security.spec.ECPoint
            dup
            new java.math.BigInteger
            dup
            iconst_1
            aload 4 /* x */
            invokespecial java.math.BigInteger.<init>:(I[B)V
            new java.math.BigInteger
            dup
            iconst_1
            aload 5 /* y */
            invokespecial java.math.BigInteger.<init>:(I[B)V
            invokespecial java.security.spec.ECPoint.<init>:(Ljava/math/BigInteger;Ljava/math/BigInteger;)V
        16: .line 282
            aload 0 /* this */
            getfield com.microsoft.sqlserver.jdbc.BaseAttestationRequest.privateKey:Ljava/security/PrivateKey;
            checkcast java.security.interfaces.ECPrivateKey
            invokeinterface java.security.interfaces.ECPrivateKey.getParams:()Ljava/security/spec/ECParameterSpec;
        17: .line 281
            invokespecial java.security.spec.ECPublicKeySpec.<init>:(Ljava/security/spec/ECPoint;Ljava/security/spec/ECParameterSpec;)V
            astore 6 /* keySpec */
        start local 6 // java.security.spec.ECPublicKeySpec keySpec
        18: .line 283
            ldc "ECDH"
            invokestatic javax.crypto.KeyAgreement.getInstance:(Ljava/lang/String;)Ljavax/crypto/KeyAgreement;
            astore 7 /* ka */
        start local 7 // javax.crypto.KeyAgreement ka
        19: .line 284
            aload 7 /* ka */
            aload 0 /* this */
            getfield com.microsoft.sqlserver.jdbc.BaseAttestationRequest.privateKey:Ljava/security/PrivateKey;
            invokevirtual javax.crypto.KeyAgreement.init:(Ljava/security/Key;)V
        20: .line 286
            aload 7 /* ka */
            ldc "EC"
            invokestatic java.security.KeyFactory.getInstance:(Ljava/lang/String;)Ljava/security/KeyFactory;
            aload 6 /* keySpec */
            invokevirtual java.security.KeyFactory.generatePublic:(Ljava/security/spec/KeySpec;)Ljava/security/PublicKey;
            iconst_1
            invokevirtual javax.crypto.KeyAgreement.doPhase:(Ljava/security/Key;Z)Ljava/security/Key;
            pop
        21: .line 288
            ldc "SHA-256"
            invokestatic java.security.MessageDigest.getInstance:(Ljava/lang/String;)Ljava/security/MessageDigest;
            aload 7 /* ka */
            invokevirtual javax.crypto.KeyAgreement.generateSecret:()[B
            invokevirtual java.security.MessageDigest.digest:([B)[B
            areturn
        end local 7 // javax.crypto.KeyAgreement ka
        end local 6 // java.security.spec.ECPublicKeySpec keySpec
        end local 5 // byte[] y
        end local 4 // byte[] x
        end local 3 // byte[] magic
        end local 2 // java.nio.ByteBuffer sr
        end local 1 // byte[] serverResponse
        end local 0 // com.microsoft.sqlserver.jdbc.BaseAttestationRequest this
      LocalVariableTable:
        Start  End  Slot            Name  Signature
            0   22     0            this  Lcom/microsoft/sqlserver/jdbc/BaseAttestationRequest;
            0   22     1  serverResponse  [B
            5   22     2              sr  Ljava/nio/ByteBuffer;
            6   22     3           magic  [B
           12   22     4               x  [B
           13   22     5               y  [B
           18   22     6         keySpec  Ljava/security/spec/ECPublicKeySpec;
           19   22     7              ka  Ljavax/crypto/KeyAgreement;
    Exceptions:
      throws java.security.GeneralSecurityException, com.microsoft.sqlserver.jdbc.SQLServerException
    MethodParameters:
                Name  Flags
      serverResponse  

  void initBcryptECDH();
    descriptor: ()V
    flags: (0x0000) 
    Code:
      stack=5, locals=5, args_size=1
        start local 0 // com.microsoft.sqlserver.jdbc.BaseAttestationRequest this
         0: .line 296
            ldc "EC"
            invokestatic java.security.KeyPairGenerator.getInstance:(Ljava/lang/String;)Ljava/security/KeyPairGenerator;
            astore 1 /* kpg */
        start local 1 // java.security.KeyPairGenerator kpg
         1: .line 297
            aload 1 /* kpg */
            new java.security.spec.ECGenParameterSpec
            dup
            ldc "secp384r1"
            invokespecial java.security.spec.ECGenParameterSpec.<init>:(Ljava/lang/String;)V
            invokevirtual java.security.KeyPairGenerator.initialize:(Ljava/security/spec/AlgorithmParameterSpec;)V
         2: .line 298
            aload 1 /* kpg */
            invokevirtual java.security.KeyPairGenerator.generateKeyPair:()Ljava/security/KeyPair;
            astore 2 /* kp */
        start local 2 // java.security.KeyPair kp
         3: .line 299
            aload 2 /* kp */
            invokevirtual java.security.KeyPair.getPublic:()Ljava/security/PublicKey;
            checkcast java.security.interfaces.ECPublicKey
            astore 3 /* publicKey */
        start local 3 // java.security.interfaces.ECPublicKey publicKey
         4: .line 300
            aload 0 /* this */
            aload 2 /* kp */
            invokevirtual java.security.KeyPair.getPrivate:()Ljava/security/PrivateKey;
            putfield com.microsoft.sqlserver.jdbc.BaseAttestationRequest.privateKey:Ljava/security/PrivateKey;
         5: .line 301
            aload 3 /* publicKey */
            invokeinterface java.security.interfaces.ECPublicKey.getW:()Ljava/security/spec/ECPoint;
            astore 4 /* w */
        start local 4 // java.security.spec.ECPoint w
         6: .line 302
            aload 0 /* this */
            aload 0 /* this */
            aload 4 /* w */
            invokevirtual java.security.spec.ECPoint.getAffineX:()Ljava/math/BigInteger;
            invokevirtual java.math.BigInteger.toByteArray:()[B
            invokevirtual com.microsoft.sqlserver.jdbc.BaseAttestationRequest.adjustBigInt:([B)[B
            putfield com.microsoft.sqlserver.jdbc.BaseAttestationRequest.x:[B
         7: .line 303
            aload 0 /* this */
            aload 0 /* this */
            aload 4 /* w */
            invokevirtual java.security.spec.ECPoint.getAffineY:()Ljava/math/BigInteger;
            invokevirtual java.math.BigInteger.toByteArray:()[B
            invokevirtual com.microsoft.sqlserver.jdbc.BaseAttestationRequest.adjustBigInt:([B)[B
            putfield com.microsoft.sqlserver.jdbc.BaseAttestationRequest.y:[B
        end local 4 // java.security.spec.ECPoint w
        end local 3 // java.security.interfaces.ECPublicKey publicKey
        end local 2 // java.security.KeyPair kp
        end local 1 // java.security.KeyPairGenerator kpg
         8: .line 304
            goto 11
      StackMap locals:
      StackMap stack: java.lang.Exception
         9: astore 1 /* e */
        start local 1 // java.lang.Exception e
        10: .line 305
            aconst_null
            aload 0 /* this */
            aload 1 /* e */
            invokevirtual java.lang.Exception.getLocalizedMessage:()Ljava/lang/String;
            ldc "0"
            iconst_0
            invokestatic com.microsoft.sqlserver.jdbc.SQLServerException.makeFromDriverError:(Lcom/microsoft/sqlserver/jdbc/SQLServerConnection;Ljava/lang/Object;Ljava/lang/String;Ljava/lang/String;Z)V
        end local 1 // java.lang.Exception e
        11: .line 307
      StackMap locals:
      StackMap stack:
            return
        end local 0 // com.microsoft.sqlserver.jdbc.BaseAttestationRequest this
      LocalVariableTable:
        Start  End  Slot       Name  Signature
            0   12     0       this  Lcom/microsoft/sqlserver/jdbc/BaseAttestationRequest;
            1    8     1        kpg  Ljava/security/KeyPairGenerator;
            3    8     2         kp  Ljava/security/KeyPair;
            4    8     3  publicKey  Ljava/security/interfaces/ECPublicKey;
            6    8     4          w  Ljava/security/spec/ECPoint;
           10   11     1          e  Ljava/lang/Exception;
      Exception table:
        from    to  target  type
           0     8       9  Class java.security.GeneralSecurityException
           0     8       9  Class java.io.IOException
    Exceptions:
      throws com.microsoft.sqlserver.jdbc.SQLServerException

  private byte[] adjustBigInt(byte[]);
    descriptor: ([B)[B
    flags: (0x0002) ACC_PRIVATE
    Code:
      stack=3, locals=4, args_size=2
        start local 0 // com.microsoft.sqlserver.jdbc.BaseAttestationRequest this
        start local 1 // byte[] b
         0: .line 313
            aload 1 /* b */
            iconst_0
            baload
            ifne 2
            bipush 48
            aload 1 /* b */
            arraylength
            if_icmpge 2
         1: .line 314
            aload 1 /* b */
            iconst_1
            aload 1 /* b */
            arraylength
            invokestatic java.util.Arrays.copyOfRange:([BII)[B
            astore 1 /* b */
         2: .line 317
      StackMap locals:
      StackMap stack:
            aload 1 /* b */
            arraylength
            bipush 48
            if_icmpge 11
         3: .line 318
            new java.io.ByteArrayOutputStream
            dup
            invokespecial java.io.ByteArrayOutputStream.<init>:()V
            astore 2 /* output */
        start local 2 // java.io.ByteArrayOutputStream output
         4: .line 319
            iconst_0
            istore 3 /* i */
        start local 3 // int i
         5: goto 8
         6: .line 320
      StackMap locals: java.io.ByteArrayOutputStream int
      StackMap stack:
            aload 2 /* output */
            iconst_0
            invokevirtual java.io.ByteArrayOutputStream.write:(I)V
         7: .line 319
            iinc 3 /* i */ 1
      StackMap locals:
      StackMap stack:
         8: iload 3 /* i */
            bipush 48
            aload 1 /* b */
            arraylength
            isub
            if_icmplt 6
        end local 3 // int i
         9: .line 322
            aload 2 /* output */
            aload 1 /* b */
            invokevirtual java.io.ByteArrayOutputStream.write:([B)V
        10: .line 323
            aload 2 /* output */
            invokevirtual java.io.ByteArrayOutputStream.toByteArray:()[B
            astore 1 /* b */
        end local 2 // java.io.ByteArrayOutputStream output
        11: .line 325
      StackMap locals:
      StackMap stack:
            aload 1 /* b */
            areturn
        end local 1 // byte[] b
        end local 0 // com.microsoft.sqlserver.jdbc.BaseAttestationRequest this
      LocalVariableTable:
        Start  End  Slot    Name  Signature
            0   12     0    this  Lcom/microsoft/sqlserver/jdbc/BaseAttestationRequest;
            0   12     1       b  [B
            4   11     2  output  Ljava/io/ByteArrayOutputStream;
            5    9     3       i  I
    Exceptions:
      throws java.io.IOException
    MethodParameters:
      Name  Flags
      b     
}
SourceFile: "ISQLServerEnclaveProvider.java"