This PR implements a simple fix to CTR and OFB mode encryption so that there is no exception when trying to encrypt files bigger than the encoder's buffer size. Tested only locally, would be happy to implement tests if given any guidelines.
Thanks for the fix. Indeed, it was correct for CBC that I'm using in Ada Keystore but not for CFB, OFB and CTR. The decoder does not have the issue which occurs only when the size is not a multiple of 16.
Fixes #50.
This PR implements a simple fix to CTR and OFB mode encryption so that there is no exception when trying to encrypt files bigger than the encoder's buffer size. Tested only locally, would be happy to implement tests if given any guidelines.