| File: System\Security\Cryptography\ECDiffieHellman.Create.Cng.cs | Web Access |
| Project: src\runtime\src\libraries\System.Security.Cryptography\src\System.Security.Cryptography.csproj (System.Security.Cryptography) |
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. namespace System.Security.Cryptography { public abstract partial class ECDiffieHellman : ECAlgorithm { public static new partial ECDiffieHellman Create() { return new ECDiffieHellmanWrapper(new ECDiffieHellmanCng()); } public static partial ECDiffieHellman Create(ECCurve curve) { return new ECDiffieHellmanWrapper(new ECDiffieHellmanCng(curve)); } public static partial ECDiffieHellman Create(ECParameters parameters) { var ecdh = new ECDiffieHellmanCng(); try { ecdh.ImportParameters(parameters); return new ECDiffieHellmanWrapper(ecdh); } catch { ecdh.Dispose(); throw; } } } }