detect cbc mode