HMACSHA1.HashCore Method

Definition

Overloads

HashCore(ReadOnlySpan<Byte>)
HashCore(Byte[], Int32, Int32)

Routes data written to the object into the SHA1 hash algorithm for computing the Hash-based Message Authentication Code (HMAC).

HashCore(ReadOnlySpan<Byte>)

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))

Parameters

source
ReadOnlySpan<Byte>

HashCore(Byte[], Int32, Int32)

Routes data written to the object into the SHA1 hash algorithm for computing the Hash-based Message Authentication Code (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)

Parameters

rgb
Byte[]

The input data.

ib
Int32

The offset into the byte array from which to begin using data.

cb
Int32

The number of bytes in the array to use as data.

Remarks

Due to collision problems with SHA1, Microsoft recommends a security model based on SHA256 or better.

Applies to