Show / Hide Table of Contents

Struct Argon2Settings

Contains configuration values to be used for deriving passwords using the Argon2 algorithm.

Implements
IEquatable<Argon2Settings>
Inherited Members
ValueType.Equals(object)
ValueType.GetHashCode()
ValueType.ToString()
object.Equals(object, object)
object.GetType()
object.ReferenceEquals(object, object)
Namespace: TheXDS.MCART.Security
Assembly: MCART.Security.Argon2.dll
Syntax
public readonly record struct Argon2Settings : IEquatable<Argon2Settings>

Constructors

| Edit this page View Source

Argon2Settings(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 Source

Iterations

Argon2 iterations to be executed when deriving the key.

Declaration
public int Iterations { get; init; }
Property Value
Type Description
int
| Edit this page View Source

KbMemSize

Amount of memory (in KB) to be used for deriving the key.

Declaration
public int KbMemSize { get; init; }
Property Value
Type Description
int
| Edit this page View Source

KeyLength

Number of bytes to derive.

Declaration
public int KeyLength { get; init; }
Property Value
Type Description
int
| Edit this page View Source

Parallelism

Number of threads to be used when deriving a key.

Declaration
public short Parallelism { get; init; }
Property Value
Type Description
short
| Edit this page View Source

Salt

Block of salt to be used for deriving the key.

Declaration
public byte[] Salt { get; init; }
Property Value
Type Description
byte[]
| Edit this page View Source

Type

Variant of the Argon2 algorithm to be used.

Declaration
public Argon2Type Type { get; init; }
Property Value
Type Description
Argon2Type

Implements

IEquatable<T>

Extension Methods

Objects.ShallowCopyTo(object, object, Type)
ObjectExtensions.FieldsOf<T>(object)
ObjectExtensions.GetAttribute<T>(object)
ObjectExtensions.GetAttributes<T>(object)
ObjectExtensions.HasAttrValue<TAttribute, TValue>(object, out TValue)
ObjectExtensions.HasAttribute<T>(object)
ObjectExtensions.HasAttribute<T>(object, out T?)
ObjectExtensions.HasAttributes<T>(object, out IEnumerable<T>?)
ObjectExtensions.Is(object?, object?)
ObjectExtensions.IsEither(object, IEnumerable)
ObjectExtensions.IsEither(object, params object[])
ObjectExtensions.IsNeither(object, IEnumerable)
ObjectExtensions.IsNeither(object, params object[])
ObjectExtensions.IsNot(object?, object?)
ObjectExtensions.PropertiesOf<T>(object)
ObjectExtensions.WhichAre(object, IEnumerable<object>)
ObjectExtensions.WhichAre(object, params object[])
Objects.Itself<T>(T)
Objects.ShallowClone<T>(T)
Objects.ShallowCopyTo<T>(T, T)
CollectionExtensions.PushInto<TItem, TCollection>(TItem, ICollection<TCollection>)
DictionaryExtensions.PushInto<TKey, TValue>(TValue, TKey, IDictionary<TKey, TValue>)
  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX