Added CBC encryption mode support