Further development of cbc decrypt