Share via


SqlColumnEncryptionEnclaveProvider.CreateEnclaveSession 方法

定义

在派生类中重写后,将执行 enclave 证明、为会话生成对称密钥、创建 enclave 会话,并在缓存中存储会话信息。

public:
 abstract void CreateEnclaveSession(cli::array <System::Byte> ^ enclaveAttestationInfo, System::Security::Cryptography::ECDiffieHellmanCng ^ clientDiffieHellmanKey, System::String ^ attestationUrl, System::String ^ servername, [Runtime::InteropServices::Out] System::Data::SqlClient::SqlEnclaveSession ^ % sqlEnclaveSession, [Runtime::InteropServices::Out] long % counter);
public abstract void CreateEnclaveSession (byte[] enclaveAttestationInfo, System.Security.Cryptography.ECDiffieHellmanCng clientDiffieHellmanKey, string attestationUrl, string servername, out System.Data.SqlClient.SqlEnclaveSession sqlEnclaveSession, out long counter);
abstract member CreateEnclaveSession : byte[] * System.Security.Cryptography.ECDiffieHellmanCng * string * string * SqlEnclaveSession * int64 -> unit
Public MustOverride Sub CreateEnclaveSession (enclaveAttestationInfo As Byte(), clientDiffieHellmanKey As ECDiffieHellmanCng, attestationUrl As String, servername As String, ByRef sqlEnclaveSession As SqlEnclaveSession, ByRef counter As Long)

参数

enclaveAttestationInfo
Byte[]

提供程序用以证明 enclave 并为会话生成对称密钥的信息。 此信息的格式专门用于 enclave 证明协议。

clientDiffieHellmanKey
ECDiffieHellmanCng

封装客户端密钥对的 Diffie-Hellman 算法对象。

attestationUrl
String

用于证明 enclave 的证明服务的终结点。

servername
String

包含 enclave 的 SQL Server 实例的名称。

sqlEnclaveSession
SqlEnclaveSession

返回请求的 enclave 会话;如果提供程序未执行会话缓存,则返回 null

counter
Int64

SqlClient 每次从缓存中检索会话时 enclave 提供程序预期递增的计数器。 此字段的用途是预防重播攻击。

适用于