Struct Argon2Settings
Contains configuration values to be used for deriving passwords using the Argon2 algorithm.
Implements
Inherited Members
Namespace: TheXDS.MCART.Security
Assembly: MCART.Security.Argon2.dll
Syntax
public readonly record struct Argon2Settings : IEquatable<Argon2Settings>
Constructors
| Edit this page View SourceArgon2Settings(byte[], int, int, short, Argon2Type, int)
Contains configuration values to be used for deriving passwords using the Argon2 algorithm.
Declaration
public Argon2Settings(byte[] Salt, int Iterations, int KbMemSize, short Parallelism, Argon2Type Type, int KeyLength)
Parameters
Type | Name | Description |
---|---|---|
byte[] | Salt | Block of salt to be used for deriving the key. |
int | Iterations | Argon2 iterations to be executed when deriving the key. |
int | KbMemSize | Amount of memory (in KB) to be used for deriving the key. |
short | Parallelism | Number of threads to be used when deriving a key. |
Argon2Type | Type | Variant of the Argon2 algorithm to be used. |
int | KeyLength | Number of bytes to derive. |
Properties
| Edit this page View SourceIterations
Argon2 iterations to be executed when deriving the key.
Declaration
public int Iterations { get; init; }
Property Value
Type | Description |
---|---|
int |
KbMemSize
Amount of memory (in KB) to be used for deriving the key.
Declaration
public int KbMemSize { get; init; }
Property Value
Type | Description |
---|---|
int |
KeyLength
Number of bytes to derive.
Declaration
public int KeyLength { get; init; }
Property Value
Type | Description |
---|---|
int |
Parallelism
Number of threads to be used when deriving a key.
Declaration
public short Parallelism { get; init; }
Property Value
Type | Description |
---|---|
short |
Salt
Block of salt to be used for deriving the key.
Declaration
public byte[] Salt { get; init; }
Property Value
Type | Description |
---|---|
byte[] |
Type
Variant of the Argon2 algorithm to be used.
Declaration
public Argon2Type Type { get; init; }
Property Value
Type | Description |
---|---|
Argon2Type |