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

Support custom k value #12

Closed
mic159 opened this issue Jan 17, 2016 · 1 comment · Fixed by #48
Closed

Support custom k value #12

mic159 opened this issue Jan 17, 2016 · 1 comment · Fixed by #48

Comments

@mic159
Copy link

mic159 commented Jan 17, 2016

I'm trying to use this to log into a 3rd party device that has a broken SRP implementation.
They use a different k calculation...
Would it be possible to add a k_hex parameter to User to bypass the standard calculation?

@cocagne
Copy link
Owner

cocagne commented Jan 18, 2016

Yeah, that'd definitely be possible. I didn't originally design pysrp with
compatibility with other implementations in mind but there have been
several requests and enhancements over time in that direction. This is the
first request for k_hex I've seen though. It's should be pretty easy to
implement, just a little time consuming (guess 4 hours of dev/test). It'll
be a while before I can get around to this though so if you know C in
addition to Python you might want to take a crack at it yourself. Assuming
the code is clean, I'll merge the patch into the mainline.

Tom

On Sat, Jan 16, 2016 at 11:54 PM, Michael notifications@github.com wrote:

I'm trying to use this to log into a 3rd party device that has a broken
SRP implementation.
They use a different k calculation...
Would it be possible to add a k_hex parameter to User to bypass the
standard calculation?


Reply to this email directly or view it on GitHub
#12.

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 a pull request may close this issue.

2 participants