Check parameters for cipher stream context