-
|
I'm currently migrating a code base from Botan 2 to Botan 3. Create hash (simplified): Check hash (simplified): Migrating to Botan 3, I'm supposed to use Right now I have two questions:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
|
Oh sorry about that, this should have been in the migration guide - Given this I don't think your other questions are relevant to your problem but for future readers/etc:
|
Beta Was this translation helpful? Give feedback.
Oh sorry about that, this should have been in the migration guide -
argon2_generate_pwhashandargon2_check_pwhashare still exactly as they were, but the declarations moved toargon2fmt.h. Also (in case you are doing something with module selection, etc in your build), these functions are implemented in a new moduleargon2fmt(whereas before they were bundled with everything else inargon2)Given this I don't think your other questions are relevant to your problem but for future readers/etc:
You would do it exactly as argon2_check_pwhash does, by looking at the prefix of the hash.
There is also
PasswordHashFamily::from_paramswhich takes three parameters, which for Argon2 are interpr…