Fix 'variable may be used uninitialized' warning for CTR mode