Replies: 1 comment 1 reply
-
Use the documented, high-level functions: |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
It may cause issues if/when this lib has to have the hash function version upgraded. If a certain version of Argon2 was used to hash secrets, the same version would have to be used when the same result is expected. This way, upgrading Argon2 version in this lib would cause breakage of the software depending on it. The proposed way to deal with it is
version
field toargon2_context
, and initialize it withARGON2_VERSION_NUMBER
by default.argon2_ctx
or maybe a new wrapper around it as a recommended method of doing hashing.ARGON2_VERSION_NUMBER
. Put it intoARGON2_LEGACY_API_VERSION_NUMBER
, whileARGON2_VERSION_NUMBER
is free to be incremented.version
field.Users using the legacy API are free to do it. Users using the new API are expected to set
version
field of the context object to the version they expect/store it somewhere for future use.Beta Was this translation helpful? Give feedback.
All reactions