def decrypt(self, priv, emsg, padding=True):
# This is non-optimal b/c of double-deserialization
# but this cipher is for development/tests, not production
# so be it
emsg_l = msgpack.loads(emsg)
if emsg_l[0] == 2:
_, epriv_to, emsg = emsg_l
priv_to = self.decrypt(priv, epriv_to)
priv = priv_to
return super(PRE, self).decrypt(
convert_priv(priv), emsg, padding=padding)
评论列表
文章目录