20 protected override void Dispose(
bool disposing)
26 base.Dispose(disposing);
41 if (publicKeyBlob ==
null)
88 string curveName = cngKey.GetCurveName(out oidValue);
89 if (
string.IsNullOrEmpty(curveName))
static string Cryptography_ArgECDHRequiresECDHKey
static CngAlgorithmGroup ECDiffieHellman
static CngKey Import(ReadOnlySpan< byte > keyBlob, CngKeyBlobFormat format)
static unsafe void ExportNamedCurveParameters(ref ECParameters ecParams, byte[] ecBlob, bool includePrivateParameters)
static byte[] ExportKeyBlob(CngKey key, bool includePrivateParameters)
static unsafe void ExportPrimeCurveParameters(ref ECParameters ecParams, byte[] ecBlob, bool includePrivateParameters)
static byte[] ExportFullKeyBlob(CngKey key, bool includePrivateParameters)
static ECDiffieHellmanCngPublicKey FromKey(CngKey key)
override ECParameters ExportParameters()
static ECDiffieHellmanCngPublicKey FromXmlString(string xml)
static ECDiffieHellmanPublicKey FromByteArray(byte[] publicKeyBlob, CngKeyBlobFormat format)
override void Dispose(bool disposing)
ECDiffieHellmanCngPublicKey(byte[] keyBlob, string curveName, CngKeyBlobFormat format)
readonly CngKeyBlobFormat _format
readonly string _curveName
override string ToXmlString()
CngKeyBlobFormat BlobFormat
override ECParameters ExportExplicitParameters()
virtual byte[] ToByteArray()
static ECCurve CreateFromFriendlyName(string oidFriendlyName)