Blake2BOutputLength Field

The output length of the Blake2 hash in bytes.

Definition

Namespace: Gemstone.Security.Cryptography.Blake2BHash
Assembly: Gemstone.Security (in Gemstone.Security.dll) Version: 1.0.178 -- Release Build+e530c5c0e31352f3de7b5819173c826f4dd2c6c7
public const int OutputLength = 64

Field Value

Int32

Remarks

This is the maximum length buffer a Blake2 hash can produce Blake2 will always hash to this length even when configured to hash to a shorter value - the final step is to truncate the result.

Note, the length of the expected result is hashed into the result so the OutputLength-byte buffer will hold different values depending on the configured output length. Do not run Blake2 using the default length and then truncate and expect to get the same result as if you configured Blake2 to produce a shorter result.

See Also