Rebex
Products Downloads Buy Support Contact
Show / Hide Table of Contents

Blake2b Constructor

Namespace: Rebex.Security.Cryptography
Assembly: Rebex.Security.dll (version 7.0.9147)

Blake2b(Int32, Byte[])

Initializes a new instance of the Blake2b class.

Declaration
public Blake2b(int hashSizeInBytes, byte[] key)
Parameters
Type Name Description
Int32 hashSizeInBytes

Output hash size in bytes. The hash size must be a value between 1 and 64 bytes. It is strongly recommended to use a hash size of 32 bytes or more.

Byte[] key

Key to use in HMAC calculation.

The key must be a 0 - 64 bytes long array or null. When a null value is provided, the key is treated as an empty array. When the key is null or an empty array, the instance will calculate hashes. When the key is 1 - 64 bytes long, the instance will calculate message authentication codes (HMAC). An instance of the Blake2b class creates, uses, and clears a copy of the key. An instance of the Blake2b class is not the owner of the key and the key will not be cleared when the Dispose(Boolean) method is called. The owner of the key should clear the key.

Blake2b(Int32)

Initializes a new instance of the Blake2b class.

Declaration
public Blake2b(int hashSizeInBytes)
Parameters
Type Name Description
Int32 hashSizeInBytes

Output hash size in bytes. The hash size must be a value between 1 and 64 bytes. It is strongly recommended to use a hash size of 32 bytes or more.

In This Article
  • Blake2b(Int32, Byte[])
  • Blake2b(Int32)
© REBEX ČR s.r.o. Back to top
Privacy policy
Manage cookies