HMACSHA384.TryHashFinal(Span<Byte>, Int32) 方法

定義

在 HMAC 演算法處理最後一筆資料之後,嘗試完成 HMAC 計算。Attempts to finalize the HMAC computation after the last data is processed by the HMAC algorithm.

protected:
 override bool TryHashFinal(Span<System::Byte> destination, [Runtime::InteropServices::Out] int % bytesWritten);
protected override bool TryHashFinal (Span<byte> destination, out int bytesWritten);
override this.TryHashFinal : Span<byte> * int -> bool
Protected Overrides Function TryHashFinal (destination As Span(Of Byte), ByRef bytesWritten As Integer) As Boolean

參數

destination
Span<Byte>

要接收 HMAC 值的緩衝區。The buffer to receive the HMAC value.

bytesWritten
Int32

當此方法傳回時,為寫入 destination 的位元組總數。When this method returns, the total number of bytes written into destination. 這個參數會被視為未初始化。This parameter is treated as uninitialized.

傳回

Boolean

如果 destination 的長度足以接收 HMAC 值,則為 true;否則為 falsetrue if destination is long enough to receive the HMAC value; otherwise, false.

適用於