MLKemOpenSsl(SafeEvpPKeyHandle) Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of the MLKemOpenSsl class from an existing OpenSSL key represented as an EVP_PKEY*.
public:
MLKemOpenSsl(System::Security::Cryptography::SafeEvpPKeyHandle ^ pkeyHandle);
[System.Runtime.Versioning.UnsupportedOSPlatform("android")]
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
[System.Runtime.Versioning.UnsupportedOSPlatform("ios")]
[System.Runtime.Versioning.UnsupportedOSPlatform("osx")]
[System.Runtime.Versioning.UnsupportedOSPlatform("tvos")]
[System.Runtime.Versioning.UnsupportedOSPlatform("windows")]
public MLKemOpenSsl(System.Security.Cryptography.SafeEvpPKeyHandle pkeyHandle);
[<System.Runtime.Versioning.UnsupportedOSPlatform("android")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("ios")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("osx")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("tvos")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("windows")>]
new System.Security.Cryptography.MLKemOpenSsl : System.Security.Cryptography.SafeEvpPKeyHandle -> System.Security.Cryptography.MLKemOpenSsl
Public Sub New (pkeyHandle As SafeEvpPKeyHandle)
Parameters
- pkeyHandle
- SafeEvpPKeyHandle
The OpenSSL EVP_PKEY* value to use as the key, represented as a SafeEvpPKeyHandle.
- Attributes
Exceptions
pkeyHandle is null.
The handle in pkeyHandle is not recognized as an ML-KEM key.
-or-
An error occurred while creating the algorithm instance.
The handle in pkeyHandle is already disposed.