Skip to content
  • Peter Marschall's avatar
    ITS#9206 contrib/passwd/argon2: consolidate libsodium implementation · 8ff81631
    Peter Marschall authored and Quanah Gibson-Mount's avatar Quanah Gibson-Mount committed
    
    
    * use 'crypto_pwhash_str_alg(..., crypto_pwhash_ALG_ARGON2ID13)' to set
      the algorithm to Argon2.
      According to libsodium's documentation, the original 'crypto_pwhash_str()'
      only guarantees a "memory-hard, CPU-intensive hash function", but not
      necessarily Argon2.  Although in released versions of libsodium Argon2 is
      the only implemented backend, this may chane in the future.
    * multiply the 'memory' parameter by 1024 to align it with the libargon2
      implementation. The objective is to have consistent configuration in
      OpenLDAP's pw-argon2 module no matter what backend implementation is used.
    
    Signed-off-by: default avatarPeter Marschall <peter@adpm.de>
    8ff81631