Imports a public or private key and converts to a CryptoKey.
Since key parameters for createSenderContext or createRecipientContext are CryptoKey format, you have to use this function to convert provided keys to CryptoKey.
Basically, this is a thin wrapper function of SubtleCrypto.importKey.
If the error occurred, throws DeserializeError.
For now, 'raw' and 'jwk' are supported.
A byte string of a raw key or A JsonWebKey object.
The indicator whether the provided key is a public key or not, which is used only for 'raw' format.
A public or private CryptoKey.
The ML-KEM-1024 for HPKE KEM implementing KemInterface.
The instance of this class can be specified to the CipherSuiteParams as follows:
Example