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

Argon2Configuration Constructor

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

Argon2Configuration(Argon2Type, Int32, Int32, Int32)

Initializes a new instance of Argon2Configuration class.

Declaration
public Argon2Configuration(Argon2Type argon2Type, int numberOfLanes, int numberOfIterations, int memoryCost)
Parameters
Type Name Description
Argon2Type argon2Type

The type of Argon2 algorithm. Parameter 'y' from Argon2 specification.

Int32 numberOfLanes

The number of independent computation lanes. Parameter 'p' from Argon2 specification. This valid range for this value is 1 to 16 777 215.

Int32 numberOfIterations

The number of Argon2 iterations. Parameter 't' from Argon2 specification. This value must be greater than 0.

Int32 memoryCost

The amount of memory, in kilobytes (KB), used by the Argon2 algorithm. Parameter 'm' from Argon2 specification. This value must be equal to or greater than 1 KB.

Exceptions
Type Condition
ArgumentOutOfRangeException

The argon2Type is not defined; or the numberOfLanes has an invalid value; or numberOfIterations has an invalid value; or the memoryCost has an invalid value.

In This Article
  • Argon2Configuration(Argon2Type, Int32, Int32, Int32)
© REBEX ČR s.r.o. Back to top
Privacy policy
Manage cookies