IncrementalHash.AppendData Method

Definition

Overloads

AppendData(Byte[])

Append the entire contents of data to the data already processed in the hash or HMAC.

AppendData(ReadOnlySpan<Byte>)

Appends the specified data to the data already processed in the hash or Hash-based Message Authentication Code (HMAC).

AppendData(Byte[], Int32, Int32)

Append count bytes of data, starting at offset, to the data already processed in the hash or HMAC.

AppendData(Byte[])

Source:
IncrementalHash.cs
Source:
IncrementalHash.cs
Source:
IncrementalHash.cs

Append the entire contents of data to the data already processed in the hash or HMAC.

C#
public void AppendData(byte[] data);

Parameters

data
Byte[]

The data to process.

Exceptions

data is null.

The object has already been disposed.

Applies to

.NET 10 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, 10
.NET Framework 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 1.3, 1.4, 1.6, 2.0, 2.1

AppendData(ReadOnlySpan<Byte>)

Source:
IncrementalHash.cs
Source:
IncrementalHash.cs
Source:
IncrementalHash.cs

Appends the specified data to the data already processed in the hash or Hash-based Message Authentication Code (HMAC).

C#
public void AppendData(ReadOnlySpan<byte> data);

Parameters

data
ReadOnlySpan<Byte>

The data to process.

Exceptions

The IncrementalHash object has already been disposed.

Applies to

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

AppendData(Byte[], Int32, Int32)

Source:
IncrementalHash.cs
Source:
IncrementalHash.cs
Source:
IncrementalHash.cs

Append count bytes of data, starting at offset, to the data already processed in the hash or HMAC.

C#
public void AppendData(byte[] data, int offset, int count);

Parameters

data
Byte[]

The data to process.

offset
Int32

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

count
Int32

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

Exceptions

data is null.

count is out of range. This parameter requires a non-negative number less than the Length value of data.

count is greater than data.Length - offset.

The object has already been disposed.

Applies to

.NET 10 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, 10
.NET Framework 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 1.3, 1.4, 1.6, 2.0, 2.1