Check returned cipher type