SystemEX  Lacking
Additional generic collection types missing in .net
SystemEx.Hash.Black3Hasher Class Referencesealed

ONLY TEST!!! More...

Inheritance diagram for SystemEx.Hash.Black3Hasher:
Collaboration diagram for SystemEx.Hash.Black3Hasher:

Public Member Functions

 Black3Hasher (Endian endian, byte[] IV)
Hash32 Compute (FixedVector< byte > input, uint seed)
 Computes a 32‑bit hash over the given byte vector using the specified seed and endian mode.
Hash64 ComputeLong (FixedVector< byte > input, ulong seed)
 Computes a 64‑bit hash over the given byte vector using the specified seed and endian mode.

Detailed Description

ONLY TEST!!!

Constructor & Destructor Documentation

◆ Black3Hasher()

SystemEx.Hash.Black3Hasher.Black3Hasher ( Endian endian,
byte[] IV )
16 {
17 m_key = new Vector<byte>(IV);
18 m_endian = endian;
19 }

Member Function Documentation

◆ Compute()

Hash32 SystemEx.Hash.Black3Hasher.Compute ( FixedVector< byte > input,
uint seed )

Computes a 32‑bit hash over the given byte vector using the specified seed and endian mode.

Implements SystemEx.Hash.IHash.

20 {
21 Black3 hash = new Black3(m_key.ToNative());
22
23 hash.Chunk.Update(input.ToNative());
24
25 var output = hash.Chunk.Finalize();
26
27 byte[] cv = new byte[Black3Infos.BLAKE3_OUT_LEN];
28 output.chaining_value(cv);
29
30
31 // Hash32 erzeugen (dein eigener Typ)
32 return new Hash32(cv.ToUInt());
33 }
T[] ToNative()
Get the array from the underlayes data.
Definition FixedVector.cs:450
Here is the call graph for this function:

◆ ComputeLong()

Hash64 SystemEx.Hash.Black3Hasher.ComputeLong ( FixedVector< byte > input,
ulong seed )

Computes a 64‑bit hash over the given byte vector using the specified seed and endian mode.

Implements SystemEx.Hash.IHash.

35 {
36 Black3 hash = new Black3(m_key.ToNative());
37
38 hash.Chunk.Update(input.ToNative());
39
40 var output = hash.Chunk.Finalize();
41
42 byte[] cv = new byte[Black3Infos.BLAKE3_OUT_LEN];
43 output.chaining_value(cv);
44
45
46 // Hash32 erzeugen (dein eigener Typ)
47 return new Hash64((ulong)cv.ToUInt());
48 }
Here is the call graph for this function:

The documentation for this class was generated from the following file:
  • Black3Hasher.cs