MLDsa 類別

定義

代表 ML-DSA 調。

public ref class MLDsa abstract : IDisposable
public abstract class MLDsa : IDisposable
type MLDsa = class
    interface IDisposable
Public MustInherit Class MLDsa
Implements IDisposable
繼承
MLDsa
衍生
實作

備註

此演算法由FIPS-204規範。

開發者被鼓勵針對基底類別進行程式設計 MLDsa ,而非針對特定衍生類別。

衍生類別旨在與底層系統密碼函式庫互通。

建構函式

名稱 Description
MLDsa(MLDsaAlgorithm)

初始化 MLDsa 類別的新執行個體。

屬性

名稱 Description
Algorithm

取得該金鑰的具體 ML-DSA 演算法。

IsSupported

會獲得一個值,表示目前平台是否支援 ML-DSA。

方法

名稱 Description
Dispose()

釋放 MLDsa 類別所使用的所有資源。

Dispose(Boolean)

由 and Dispose() 方法呼叫Finalize(),以釋放目前類別實例MLDsa所使用的管理與非管理資源。

Equals(Object)

判斷指定的物件是否等於目前的物件。

(繼承來源 Object)
ExportEncryptedPkcs8PrivateKey(ReadOnlySpan<Byte>, PbeParameters)

以 PKCS#8 EncryptedPrivateKeyInfo 格式匯出目前金鑰,並以位元組為基礎的密碼。

ExportEncryptedPkcs8PrivateKey(ReadOnlySpan<Char>, PbeParameters)

以 PKCS#8 EncryptedPrivateKeyInfo 格式匯出目前金鑰,並以字元為基礎的密碼。

ExportEncryptedPkcs8PrivateKey(String, PbeParameters)

以 PKCS#8 EncryptedPrivateKeyInfo 格式匯出目前金鑰,並以字元為基礎的密碼。

ExportEncryptedPkcs8PrivateKeyPem(ReadOnlySpan<Byte>, PbeParameters)

以 PEM 編碼的 PKCS#8 EncryptedPrivateKeyInfo 表示法匯出當前金鑰,並使用位元組密碼。

ExportEncryptedPkcs8PrivateKeyPem(ReadOnlySpan<Char>, PbeParameters)

以 PEM 編碼的 PKCS#8 EncryptedPrivateKeyInfo 表示法匯出當前金鑰,並使用 char 密碼。

ExportEncryptedPkcs8PrivateKeyPem(String, PbeParameters)

以 PEM 編碼的 PKCS#8 EncryptedPrivateKeyInfo 表示法匯出當前金鑰,並使用 char 密碼。

ExportMLDsaPrivateKey()

匯出目前的金鑰,採用 FIPS 204 私鑰格式。

ExportMLDsaPrivateKey(Span<Byte>)

匯出目前的金鑰,採用 FIPS 204 私鑰格式。

ExportMLDsaPrivateKeyCore(Span<Byte>)

當在衍生類別中覆寫時,會將 FIPS 204 私鑰匯出到指定的緩衝區。

ExportMLDsaPrivateSeed()

以 FIPS 204 私有種子格式匯出私有種子。

ExportMLDsaPrivateSeed(Span<Byte>)

匯出目前金鑰的私有種子。

ExportMLDsaPrivateSeedCore(Span<Byte>)

當在派生類別中覆寫時,會將私有種子匯出到指定的緩衝區。

ExportMLDsaPublicKey()

匯出目前金鑰的公鑰部分,採用 FIPS 204 公鑰格式。

ExportMLDsaPublicKey(Span<Byte>)

匯出目前金鑰的公鑰部分,採用 FIPS 204 公鑰格式。

ExportMLDsaPublicKeyCore(Span<Byte>)

當在派生類別中覆寫時,會將 FIPS 204 公鑰匯出到指定的緩衝區。

ExportPkcs8PrivateKey()

匯出目前的金鑰,格式為 PKCS#8 PrivateKeyInfo。

ExportPkcs8PrivateKeyPem()

以 PEM 編碼的 PKCS#8 PrivateKeyInfo 格式匯出目前金鑰。

ExportSubjectPublicKeyInfo()

