Share via


SHA256Managed.HashCore(Byte[], Int32, Int32) 方法

定義

在衍生類別 (Derived Class) 中覆寫時,將寫入物件的資料轉遞到用來計算雜湊的 SHA256 雜湊演算法。

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

參數

arrayrgb
Byte[]

輸入資料。

ibStart
Int32

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

cbSize
Int32

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

備註

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

這個抽象方法會執行哈希計算。 每次寫入密碼編譯數據流物件時,都會透過這個方法傳遞數據。 對於每個數據區塊,這個方法會更新哈希物件的狀態,以便在數據流結尾傳回正確的哈希值。

適用於

另請參閱