HashAlgorithm.HashCore 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 名稱 | Description |
|---|---|
| HashCore(Byte[], Int32, Int32) |
當在衍生類別中覆寫時,會將寫入物件的資料導向計算雜湊演算法。 |
| HashCore(ReadOnlySpan<Byte>) |
將寫入物件的資料導向雜湊演算法以計算雜湊值。 |
HashCore(Byte[], Int32, Int32)
當在衍生類別中覆寫時,會將寫入物件的資料導向計算雜湊演算法。
protected:
abstract void HashCore(cli::array <System::Byte> ^ array, int ibStart, int cbSize);
protected abstract void HashCore(byte[] array, int ibStart, int cbSize);
abstract member HashCore : byte[] * int * int -> unit
Protected MustOverride Sub HashCore (array As Byte(), ibStart As Integer, cbSize As Integer)
參數
- array
- Byte[]
計算雜湊碼的輸入。
- ibStart
- Int32
從位元組陣列開始使用資料的偏移量。
- cbSize
- Int32
位元組陣列中可用作資料的位元組數。
備註
此方法不會被應用程式碼呼叫。
此抽象方法執行雜湊計算。 每次寫入密碼雜湊演算法的資料都會經過此方法。 對於每個資料區塊,此方法更新雜湊物件的狀態,使資料結束時回傳正確的雜湊值。
適用於
HashCore(ReadOnlySpan<Byte>)
將寫入物件的資料導向雜湊演算法以計算雜湊值。
protected:
virtual void HashCore(ReadOnlySpan<System::Byte> source);
protected virtual void HashCore(ReadOnlySpan<byte> source);
abstract member HashCore : ReadOnlySpan<byte> -> unit
override this.HashCore : ReadOnlySpan<byte> -> unit
Protected Overridable Sub HashCore (source As ReadOnlySpan(Of Byte))
參數
- source
- ReadOnlySpan<Byte>
計算雜湊碼的輸入。
備註
此方法的預設實作會 source 複製到暫存陣列並呼叫 HashCore(Byte[], Int32, Int32)。
導出型別應覆寫此方法,以避免中間資料複製。