Argon2.GetBytes Method
Namespace: Rebex.Security.Cryptography
Assembly: Rebex.Security.dll (version 7.0.9448)
GetBytes(Int32)
Derives bytes (a hash) using Argon2 algorithm.
Declaration
public override byte[] GetBytes(int cb)
Parameters
| Type | Name | Description |
|---|---|---|
| Int32 | cb | Number of bytes to be derived. The number of bytes must be at least 4. Parameter 'T' from Argon2 specification. |
Returns
| Type | Description |
|---|---|
| Byte[] | A byte array with derived bytes (a hash). |
Overrides
Exceptions
| Type | Condition |
|---|---|
| ArgumentOutOfRangeException | The |