Show / Hide Table of Contents

Class Hasher

The base hasher class.

Inheritance
System.Object
Hasher
Implements
System.IDisposable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Isopoh.Cryptography.Blake2b
Assembly: Isopoh.Cryptography.Blake2b.dll
Syntax
public abstract class Hasher : IDisposable

Methods

| Improve this Doc View Source

AsHashAlgorithm()

Create a System.Security.Cryptography.HashAlgorithm from this.

Declaration
public HashAlgorithm AsHashAlgorithm()
Returns
Type Description
System.Security.Cryptography.HashAlgorithm

The System.Security.Cryptography.HashAlgorithm based on this Hasher.

| Improve this Doc View Source

Dispose()

Zero and release sensitive resources.

Declaration
public void Dispose()
| Improve this Doc View Source

Dispose(Boolean)

Disposes resources if disposing is true.

Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type Name Description
System.Boolean disposing

Set to true if disposing.

| Improve this Doc View Source

Finish()

Generate the hash from the hash's state.

Declaration
public abstract byte[] Finish()
Returns
Type Description
System.Byte[]

The generated hash.

| Improve this Doc View Source

Init()

Initialize for hash generation.

Declaration
public abstract void Init()
| Improve this Doc View Source

Update(Byte[])

Update the hash's state with the given data.

Declaration
public void Update(byte[] data)
Parameters
Type Name Description
System.Byte[] data

The data to add to the hash's state.

| Improve this Doc View Source

Update(Byte[], Int32, Int32)

Update the hash's state with the given data.

Declaration
public abstract void Update(byte[] data, int start, int count)
Parameters
Type Name Description
System.Byte[] data

The data to add to the hash's state.

System.Int32 start

The index of the first byte of data to add to the hash's state.

System.Int32 count

The number of bytes of data to add to the hash's state.

Implements

System.IDisposable
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX