Fix AES in CBC mode
* Various other fixes