Encrypt with small chunks to verify that internal state is handled correctly between calls. (cherry picked from commit 3b130109)