refactor aes crypto codec to support aes-cbc crypto codec