SP800108HmacCounterKdf 類別

定義

NIST SP 800-108 HMAC CTR Key-Based 金鑰衍生 (KBKDF)

public ref class SP800108HmacCounterKdf sealed : IDisposable
public sealed class SP800108HmacCounterKdf : IDisposable
type SP800108HmacCounterKdf = class
    interface IDisposable
Public NotInheritable Class SP800108HmacCounterKdf
Implements IDisposable
繼承
SP800108HmacCounterKdf
實作

備註

這會在計數器模式中實作 NIST SP 800-108 HMAC。 實作的 KDF 會假設 其格式 PRF (KI, [i]2 || Label || 0x00 || Context || [L]2) 為 , [i]2 其中 和 [L]2 會編碼為不帶正負號的 32 位整數,也就是大端整數。

此類別的所有成員都是安全執行緒。 如果在其他執行緒正在使用 實例時處置 實例,這些執行緒將會收到 ObjectDisposedException 或 產生有效的衍生金鑰。

建構函式

SP800108HmacCounterKdf(Byte[], HashAlgorithmName)

使用指定的索引鍵和 HMAC 演算法,初始化 的新實例 SP800108HmacCounterKdf

SP800108HmacCounterKdf(ReadOnlySpan<Byte>, HashAlgorithmName)

使用指定的索引鍵和 HMAC 演算法,初始化 的新實例 SP800108HmacCounterKdf

方法

DeriveBytes(Byte[], HashAlgorithmName, Byte[], Byte[], Int32)

衍生指定長度的索引鍵。

DeriveBytes(Byte[], HashAlgorithmName, String, String, Int32)

衍生指定長度的索引鍵。

DeriveBytes(ReadOnlySpan<Byte>, HashAlgorithmName, ReadOnlySpan<Byte>, ReadOnlySpan<Byte>, Int32)

衍生指定長度的索引鍵。

DeriveBytes(ReadOnlySpan<Byte>, HashAlgorithmName, ReadOnlySpan<Byte>, ReadOnlySpan<Byte>, Span<Byte>)

使用衍生的索引鍵填入緩衝區。

DeriveBytes(ReadOnlySpan<Byte>, HashAlgorithmName, ReadOnlySpan<Char>, ReadOnlySpan<Char>, Int32)

衍生指定長度的索引鍵。

DeriveBytes(ReadOnlySpan<Byte>, HashAlgorithmName, ReadOnlySpan<Char>, ReadOnlySpan<Char>, Span<Byte>)

使用衍生的索引鍵填入緩衝區。

DeriveKey(Byte[], Byte[], Int32)

衍生指定長度的索引鍵。

DeriveKey(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>, Int32)

衍生指定長度的索引鍵。

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

使用衍生的索引鍵填入緩衝區。

DeriveKey(ReadOnlySpan<Char>, ReadOnlySpan<Char>, Int32)

衍生指定長度的索引鍵。

DeriveKey(ReadOnlySpan<Char>, ReadOnlySpan<Char>, Span<Byte>)

使用衍生的索引鍵填入緩衝區。

DeriveKey(String, String, Int32)

衍生指定長度的索引鍵。

Dispose()

執行與釋放 (Free)、釋放 (Release) 或重設 Unmanaged 資源相關聯之應用程式定義的工作。

Equals(Object)

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

(繼承來源 Object)
GetHashCode()

做為預設雜湊函式。

(繼承來源 Object)
GetType()

取得目前執行個體的 Type

(繼承來源 Object)
MemberwiseClone()

建立目前 Object 的淺層複製。

(繼承來源 Object)
ToString()

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

(繼承來源 Object)

適用於