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

When overridden in a derived class, routes data written to the object into the HMAC algorithm for computing the HMAC value.

HashCore(ReadOnlySpan<Byte>)

Source:
HMAC.cs
Source:
HMAC.cs
Source:
HMAC.cs

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

C#
protected override void HashCore(ReadOnlySpan<byte> source);

Parameters

source
ReadOnlySpan<Byte>

The input to compute the HMAC code for.

Exceptions

Remarks

The default implementation of this method throws a PlatformNotSupportedException because there is no managed implementation of HMAC.

Derived types must override this method.

Applies to

.NET 9 and other versions
Product Versions
.NET Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9
.NET Standard 2.1

HashCore(Byte[], Int32, Int32)

Source:
HMAC.cs
Source:
HMAC.cs
Source:
HMAC.cs

When overridden in a derived class, routes data written to the object into the HMAC algorithm for computing the HMAC value.

C#
protected override void HashCore(byte[] rgb, int ib, int cb);

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

This method is not called by application code.

See also

Applies to

.NET 9 and other versions
Product Versions
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 1.3, 1.4, 1.6, 2.0, 2.1