made cipher spec configurable