Fix outBuf writer index in AESCipher.