add support for ecb, cbc, cfb, ofb mode