x.crypto.chacha20poly1305: small clean up of internal mac generator and encryption routine for psiv#25569
Conversation
|
The PR patch is similar to mine, which I already showed and stalled without making a PR. I have tests with full broad coverage for 99.9% of all All passed. |
Yes, actually it based on yours..i'm waiting for your patch to be sent. But, i think it not ready yet.. @spytheman suggested to sent a patch in smaller pr so it can be easily reviewed. So, gradually it Will be updated. Don't worry to share your thought.. |
|
@tankf33der : i hope you can sent it too ...thank for working together .. |
|
Good work @blackshirt. I do think that multiple smaller/more focused PRs are a lot better compared to 1 bigger one - they are easier to create (smaller uninterrupted time blocks are needed to create them), review, test, merge without conflicts (in case multiple people work on the same area in parallel), and revert if there are regressions. |
This small PR basically improves twos internal routines used in psiv aead operation, in the mean of
psiv_gen_tagandpsiv_encrypt_internalcleansup. Its contains changes:arrays.chunkmachinery in thepsiv_encrypt_internal. I think It has an overhead by creating a clone on arrays being chunked. It changed to use bytes directly. It also removes not really necessary splitting tag routine, and work with bytes slicing directly.psiv_gen_tagroutine by reusing previously allocated buffer to work on serialization, so it reduces some allocation internally.Thanks,
Cheers