S2C2: implement CBC mode.