CRFlex: A Flexible and Configurable Cryptographic Hardware Accelerator for AES Block Cipher Modes