convert Cipher to cipherParams