संपादित करें

इसके माध्यम से साझा किया गया


HMACSHA1.HashCore Method

Definition

Overloads

HashCore(ReadOnlySpan<Byte>)

Routes data written to the object into the HMAC algorithm for computing the HMAC.

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

Source:
HMACSHA1.cs
Source:
HMACSHA1.cs
Source:
HMACSHA1.cs

Routes data written to the object into the HMAC algorithm for computing the HMAC.

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>

The input to compute the HMAC for.

Applies to

HashCore(Byte[], Int32, Int32)

Source:
HMACSHA1.cs
Source:
HMACSHA1.cs
Source:
HMACSHA1.cs

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