SqlColumnEncryptionEnclaveProvider.CreateEnclaveSession(Byte[], ECDiffieHellmanCng, String, String, SqlEnclaveSession, Int64) 方法

定義

當在衍生類別中覆寫時,執行 enclave 證明、產生工作階段的對稱金鑰、建立 enclave 工作階段,並將工作階段資訊儲存在快取中。When overridden in a derived class, performs enclave attestation, generates a symmetric key for the session, creates a an enclave session and stores the session information in the cache.

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 和產生工作階段對稱金鑰的資訊。The information the provider uses to attest the enclave and generate a symmetric key for the session. 此資訊的格式專用於 enclave 證明通訊協定。The format of this information is specific to the enclave attestation protocol.

clientDiffieHellmanKey
ECDiffieHellmanCng

封裝用戶端金鑰組的 Diffie-Hellman 演算法物件。A Diffie-Hellman algorithm object that encapsulates a client-side key pair.

attestationUrl
String

用以證明 enclave 的證明服務端點。The endpoint of an attestation service for attesting the enclave.

servername
String

包含 enclave 的 SQL Server 執行個體名稱。The name of the SQL Server instance containing the enclave.

sqlEnclaveSession
SqlEnclaveSession

要求的 enclave 工作階段或 null (如果提供者不實作工作階段快取)。The requested enclave session or null if the provider doesn't implement session caching.

counter
Int64

enclave 提供者在每次 SqlClient 從快取中擷取工作階段時應遞增的計數器。A counter that the enclave provider is expected to increment each time SqlClient retrieves the session from the cache. 這個欄位的目的在於防止重新執行攻擊。The purpose of this field is to prevent replay attacks.

適用於