Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
Sha256.cs
3
5{
9 public class Sha256 : HashFunction
10 {
14 public override string Oid => "2.16.840.1.101.3.4.2.1";
15
21 public override byte[] ComputeHash(byte[] Data) => Hashes.ComputeSHA256Hash(Data);
22
26 public override HashAlgorithmName Name => HashAlgorithmName.SHA256;
27
31 public override int HashLength => 32;
32 }
33}
override int HashLength
Number of bytes used for the hash digest.
Definition: Sha256.cs:31
override HashAlgorithmName Name
Hash Algorithm Name
Definition: Sha256.cs:26
override byte[] ComputeHash(byte[] Data)
Computes a Hash Digest from binary data.
Contains methods for simple hash calculations.
Definition: Hashes.cs:57
static byte[] ComputeSHA256Hash(byte[] Data)
Computes the SHA-256 hash of a block of binary data.
Definition: Hashes.cs:469