Skip to content

Conversation

@jimm98y
Copy link

@jimm98y jimm98y commented Jan 5, 2026

Describe your changes

Added methods for calculating M1 using the formula described in RFC 2945. I tried to avoid any breaking changes, which is why the PR just adds new methods while keeping the original implementation unchanged. Fixes #506.
Original PR #507, this one was created from a features branch to free up my main branch.

How has this been tested?

Apple's HomeKit implementation + unit test vectors in the PR.

Checklist before requesting a review

  • I have performed a self-review of my code
  • I have kept the patch limited to only change the parts related to the patch
  • This change requires a documentation update

See also Contributing Guidelines.

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.

SRP6 calculating M1, M2 incorrectly

1 participant