Skip to content

feat(srp): add HomeKit-compatible padding options for u and M1/M2#272

Merged
tarcieri merged 1 commit intoRustCrypto:masterfrom
r4v3n6101:homekit_srp
Mar 25, 2026
Merged

feat(srp): add HomeKit-compatible padding options for u and M1/M2#272
tarcieri merged 1 commit intoRustCrypto:masterfrom
r4v3n6101:homekit_srp

Conversation

@r4v3n6101
Copy link
Copy Markdown
Contributor

@r4v3n6101 r4v3n6101 commented Feb 20, 2026

  1. Fix computation of u parameter. It uses PAD(A) and PAD(B) as specified in doc comment, though it wasn't implemented. (RFC)
  2. Option for calculating of unpadded H(g), useful for Apple's HomeKit protocol.

Linked issue: #204

@r4v3n6101
Copy link
Copy Markdown
Contributor Author

@tarcieri friendly ping on this PR
Would love your feedback when you get a chance. I can update anything required. This changes are lowkey needed for me to be in the upstream.

@tarcieri
Copy link
Copy Markdown
Member

Hi @r4v3n6101!

Sorry, this one went through the cracks but it would be definitely nice to get a HomeKit-compatible exchange added. I'll try to take a look later today.

@tarcieri tarcieri merged commit 5b33c78 into RustCrypto:master Mar 25, 2026
8 checks passed
@r4v3n6101
Copy link
Copy Markdown
Contributor Author

r4v3n6101 commented Mar 27, 2026

@tarcieri could you please bump a version? I would like to update my code to use new API, but from crates.io instead of git ref.

tarcieri added a commit that referenced this pull request Mar 30, 2026
This reverts commit 5b33c78 (#272)

This is causing sporadic test failures which weren't caught in CI.
This shows we need improved testing (e.g. `proptest`)
@tarcieri
Copy link
Copy Markdown
Member

I ended up reverting this in #283 due to sporadic test failures

tarcieri added a commit that referenced this pull request Mar 30, 2026
…283)

This reverts commit 5b33c78 (#272)

This is causing sporadic test failures which weren't caught in CI. This
shows we need improved testing (e.g. `proptest`)

cc @r4v3n6101
tarcieri added a commit that referenced this pull request Mar 30, 2026
There is apparently a bug in #272 which caused sporadic test failures
that this would've caught
tarcieri added a commit that referenced this pull request Mar 30, 2026
There is apparently a bug in #272 which caused sporadic test failures
that this would've caught
@tarcieri
Copy link
Copy Markdown
Member

@r4v3n6101 if you'd like to try re-applying this, #284 should now catch the bug, whatever it was

tarcieri added a commit that referenced this pull request Mar 30, 2026
This reverts commit 22d096a (#283)

This was originally added in #272 then reverted due to bugs which
weren't caught in CI at the time, but are now captured by proptests
tarcieri added a commit that referenced this pull request Apr 2, 2026
This reverts commit 22d096a (#283)

This was originally added in #272 then reverted due to bugs which
weren't caught in CI at the time, but are now captured by proptests

---------

Co-authored-by: r4v3n6101 <raven6107@gmail.com>
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.

2 participants