HMACMD5.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
参数
- bytesWritten
- Int32
此方法返回时,为写入 destination 的字节总数。When this method returns, the total number of bytes written into destination. 该参数未经初始化即被处理。This parameter is treated as uninitialized.
返回
destination 的长度不足以接收 HMAC 值,则为 true;否则为 false。true if destination is long enough to receive the HMAC value; otherwise, false.