nimcrypto icon indicating copy to clipboard operation
nimcrypto copied to clipboard

fix gcm chunked

Open Graveflo opened this issue 4 weeks ago • 2 comments

#92

Graveflo avatar Nov 29 '25 21:11 Graveflo

Adding chunk support for the ghash as well so the tag matches. This is still 0 copy for one-shot calls (except for the very last 16 byte increment if misaligned) and for well-behaved 16 byte aligned chunked input.

Graveflo avatar Nov 29 '25 23:11 Graveflo

also swapping the order of hashing and cipher run to support in-place encryption and decryption. The hash gets corrupted otherwise.

Graveflo avatar Nov 29 '25 23:11 Graveflo

Thank you very much for you work, but i found another way in #94

cheatfate avatar Dec 27 '25 12:12 cheatfate