<PackageReference Include="System.Security.Cryptography.Cng" Version="5.0.0-preview.6.20305.6" />

System.Security.Cryptography.ECDiffieHellmanCng

public sealed class ECDiffieHellmanCng : ECDiffieHellman
public CngAlgorithm HashAlgorithm { get; set; }

public byte[] HmacKey { get; set; }

public CngKey Key { get; }

public byte[] Label { get; set; }

public byte[] SecretAppend { get; set; }

public byte[] SecretPrepend { get; set; }

public byte[] Seed { get; set; }

public bool UseSecretAgreementAsHmacKey { get; }

public ECDiffieHellmanCng(int keySize)

public byte[] DeriveKeyMaterial(CngKey otherPartyPublicKey)

public void FromXmlString(string xml, ECKeyXmlFormat format)

public string ToXmlString(ECKeyXmlFormat format)