add ECB support to create_block_cipher_context

* This is a basic refactor to support ECB and CBC mode in this method.
  We can use this as a starting point to discuss a better solution.
2 files changed