Skip to main content

HashAlgorithm Class

Namespace: System.Security.Cryptography · Assembly: GHIElectronics.TinyCLR.System.Security.Cryptography

Abstract base for cryptographic hash algorithms (MD5, SHA1, SHA256). Matches the .NET BCL surface.

public abstract class HashAlgorithm : IDisposable

Properties

HashSize

public virtual int HashSize { get; set; }

No description available.

Hash

public virtual byte[] Hash { get; set; }

No description available.

Methods

ComputeHash(byte[] buffer)

public abstract byte[] ComputeHash(byte[] buffer)

No description available.

ParameterTypeDescription
bufferbyte[]

Returns byte[]

ComputeHash(byte[] buffer, int offset, int count)

public abstract byte[] ComputeHash(byte[] buffer, int offset, int count)

No description available.

ParameterTypeDescription
bufferbyte[]
offsetint
countint

Returns byte[]

ComputeHash(Stream inputStream)

public abstract byte[] ComputeHash(Stream inputStream)

No description available.

ParameterTypeDescription
inputStreamStream

Returns byte[]

Initialize()

public abstract void Initialize()

No description available.

Clear()

public void Clear()

Removes all elements from the UIElementCollection. (inherited)

Dispose()

public virtual void Dispose()

Releases buffered memory (the unmanaged firmware/application buffers). (inherited)