@cipherparams.setter
def cipherparams(self, cipherparams):
    if isinstance(cipherparams, dict):
        self._cipherparams = CipherParams.from_dict(cipherparams)
    else:
        self._cipherparams = cipherparams
@cipherparams.setter
def cipherparams(self, cipherparams):
    if isinstance(cipherparams, dict):
        self._cipherparams = CipherParams.from_dict(cipherparams)
    else:
        self._cipherparams = cipherparams