SlhDsa 類別

定義

代表 SLH-DSA 調。

public ref class SlhDsa abstract : IDisposable
[System.Diagnostics.CodeAnalysis.Experimental("SYSLIB5006", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
public abstract class SlhDsa : IDisposable
public abstract class SlhDsa : IDisposable
[<System.Diagnostics.CodeAnalysis.Experimental("SYSLIB5006", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
type SlhDsa = class
    interface IDisposable
type SlhDsa = class
    interface IDisposable
Public MustInherit Class SlhDsa
Implements IDisposable
繼承
SlhDsa
衍生
屬性
實作

備註

此演算法由FIPS-205規範。

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

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

建構函式

名稱 Description
SlhDsa(SlhDsaAlgorithm)

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

屬性

名稱 Description
Algorithm

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

IsSupported

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

方法

名稱 Description
Dispose()

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

Dispose(Boolean)

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

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 密碼。

ExportPkcs8PrivateKey()

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

ExportPkcs8PrivateKeyPem()

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

ExportSlhDsaPrivateKey()

匯出目前的金鑰,格式為 FIPS 205 私鑰。

ExportSlhDsaPrivateKey(Span<Byte>)

匯出目前的金鑰,格式為 FIPS 205 私鑰。

ExportSlhDsaPrivateKeyCore(Span<Byte>)

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

ExportSlhDsaPublicKey()

匯出目前金鑰中公開金鑰部分,採用 FIPS 205 公鑰格式。

ExportSlhDsaPublicKey(Span<Byte>)

匯出目前金鑰中公開金鑰部分,採用 FIPS 205 公鑰格式。

ExportSlhDsaPublicKeyCore(Span<Byte>)

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

ExportSubjectPublicKeyInfo()

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

ExportSubjectPublicKeyInfoPem()

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

GenerateKey(SlhDsaAlgorithm)

為指定演算法產生新的 SLH-DSA 金鑰。

GetHashCode()

做為預設哈希函式。

(繼承來源 Object)
GetType()

取得目前實例的 Type

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

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

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

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

ImportEncryptedPkcs8PrivateKey(String, Byte[])

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

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

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

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

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

ImportFromEncryptedPem(String, Byte[])

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

ImportFromEncryptedPem(String, String)

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

ImportFromPem(ReadOnlySpan<Char>)

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

ImportFromPem(String)

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

ImportPkcs8PrivateKey(Byte[])

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

ImportPkcs8PrivateKey(ReadOnlySpan<Byte>)

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

ImportSlhDsaPrivateKey(SlhDsaAlgorithm, Byte[])

匯入 FIPS 205 私鑰格式的 SLH-DSA 私鑰。

ImportSlhDsaPrivateKey(SlhDsaAlgorithm, ReadOnlySpan<Byte>)

匯入 FIPS 205 私鑰格式的 SLH-DSA 私鑰。

ImportSlhDsaPublicKey(SlhDsaAlgorithm, Byte[])

匯入 FIPS 205 公鑰格式的 SLH-DSA 公鑰。

ImportSlhDsaPublicKey(SlhDsaAlgorithm, ReadOnlySpan<Byte>)

匯入 FIPS 205 公鑰格式的 SLH-DSA 公鑰。

ImportSubjectPublicKeyInfo(Byte[])

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

ImportSubjectPublicKeyInfo(ReadOnlySpan<Byte>)

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

MemberwiseClone()

建立目前 Object的淺層複本。

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

簽署指定的資料。

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

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

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

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

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

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

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

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

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>)

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

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

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

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

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

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

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

適用於