MLKemCng 类

定义

提供模块Lattice-Based Key-Encapsulation 机制(ML-KEM)的下一代加密实现。

public ref class MLKemCng sealed : System::Security::Cryptography::MLKem
public sealed class MLKemCng : System.Security.Cryptography.MLKem
type MLKemCng = class
    inherit MLKem
Public NotInheritable Class MLKemCng
Inherits MLKem
继承
MLKemCng

注解

此算法由 FIPS-203 指定。

鼓励开发人员针对 MLKem 基类进行编程,而不是任何特定的派生类。

派生类适用于与基础系统加密库的互操作。

构造函数

名称 说明
MLKemCng(CngKey)

使用指定的MLKemCng值初始化类的新实例CngKey

属性

名称 说明
Algorithm

获取此密钥的特定 ML-KEM 算法。

(继承自 MLKem)

方法

名称 说明
Decapsulate(Byte[])

从提供的密码文本中解封共享机密。

(继承自 MLKem)
Decapsulate(ReadOnlySpan<Byte>, Span<Byte>)

从提供的密码文本中解封共享机密。

(继承自 MLKem)
DecapsulateCore(ReadOnlySpan<Byte>, Span<Byte>)

在派生类中重写时,从提供的密码文本中解封共享机密。

(继承自 MLKem)
Dispose()

释放类使用 MLKem 的所有资源。

(继承自 MLKem)
Dispose(Boolean)

Dispose()Finalize() 方法调用以释放类的 MLKem 当前实例使用的托管和非托管资源。

(继承自 MLKem)
Encapsulate(Byte[], Byte[])

创建封装密码文本和共享机密。

(继承自 MLKem)
Encapsulate(Span<Byte>, Span<Byte>)

创建封装密码文本和共享机密,将其写入提供的缓冲区。

(继承自 MLKem)
EncapsulateCore(Span<Byte>, Span<Byte>)

在派生类中重写时,创建封装密码文本和共享机密,并将其写入提供的缓冲区。

(继承自 MLKem)
Equals(Object)

确定指定的对象是否等于当前对象。

(继承自 Object)
ExportDecapsulationKey()

导出解封密钥。

(继承自 MLKem)
ExportDecapsulationKey(Span<Byte>)

将解封密钥导出到提供的缓冲区。

(继承自 MLKem)
ExportDecapsulationKeyCore(Span<Byte>)

在派生类中重写时,将解封密钥导出到提供的缓冲区中。

(继承自 MLKem)
ExportEncapsulationKey()

导出封装密钥。

(继承自 MLKem)
ExportEncapsulationKey(Span<Byte>)

将封装密钥导出到提供的缓冲区中。

(继承自 MLKem)
ExportEncapsulationKeyCore(Span<Byte>)

在派生类中重写时,将封装密钥导出到提供的缓冲区中。

(继承自 MLKem)
ExportEncryptedPkcs8PrivateKey(ReadOnlySpan<Byte>, PbeParameters)

使用基于字节的密码导出 PKCS#8 EncryptedPrivateKeyInfo 格式的当前密钥。

(继承自 MLKem)
ExportEncryptedPkcs8PrivateKey(ReadOnlySpan<Char>, PbeParameters)

使用基于字符的密码导出 PKCS#8 EncryptedPrivateKeyInfo 格式的当前密钥。

(继承自 MLKem)
ExportEncryptedPkcs8PrivateKey(String, PbeParameters)

使用基于字符的密码导出 PKCS#8 EncryptedPrivateKeyInfo 格式的当前密钥。

(继承自 MLKem)
ExportEncryptedPkcs8PrivateKeyPem(ReadOnlySpan<Byte>, PbeParameters)

使用基于字节的密码导出此密钥的 PKCS#8 EncryptedPrivateKeyInfo 表示形式的 PEM 编码表示形式中的当前密钥。

(继承自 MLKem)
ExportEncryptedPkcs8PrivateKeyPem(ReadOnlySpan<Char>, PbeParameters)

使用基于字符的密码导出此密钥的 PKCS#8 EncryptedPrivateKeyInfo 表示形式的 PEM 编码表示形式中的当前密钥。

(继承自 MLKem)
ExportEncryptedPkcs8PrivateKeyPem(String, PbeParameters)

使用字符串密码导出此密钥的 PKCS#8 EncryptedPrivateKeyInfo 表示形式的 PEM 编码表示形式中的当前密钥。

(继承自 MLKem)
ExportPkcs8PrivateKey()

以 PKCS#8 PrivateKeyInfo 格式导出当前密钥。

(继承自 MLKem)
ExportPkcs8PrivateKeyPem()

以 PKCS#8 PrivateKeyInfo 格式的 PEM 编码表示形式导出当前密钥。

(继承自 MLKem)
ExportPrivateSeed()

导出专用种子。

(继承自 MLKem)
ExportPrivateSeed(Span<Byte>)

将专用种子导出到提供的缓冲区。

(继承自 MLKem)
ExportPrivateSeedCore(Span<Byte>)

在派生类中重写时,将私有种子导出到提供的缓冲区中。

(继承自 MLKem)
ExportSubjectPublicKeyInfo()

以 X.509 SubjectPublicKeyInfo 格式导出当前密钥的公钥部分。

(继承自 MLKem)
ExportSubjectPublicKeyInfoPem()

以 X.509 SubjectPublicKeyInfo 格式的 PEM 编码表示形式导出当前密钥的公钥部分。

(继承自 MLKem)
GetHashCode()

用作默认哈希函数。

(继承自 Object)
GetKey()

获取表示当前实例使用的键的新 CngKey 值。

GetType()

获取当前实例的 Type

(继承自 Object)
MemberwiseClone()

创建当前 Object的浅表副本。

(继承自 Object)
ToString()

返回一个表示当前对象的字符串。

(继承自 Object)
TryExportEncryptedPkcs8PrivateKey(ReadOnlySpan<Byte>, PbeParameters, Span<Byte>, Int32)

尝试使用基于字节的密码将 PKCS#8 EncryptedPrivateKeyInfo 格式中的当前密钥导出到提供的缓冲区中。

(继承自 MLKem)
TryExportEncryptedPkcs8PrivateKey(ReadOnlySpan<Char>, PbeParameters, Span<Byte>, Int32)

尝试使用基于字符的密码将 PKCS#8 EncryptedPrivateKeyInfo 格式中的当前密钥导出到提供的缓冲区中。

(继承自 MLKem)
TryExportEncryptedPkcs8PrivateKey(String, PbeParameters, Span<Byte>, Int32)

尝试使用基于字符的密码将 PKCS#8 EncryptedPrivateKeyInfo 格式中的当前密钥导出到提供的缓冲区中。

(继承自 MLKem)
TryExportPkcs8PrivateKey(Span<Byte>, Int32)

尝试将 PKCS#8 PrivateKeyInfo 格式的当前密钥导出到提供的缓冲区中。

(继承自 MLKem)
TryExportPkcs8PrivateKeyCore(Span<Byte>, Int32)

在派生类中重写时,尝试将 PKCS#8 PrivateKeyInfo 格式中的当前密钥导出到提供的缓冲区中。

(继承自 MLKem)
TryExportSubjectPublicKeyInfo(Span<Byte>, Int32)

尝试将当前密钥的公钥部分以 X.509 SubjectPublicKeyInfo 格式导出到提供的缓冲区中。

(继承自 MLKem)

适用于