From 8971458e06dc91d7fde9d42089558663ac92934d Mon Sep 17 00:00:00 2001 From: Elliot Cameron <3noch@users.noreply.github.com> Date: Wed, 17 May 2017 17:11:00 -0400 Subject: [PATCH] Fix docs for Argon variants --- Crypto/KDF/Argon2.hs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Crypto/KDF/Argon2.hs b/Crypto/KDF/Argon2.hs index c941f65..f9fa02a 100644 --- a/Crypto/KDF/Argon2.hs +++ b/Crypto/KDF/Argon2.hs @@ -36,13 +36,13 @@ import Foreign.Ptr -- | Which variant of Argon2 to use. You should choose the variant that is most -- applicable to your intention to hash inputs. data Variant = - Argon2d -- ^ Argon2i uses data-independent memory access, which is preferred + Argon2d -- ^ Argon2d is faster than Argon2i and uses data-depending memory access, + -- which makes it suitable for cryptocurrencies and applications with no + -- threats from side-channel timing attacks. + | Argon2i -- ^ 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. - | Argon2i -- ^ Argon2d is faster and uses data-depending memory access, which - -- makes it suitable for cryptocurrencies and applications with no - -- threats from side-channel timing attacks. | Argon2id -- ^ Argon2id is a hybrid of Argon2i and Argon2d, using a combination -- of data-depending and data-independent memory accesses, which gives -- some of Argon2i's resistance to side-channel cache timing attacks