RFC: Allow SHAKE to be used for XOFs#122
RFC: Allow SHAKE to be used for XOFs#122martinholters wants to merge 2 commits intoJuliaCrypto:masterfrom
Conversation
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## master #122 +/- ##
==========================================
- Coverage 99.79% 99.77% -0.03%
==========================================
Files 9 9
Lines 490 444 -46
==========================================
- Hits 489 443 -46
Misses 1 1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
a8f90f5 to
9fc488e
Compare
|
I will freely admit that this is over my head cryptographically, and am happy to defer to your judgement on what makes sense to live in this stdlib versus in another package. |
Let `update!` and `digest!` behave as `absorb` and `squeeze` in the updated SP 800-185.
9fc488e to
a4258c2
Compare
|
I'm not sure if SHA.jl is the place for this, but I'll note here for the record that I'm a big fan of cryptographic sponges (see: https://tecosaur.github.io/KangarooTwelve.jl/stable/internals/#KangarooTwelve.AbstractSponge) 🙂 |
Well, I wonder whether having SHAKE in here at all is a good idea, but that ship has sailed... Given that
I think it makes sense to include it. Unless someone disagrees, I'll add some docs to make this ready for merging. No hurry, though, as I'd like to see SP 800-185 actually updated. That said, I'm not especially happy with the SHAKE API here ( (BTW, @tecosaur, you might be interested in https://github.com/martinholters/Keccak.jl. It makes a slightly different sponge abstraction than https://github.com/tecosaur/KangarooTwelve.jl which seems to work well for SHA-3 and SHAKE. I hope I'll also come around to implementing K12 on top of it and see how it goes.) |
|
My perspective is that this library is just about providing the Separately to that, I'm a big fan of SHAKE and the Keccak sponge. I feel like while in terms of performance the lukewarm reception to SHA3 is deserved, the sponge construction is really neat and underappreciated. I think it more than deserves being exposed by a library somewhere.
👀
That sounds interesting indeed. I'll look forward to poking around and blatantly stealing and good ideas I come across 😛 |
Let
update!anddigest!behave asabsorbandsqueezein the updated SP 800-185.The update of SP 800-185 is still pending, but the idea is sketched here: https://groups.google.com/a/list.nist.gov/g/pqc-forum/c/lR48aR8KDsw/m/BjFWcYhxAQAJ
Translated to julia / SHA.jl, the idea is that
which requires the helper
not (yet?) part of this PR.
If this is deemed ok, I'll add some documentation.
Ok, ping @staticfloat.