IncrementalHash Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides support for computing a hash or HMAC value incrementally across several segments.
public ref class IncrementalHash sealed : IDisposable
public sealed class IncrementalHash : IDisposable
type IncrementalHash = class
interface IDisposable
Public NotInheritable Class IncrementalHash
Implements IDisposable
- Inheritance
-
IncrementalHash
- Implements
Properties
| Name | Description |
|---|---|
| AlgorithmName |
Get the name of the algorithm being performed. |
Methods
| Name | Description |
|---|---|
| AppendData(Byte[], Int32, Int32) |
Append |
| AppendData(Byte[]) |
Append the entire contents of |
| AppendData(ReadOnlySpan<Byte>) |
Appends the specified data to the data already processed in the hash or Hash-based Message Authentication Code (HMAC). |
| CreateHash(HashAlgorithmName) |
Create an IncrementalHash for the algorithm specified by |
| CreateHMAC(HashAlgorithmName, Byte[]) |
Create an IncrementalHash for the Hash-based Message Authentication Code (HMAC)
algorithm utilizing the hash algorithm specified by |
| Dispose() |
Release all resources used by the current instance of the IncrementalHash class. |
| Equals(Object) |
Determines whether the specified object is equal to the current object. (Inherited from Object) |
| GetHashAndReset() |
Retrieve the hash or HMAC for the data accumulated from prior calls to AppendData(Byte[]), and return to the state the object was in at construction. |
| GetHashCode() |
Serves as the default hash function. (Inherited from Object) |
| GetType() |
Gets the Type of the current instance. (Inherited from Object) |
| MemberwiseClone() |
Creates a shallow copy of the current Object. (Inherited from Object) |
| ToString() |
Returns a string that represents the current object. (Inherited from Object) |
| TryGetHashAndReset(Span<Byte>, Int32) |
Attempts to finalize the hash computation after the last data is processed by the hash algorithm. |