jedisct1 / libsodium

A modern, portable, easy to use crypto library.

Home Page:https://libsodium.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Shouldn't crypto_pwdhash_PRIMITIVE be 'argon2id' ?

zedalaye opened this issue · comments

Hi,

As almost all constants in this file references those of crypto_pwhash_argon2id.h, shouldn't crypto_pwdhash_PRIMITIVE be, in fact "argon2id" ?

https://github.com/jedisct1/libsodium/blob/6ee5a7345296a0a104fc3630bcea56e2f9f0f513/src/libsodium/include/sodium/crypto_pwhash.h#L138C14-L138C14

Good catch!

We should list both, as they are both supported by the high-level APIs.

Thanks!