Skip to content

Botan 3 migration question (Argon2) #4033

Answered by randombit
Tectu asked this question in Q&A
Discussion options

You must be logged in to vote

Oh sorry about that, this should have been in the migration guide - argon2_generate_pwhash and argon2_check_pwhash are still exactly as they were, but the declarations moved to argon2fmt.h. Also (in case you are doing something with module selection, etc in your build), these functions are implemented in a new module argon2fmt (whereas before they were bundled with everything else in argon2)

Given this I don't think your other questions are relevant to your problem but for future readers/etc:

  1. You would do it exactly as argon2_check_pwhash does, by looking at the prefix of the hash.

  2. There is also PasswordHashFamily::from_params which takes three parameters, which for Argon2 are interpr…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@randombit
Comment options

@Tectu
Comment options

Answer selected by randombit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants