Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
HashFunction.cs
2
4{
8 public abstract class HashFunction : SecurityObject
9 {
10 private bool configured;
11
15 public override bool IsConfigured => this.configured;
16
22 public override bool Configure(Vector SecurityInfo)
23 {
24 this.configured = true;
25 return true;
26 }
27
29 public override string ToString()
30 {
31 return this.GetType().Name;
32 }
33
39 public abstract byte[] ComputeHash(byte[] Data);
40
44 public abstract HashAlgorithmName Name { get; }
45
49 public abstract int HashLength { get; }
50 }
51}
abstract int HashLength
Number of bytes used for the hash digest.
Definition: HashFunction.cs:49
abstract HashAlgorithmName Name
Hash Algorithm Name
Definition: HashFunction.cs:44
override bool Configure(Vector SecurityInfo)
If the object can be configured by the security information provided.
Definition: HashFunction.cs:22
abstract byte[] ComputeHash(byte[] Data)
Computes a Hash Digest from binary data.
override bool IsConfigured
If the object has been configured.
Definition: HashFunction.cs:15
Abstract base class for security objects.