匯出目前金鑰中公開金鑰部分,格式為 X.509 SubjectPublicKeyInfo。

ExportSubjectPublicKeyInfoPem()

以 PEM 編碼的 X.509 SubjectPublicKeyInfo 格式匯出目前金鑰的公鑰部分。

GenerateKey(MLDsaAlgorithm)

會產生新的 ML-DSA 金鑰。

GetHashCode()

做為預設哈希函式。

(繼承來源 Object)
GetType()

取得目前實例的 Type

(繼承來源 Object)
ImportEncryptedPkcs8PrivateKey(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>)

從 PKCS#8 EncryptedPrivateKeyInfo 結構匯入 ML-DSA 私鑰。

ImportEncryptedPkcs8PrivateKey(ReadOnlySpan<Char>, ReadOnlySpan<Byte>)

從 PKCS#8 EncryptedPrivateKeyInfo 結構匯入 ML-DSA 私鑰。

ImportEncryptedPkcs8PrivateKey(String, Byte[])

從 PKCS#8 EncryptedPrivateKeyInfo 結構匯入 ML-DSA 私鑰。

ImportFromEncryptedPem(ReadOnlySpan<Char>, ReadOnlySpan<Byte>)

從加密的 RFC 7468 PEM 編碼字串匯入 ML-DSA 金鑰。

ImportFromEncryptedPem(ReadOnlySpan<Char>, ReadOnlySpan<Char>)

從加密的 RFC 7468 PEM 編碼字串匯入 ML-DSA 金鑰。

ImportFromEncryptedPem(String, Byte[])

從加密的 RFC 7468 PEM 編碼字串匯入 ML-DSA 金鑰。

ImportFromEncryptedPem(String, String)

從加密的 RFC 7468 PEM 編碼字串匯入 ML-DSA 金鑰。

ImportFromPem(ReadOnlySpan<Char>)

從 RFC 7468 PEM 編碼字串匯入 ML-DSA 鍵。

ImportFromPem(String)

從 RFC 7468 PEM 編碼字串匯入 ML-DSA 鍵。

ImportMLDsaPrivateKey(MLDsaAlgorithm, Byte[])

匯入 FIPS 204 私鑰格式的 ML-DSA 私鑰。

ImportMLDsaPrivateKey(MLDsaAlgorithm, ReadOnlySpan<Byte>)

匯入 FIPS 204 私鑰格式的 ML-DSA 私鑰。

ImportMLDsaPrivateSeed(MLDsaAlgorithm, Byte[])

從其私有種子值匯入 ML-DSA 私鑰。

ImportMLDsaPrivateSeed(MLDsaAlgorithm, ReadOnlySpan<Byte>)

從其私有種子值匯入 ML-DSA 私鑰。

ImportMLDsaPublicKey(MLDsaAlgorithm, Byte[])

匯入 FIPS 204 公鑰格式的 ML-DSA 公鑰。

ImportMLDsaPublicKey(MLDsaAlgorithm, ReadOnlySpan<Byte>)

匯入 FIPS 204 公鑰格式的 ML-DSA 公鑰。

ImportPkcs8PrivateKey(Byte[])

從 PKCS#8 PrivateKeyInfo 結構匯入 ML-DSA 私鑰。

ImportPkcs8PrivateKey(ReadOnlySpan<Byte>)

從 PKCS#8 PrivateKeyInfo 結構匯入 ML-DSA 私鑰。

ImportSubjectPublicKeyInfo(Byte[])

從 X.509 SubjectPublicKeyInfo 結構匯入 ML-DSA 公鑰。

ImportSubjectPublicKeyInfo(ReadOnlySpan<Byte>)

從 X.509 SubjectPublicKeyInfo 結構匯入 ML-DSA 公鑰。

MemberwiseClone()

建立目前 Object的淺層複本。

(繼承來源 Object)
SignData(Byte[], Byte[])

簽署指定的資料。

SignData(ReadOnlySpan<Byte>, Span<Byte>, ReadOnlySpan<Byte>)

對指定資料進行簽名,並將簽名寫入所提供的緩衝區。

SignDataCore(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>, Span<Byte>)

