added ctr mode, fixed ofb test error.