Fix padding error in CBC encryption if offset != 0