implement IV suppurt for cnt and cfb modes