Share via


HMAC.HashCore 方法

定義

多載

HashCore(ReadOnlySpan<Byte>)

將寫入物件的資料路由傳送至 HMAC 演算法,以用來計算 HMAC。

HashCore(Byte[], Int32, Int32)

於衍生類型中覆寫時,將寫入物件的資料路由傳送至用來計算 HMAC 值的 HMAC 演算法。

HashCore(ReadOnlySpan<Byte>)

來源:
HMAC.cs
來源:
HMAC.cs
來源:
HMAC.cs

將寫入物件的資料路由傳送至 HMAC 演算法,以用來計算 HMAC。

protected:
 override void HashCore(ReadOnlySpan<System::Byte> source);
protected override void HashCore (ReadOnlySpan<byte> source);
override this.HashCore : ReadOnlySpan<byte> -> unit
Protected Overrides Sub HashCore (source As ReadOnlySpan(Of Byte))

參數

source
ReadOnlySpan<Byte>

要用來計算 HMAC 程式碼的輸入。

例外狀況

在所有情況下。

備註

此方法的預設實作會擲回 , PlatformNotSupportedException 因為 HMAC 沒有 Managed 實作。

衍生型別必須覆寫這個方法。

適用於

HashCore(Byte[], Int32, Int32)

來源:
HMAC.cs
來源:
HMAC.cs
來源:
HMAC.cs

於衍生類型中覆寫時,將寫入物件的資料路由傳送至用來計算 HMAC 值的 HMAC 演算法。

protected:
 override void HashCore(cli::array <System::Byte> ^ rgb, int ib, int cb);
protected override void HashCore (byte[] rgb, int ib, int cb);
override this.HashCore : byte[] * int * int -> unit
Protected Overrides Sub HashCore (rgb As Byte(), ib As Integer, cb As Integer)

參數

rgb
Byte[]

輸入資料。

ib
Int32

位元組陣列中的座標,從此處開始使用資料。

cb
Int32

陣列中要用作資料的位元組數目。

備註

應用程式程式代碼不會呼叫這個方法。

另請參閱

適用於