ECDsaOpenSsl.DuplicateKeyHandle Method

Definition

Gets a SafeEvpPKeyHandle representation of the cryptographic key.

C#
public System.Security.Cryptography.SafeEvpPKeyHandle DuplicateKeyHandle();

Returns

A SafeEvpPKeyHandle representation of the cryptographic key.

Remarks

Each call to this method produces a new SafeEvpPKeyHandle object with its own lifetime. The objects returned by this method can safely be used even after this ECDsaOpenSsl instance has been disposed. However, modifying operations (that is, direct calls to modifying OpenSSL APIs) on the new handle operate on the same underlying object. The new instance this method returns is simply an additional reference.

Applies to

Product Versions
.NET Core 1.0, Core 1.1, 6, 7, 8, 9, 10
.NET Standard 2.0 (package-provided)