-
Notifications
You must be signed in to change notification settings - Fork 22.5k
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
FF129 SubtleCrypto - support for Ed25519 #34989
Conversation
This pull request has merge conflicts that must be resolved before it can be merged. |
8fdf19e
to
4b7db98
Compare
4b7db98
to
85ffee7
Compare
- update table of supported algos - Tidy up the algorithms to be a bit more monolithic and cross link
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
e265340
to
1ab1438
Compare
This pull request has merge conflicts that must be resolved before it can be merged. |
1 similar comment
This pull request has merge conflicts that must be resolved before it can be merged. |
Co-authored-by: wbamberg <[email protected]>
11d4059
to
9a03b1d
Compare
@wbamberg Thanks for your additional review. All accepted and or/integrated. I left the ones you might want to discuss unresolved. But I very much hope this is good. On the plus side, the X25519 is in FF130 which I have assigned myself. But the changes for that should just be a small example now plus anything that we leave hanging out of this. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the update! I just had a bit more picking over of "supported algorithms" for sign()
.
Co-authored-by: wbamberg <[email protected]>
Reading the spec and finding out new things. Where will it lead. All changes accepted. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 thank you for your continued patience, Hamish!
@wbamberg I was going to say the same thing. Your feedback makes me feel "a bit too" sloppy. |
|
||
### HMAC | ||
|
||
The HMAC algorithm calculates and verifies hash-based message authentication codes according to the | ||
[FIPS 198-1 standard](https://csrc.nist.gov/files/pubs/fips/198-1/final/docs/fips-198-1_final.pdf). | ||
The HMAC algorithm calculates and verifies hash-based message authentication codes according to the [FIPS 198-1 standard](https://csrc.nist.gov/csrc/media/publications/fips/198/1/final/documents/fips-198-1_final.pdf). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@hamishwillee This PDF link gets redirected so I replaced it in #35222, but it got reverted in this PR. Was it for any particular reason?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No. I've been working in this issue for weeks and didn't see a conflict or I would have taken your change.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah I see. I assumed so too.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Josh-Cena Cool. Did you re-revert it, or is that a job on me?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I already fixed this in another redirected link fix PR ^^
FF129 adds support for the Ed25519 signing algorithm in https://bugzilla.mozilla.org/show_bug.cgi?id=1804788. There is a bit a background on these here: https://github.com/tQsW/webcrypto-curve25519/blob/master/explainer.md#support-curve25519-in-the-web-cryptography-api
This adds docs where appropriate - i.e. where the two algorithms are used. There is a generate keys/sign/verify live example for Ed25519 created in
SubtleCrypto.sign()
that I also link fromverify()
.There is also support for the key agreement algorithm X25519 in chrome behind a flag, and likely to come in FF nightly next month. I did not do examples for X25519 yet, but plan for that when it appears in FF nightly.
I did however mention the algorithm in the syntax where it can be used.
I also tidied the top level Web API overview. More work could be done here and in
SubtleCrypto
to make more consistent, but not in this update.Fixes #30886
Related docs work can be tracked in #34708