Table of Contents

Class Sha256

Namespace
NLightning.Common.Crypto.Hashes
Assembly
NLightning.Common.dll

SHA-256 from FIPS 180-4.

public sealed class Sha256 : IDisposable
Inheritance
Sha256
Implements
Inherited Members

Constructors

Sha256()

public Sha256()

Methods

AppendData(ReadOnlySpan<byte>)

Appends the specified data to the data already processed in the hash.

public void AppendData(ReadOnlySpan<byte> data)

Parameters

data ReadOnlySpan<byte>

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public void Dispose()

~Sha256()

protected ~Sha256()

GetHashAndReset(Span<byte>)

Retrieves the hash for the accumulated data into the hash parameter, and resets the object to its initial state.

public void GetHashAndReset(Span<byte> hash)

Parameters

hash Span<byte>