Skip to content

Use constant-time comparison in SCRAM client proof verification#111

Merged
prefiks merged 1 commit intoprocessone:masterfrom
jpds:scram-client-proof-constant-time
Apr 30, 2026
Merged

Use constant-time comparison in SCRAM client proof verification#111
prefiks merged 1 commit intoprocessone:masterfrom
jpds:scram-client-proof-constant-time

Conversation

@jpds
Copy link
Copy Markdown
Contributor

@jpds jpds commented Apr 10, 2026

Replaces == with crypto:hash_equals/2 in mech_step/2 to do a constant-time comparison.

@prefiks
Copy link
Copy Markdown
Member

prefiks commented Apr 30, 2026

@badlop This will essentially bump requirement for xmpp to R25, ejabberd requires R25 already so i think that should be ok, what do you think?

@badlop
Copy link
Copy Markdown
Member

badlop commented Apr 30, 2026

Raising to 25 looks ok: it's already a pretty old version, and looking at hex, there is no other known recent dependent on xmpp.

@prefiks prefiks merged commit 204ac33 into processone:master Apr 30, 2026
5 checks passed
@prefiks
Copy link
Copy Markdown
Member

prefiks commented Apr 30, 2026

Ok, let's merge it then.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants