String BuildECDH() { _ecDiffie = new System.Security.Cryptography.ECDiffieHellmanCng() { KeyDerivationFunction = System.Security.Cryptography.ECDiffieHellmanKeyDerivationFunction.Hash, HashAlgorithm = System.Security.Cryptography.CngAlgorithm.Sha256 }; return(System.Convert.ToBase64String(_ecDiffie.PublicKey.ToByteArray())); }
/// <include file='.\..\..\..\..\doc\snippets\Microsoft.Data.SqlClient\SqlEnclaveAttestationParameters.xml' path='docs/members[@name="SqlEnclaveAttestationParameters"]/ctor/*' /> public SqlEnclaveAttestationParameters(int protocol, byte[] input, System.Security.Cryptography.ECDiffieHellmanCng clientDiffieHellmanKey) { }
/// <include file='../../../../doc/snippets/Microsoft.Data.SqlClient/SqlColumnEncryptionEnclaveProvider.xml' path='docs/members[@name="SqlColumnEncryptionEnclaveProvider"]/CreateEnclaveSession/*'/> public abstract void CreateEnclaveSession(byte[] enclaveAttestationInfo, System.Security.Cryptography.ECDiffieHellmanCng clientDiffieHellmanKey, string attestationUrl, string servername, out Microsoft.Data.SqlClient.SqlEnclaveSession sqlEnclaveSession, out long counter);