Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Calculation for B = kv + g^b should not be conditional on rfc5054_compat #12

Open
wyoung opened this issue Apr 29, 2019 · 0 comments
Open

Comments

@wyoung
Copy link

wyoung commented Apr 29, 2019

The difference between the if and else cases around line 600 in srp.c differ in whether they do modular arithmetic, but the 2002 Wu paper (SRP6) says "All values are computed modulo N" giving at most sizeof(N) bits. This behavior is not specific to RFC 5054.

With that flag unset, you get > sizeof(N) outputs for B from srp_verifier_new().

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

No branches or pull requests

1 participant