Fix ENCRYPT_MODE and DECRYPT_MODE in AESCipher.
Use nioBuffer() in AESCipher to avoid unnecessary copying.