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 SourceAsHashAlgorithm()
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. |
Dispose()
Zero and release sensitive resources.
Declaration
public void Dispose()
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. |
Finish()
Generate the hash from the hash's state.
Declaration
public abstract byte[] Finish()
Returns
Type | Description |
---|---|
System.Byte[] | The generated hash. |
Init()
Initialize for hash generation.
Declaration
public abstract void Init()
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. |
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 |
System.Int32 | count | The number of bytes of |
Implements
System.IDisposable