-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
provide ciphers with {de,en}crypt_into functionality (#231)
* Mirage_crypto.Block.ECB with {de,en}crypt_into Also provide unsafe_{en,de}crypt_into for further performance. * Mirage_crypto.Block.CBC now has {de,en}crypt_into functionality This may avoid buffer allocations. There are as well unsafe functions for those feeling bounds checks are unnecessary. * counters: add an offset parameter * Mirage_crypto.Block.CTR with {de,en}crypt_into * GCM and ChaCha have {de,en}crypt_into now * CCM16 with {de,en}crypt_into * minor adjustments to speed * Apply suggestions from code review Co-authored-by: Reynir Björnsson <[email protected]> * revise bounds checks (cc @reynir @palainp), also check off >= 0 * revise block_size check * update documentation, esp off < 0 * poly1305: mac_into appropriate bounds checks, also unsafe_mac_into * ccm: remove maclen argument, and ensure tag_size = block_size * add tailcall annotations, remove an argument from ccm's loop --------- Co-authored-by: Reynir Björnsson <[email protected]>
- Loading branch information
Showing
16 changed files
with
787 additions
and
253 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.