Preliminar work of CBC mode