[Acc] [PATCH] cipher: code clean for update iv and check length