From @parke: > I switched from ctr mode to cbc mode, and got this error: > > tomcrypt.LibError: Invalid argument provided. > > I guess CBC mode needs the input to be a multiple of the block size. A more descriptive error message would have been helpful.