-
-
Notifications
You must be signed in to change notification settings - Fork 33k
crypto: add KMAC Web Cryptography algorithms #59647
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
Conversation
Review requested:
|
5e3754e
to
f227d31
Compare
This comment was marked as outdated.
This comment was marked as outdated.
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #59647 +/- ##
==========================================
- Coverage 89.95% 89.92% -0.03%
==========================================
Files 667 669 +2
Lines 196813 197473 +660
Branches 38425 38594 +169
==========================================
+ Hits 177038 177584 +546
- Misses 12200 12282 +82
- Partials 7575 7607 +32
🚀 New features to boost your workflow:
|
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
e73b1c1
to
97084d0
Compare
cc @nodejs/crypto @nodejs/security-wg please review |
private: | ||
DeleteFnPtr<EVP_MAC_CTX, EVP_MAC_CTX_free> ctx_; | ||
}; | ||
#endif // OPENSSL_VERSION_MAJOR >= 3 |
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.
Really feels like these pointer classes should become C++ templates at some point 🙂
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.
Yes, it's been a long standing todo to get back to clean that up but haven't been able to get to it. They 100% should become templates.
@addaleax thank you, I believe I've addressed what's addressable, see the fixup! commit |
Co-authored-by: Anna Henningsen <[email protected]>
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
Landed in 14c68e3 |
Adds KMAC1 to SubtleCrypto as per https://wicg.github.io/webcrypto-modern-algos/#kmac
Footnotes
https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-185.pdf ↩