abstract class com.microsoft.sqlserver.jdbc.BaseAttestationResponse
minor version: 0
major version: 59
flags: flags: (0x0420) ACC_SUPER, ACC_ABSTRACT
this_class: com.microsoft.sqlserver.jdbc.BaseAttestationResponse
super_class: java.lang.Object
{
protected int totalSize;
descriptor: I
flags: (0x0004) ACC_PROTECTED
protected int identitySize;
descriptor: I
flags: (0x0004) ACC_PROTECTED
protected int attestationTokenSize;
descriptor: I
flags: (0x0004) ACC_PROTECTED
protected int enclaveType;
descriptor: I
flags: (0x0004) ACC_PROTECTED
protected byte[] enclavePK;
descriptor: [B
flags: (0x0004) ACC_PROTECTED
protected int sessionInfoSize;
descriptor: I
flags: (0x0004) ACC_PROTECTED
protected byte[] sessionID;
descriptor: [B
flags: (0x0004) ACC_PROTECTED
protected int DHPKsize;
descriptor: I
flags: (0x0004) ACC_PROTECTED
protected int DHPKSsize;
descriptor: I
flags: (0x0004) ACC_PROTECTED
protected byte[] DHpublicKey;
descriptor: [B
flags: (0x0004) ACC_PROTECTED
protected byte[] publicKeySig;
descriptor: [B
flags: (0x0004) ACC_PROTECTED
void <init>();
descriptor: ()V
flags: (0x0000)
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
bipush 8
newarray 8
putfield com.microsoft.sqlserver.jdbc.BaseAttestationResponse.sessionID:[B
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/microsoft/sqlserver/jdbc/BaseAttestationResponse;
void validateDHPublicKey();
descriptor: ()V
flags: (0x0000)
Code:
stack=7, locals=11, args_size=1
start local 0 0: aload 0
getfield com.microsoft.sqlserver.jdbc.BaseAttestationResponse.enclavePK:[B
invokestatic java.nio.ByteBuffer.wrap:([B)Ljava/nio/ByteBuffer;
getstatic java.nio.ByteOrder.LITTLE_ENDIAN:Ljava/nio/ByteOrder;
invokevirtual java.nio.ByteBuffer.order:(Ljava/nio/ByteOrder;)Ljava/nio/ByteBuffer;
astore 1
start local 1 1: iconst_4
newarray 8
astore 2
start local 2 2: aload 1
aload 2
invokevirtual java.nio.ByteBuffer.get:([B)Ljava/nio/ByteBuffer;
pop
3: aload 1
invokevirtual java.nio.ByteBuffer.getInt:()I
pop
4: aload 1
invokevirtual java.nio.ByteBuffer.getInt:()I
istore 3
start local 3 5: aload 1
invokevirtual java.nio.ByteBuffer.getInt:()I
istore 4
start local 4 6: aload 1
invokevirtual java.nio.ByteBuffer.getInt:()I
pop
7: aload 1
invokevirtual java.nio.ByteBuffer.getInt:()I
pop
8: iload 3
newarray 8
astore 5
start local 5 9: aload 1
aload 5
invokevirtual java.nio.ByteBuffer.get:([B)Ljava/nio/ByteBuffer;
pop
10: iload 4
newarray 8
astore 6
start local 6 11: aload 1
aload 6
invokevirtual java.nio.ByteBuffer.get:([B)Ljava/nio/ByteBuffer;
pop
12: aload 1
invokevirtual java.nio.ByteBuffer.remaining:()I
ifeq 16
13: aconst_null
aload 0
ldc "R_EnclavePKLengthError"
invokestatic com.microsoft.sqlserver.jdbc.SQLServerResource.getResource:(Ljava/lang/String;)Ljava/lang/String;
14: ldc "0"
iconst_0
15: invokestatic com.microsoft.sqlserver.jdbc.SQLServerException.makeFromDriverError:(Lcom/microsoft/sqlserver/jdbc/SQLServerConnection;Ljava/lang/Object;Ljava/lang/String;Ljava/lang/String;Z)V
16: StackMap locals: com.microsoft.sqlserver.jdbc.BaseAttestationResponse java.nio.ByteBuffer byte[] int int byte[] byte[]
StackMap stack:
new java.security.spec.RSAPublicKeySpec
dup
new java.math.BigInteger
dup
iconst_1
aload 6
invokespecial java.math.BigInteger.<init>:(I[B)V
new java.math.BigInteger
dup
iconst_1
aload 5
invokespecial java.math.BigInteger.<init>:(I[B)V
invokespecial java.security.spec.RSAPublicKeySpec.<init>:(Ljava/math/BigInteger;Ljava/math/BigInteger;)V
astore 7
start local 7 17: ldc "RSA"
invokestatic java.security.KeyFactory.getInstance:(Ljava/lang/String;)Ljava/security/KeyFactory;
astore 8
start local 8 18: aload 8
aload 7
invokevirtual java.security.KeyFactory.generatePublic:(Ljava/security/spec/KeySpec;)Ljava/security/PublicKey;
astore 9
start local 9 19: ldc "SHA256withRSA"
invokestatic java.security.Signature.getInstance:(Ljava/lang/String;)Ljava/security/Signature;
astore 10
start local 10 20: aload 10
aload 9
invokevirtual java.security.Signature.initVerify:(Ljava/security/PublicKey;)V
21: aload 10
aload 0
getfield com.microsoft.sqlserver.jdbc.BaseAttestationResponse.DHpublicKey:[B
invokevirtual java.security.Signature.update:([B)V
22: aload 10
aload 0
getfield com.microsoft.sqlserver.jdbc.BaseAttestationResponse.publicKeySig:[B
invokevirtual java.security.Signature.verify:([B)Z
ifne 26
23: aconst_null
aload 0
ldc "R_InvalidDHKeySignature"
invokestatic com.microsoft.sqlserver.jdbc.SQLServerResource.getResource:(Ljava/lang/String;)Ljava/lang/String;
24: ldc "0"
iconst_0
25: invokestatic com.microsoft.sqlserver.jdbc.SQLServerException.makeFromDriverError:(Lcom/microsoft/sqlserver/jdbc/SQLServerConnection;Ljava/lang/Object;Ljava/lang/String;Ljava/lang/String;Z)V
26: StackMap locals: com.microsoft.sqlserver.jdbc.BaseAttestationResponse java.nio.ByteBuffer byte[] int int byte[] byte[] java.security.spec.RSAPublicKeySpec java.security.KeyFactory java.security.PublicKey java.security.Signature
StackMap stack:
return
end local 10 end local 9 end local 8 end local 7 end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 27 0 this Lcom/microsoft/sqlserver/jdbc/BaseAttestationResponse;
1 27 1 enclavePKBuffer Ljava/nio/ByteBuffer;
2 27 2 rsa1 [B
5 27 3 publicExponentLength I
6 27 4 publicModulusLength I
9 27 5 exponent [B
11 27 6 modulus [B
17 27 7 spec Ljava/security/spec/RSAPublicKeySpec;
18 27 8 factory Ljava/security/KeyFactory;
19 27 9 pub Ljava/security/PublicKey;
20 27 10 sig Ljava/security/Signature;
Exceptions:
throws com.microsoft.sqlserver.jdbc.SQLServerException, java.security.GeneralSecurityException
byte[] getDHpublicKey();
descriptor: ()[B
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.microsoft.sqlserver.jdbc.BaseAttestationResponse.DHpublicKey:[B
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/microsoft/sqlserver/jdbc/BaseAttestationResponse;
byte[] getSessionID();
descriptor: ()[B
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.microsoft.sqlserver.jdbc.BaseAttestationResponse.sessionID:[B
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/microsoft/sqlserver/jdbc/BaseAttestationResponse;
}
SourceFile: "ISQLServerEnclaveProvider.java"