Argon2Type Enumeration

Argon2 can hash in two different ways, data-dependent and data-independent.

Definition

Namespace: Gemstone.Security.Cryptography.Argon2Hash
Assembly: Gemstone.Security (in Gemstone.Security.dll) Version: 1.0.171 -- Release Build+9bbaecd83e44e0973a7b18ef958272cfb4d67729
public enum Argon2Type

Remarks

From the Argon2 paper:

Argon2 has two variants: Argon2d [data-dependent] and Argon2i [data-independent]. Argon2d is faster and uses data-depending memory access, which makes it suitable for crypto-currencies and applications with no threats from side-channel timing attacks. Argon2i uses data-independent memory access, which is preferred for password hashing and password-based key derivation. Argon2i is slower as it makes more passes over the memory to protect from tradeoff attacks.

Members

DataDependentAddressing0 Use data-dependent addressing. This is faster but susceptible to side-channel attacks.
DataIndependentAddressing1 Use data-independent addressing. This is slower and recommended for password hashing and password-based key derivation.
HybridAddressing2 Use a hybrid of data-dependent and data-independent addressing.

See Also