當在派生類別中覆寫時,會計算指定資料與上下文的簽章,並將其寫入所提供的緩衝區。

SignMu(Byte[])

符號為指定的外部計算簽名 mu(μ)值。

SignMu(ReadOnlySpan<Byte>, Span<Byte>)

對指定的外部計算簽章 mu(μ) 值進行簽名,並將簽章寫入所提供的緩衝區。

SignMu(ReadOnlySpan<Byte>)

符號為指定的外部計算簽名 mu(μ)值。

SignMuCore(ReadOnlySpan<Byte>, Span<Byte>)

當在派生類別中覆寫時,會從預先計算的 mu(μ) 值計算剩餘的簽名,並將其寫入所提供的緩衝區。

SignPreHash(Byte[], String, Byte[])

使用 FIPS 204 預雜湊簽名演算法對指定的雜湊值進行簽名。

SignPreHash(ReadOnlySpan<Byte>, Span<Byte>, String, ReadOnlySpan<Byte>)

使用 FIPS 204 預雜湊簽名演算法對指定的雜湊值進行簽名,並將簽章寫入所提供的緩衝區。

SignPreHashCore(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>, String, Span<Byte>)

當在派生類別中覆寫時,會計算指定雜湊值及上下文的前雜湊簽名,並將其寫入所提供的緩衝區。

ToString()

傳回表示目前 物件的字串。

(繼承來源 Object)
TryExportEncryptedPkcs8PrivateKey(ReadOnlySpan<Byte>, PbeParameters, Span<Byte>, Int32)

嘗試以 PKCS#8 EncryptedPrivateKeyInfo 格式將目前金鑰匯出到提供的緩衝區,使用位元組密碼。

TryExportEncryptedPkcs8PrivateKey(ReadOnlySpan<Char>, PbeParameters, Span<Byte>, Int32)

嘗試將目前的 PKCS#8 EncryptedPrivateKeyInfo 格式金鑰匯出到提供的緩衝區,使用字元密碼。

TryExportEncryptedPkcs8PrivateKey(String, PbeParameters, Span<Byte>, Int32)

嘗試將目前的 PKCS#8 EncryptedPrivateKeyInfo 格式金鑰匯出到提供的緩衝區,使用字元密碼。

TryExportPkcs8PrivateKey(Span<Byte>, Int32)

嘗試將目前的 PKCS#8 PrivateKeyInfo 格式金鑰匯出至提供的緩衝區。

TryExportPkcs8PrivateKeyCore(Span<Byte>, Int32)

當在衍生類別中覆寫時,會嘗試將目前的 PKCS#8 PrivateKeyInfo 格式匯出到提供的緩衝區。

TryExportSubjectPublicKeyInfo(Span<Byte>, Int32)

嘗試將目前金鑰中公鑰部分以 X.509 SubjectPublicKeyInfo 格式匯出至提供的緩衝區。

VerifyData(Byte[], Byte[], Byte[])

驗證指定簽章是否適用於此金鑰及所提供的資料。

VerifyData(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>, ReadOnlySpan<Byte>)

驗證指定簽章是否適用於此金鑰及所提供的資料。

VerifyDataCore(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>, ReadOnlySpan<Byte>)

當在派生類別中覆寫時,會驗證指定資料與上下文的簽名。

VerifyMu(Byte[], Byte[])

驗證數位簽章是否適用於外部計算的簽章 mu(μ)值。

VerifyMu(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>)

驗證數位簽章是否適用於外部計算的簽章 mu(μ)值。

VerifyMuCore(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>)

當在派生類別中覆寫時,驗證數位簽章是否對外部計算的簽章 mu (μ) 值有效。

VerifyPreHash(Byte[], Byte[], String, Byte[])

驗證指定的 FIPS 204 雜湊前簽章是否適用於此金鑰及所提供的雜湊值。

VerifyPreHash(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>, String, ReadOnlySpan<Byte>)

驗證指定的 FIPS 204 雜湊前簽章是否適用於此金鑰及所提供的雜湊值。

VerifyPreHashCore(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>, String, ReadOnlySpan<Byte>)

當在派生類別中覆寫時,會驗證指定雜湊和上下文的前雜湊簽名。

適用於