From 5bc39be84122a8e3b78094f1dd5b9d1db42e3f2c Mon Sep 17 00:00:00 2001 From: quadrismegistus Date: Sat, 12 Sep 2020 16:34:08 +0100 Subject: [PATCH] updates --- komrade/backend/keymaker.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/komrade/backend/keymaker.py b/komrade/backend/keymaker.py index 4fd54e5..a84fe28 100644 --- a/komrade/backend/keymaker.py +++ b/komrade/backend/keymaker.py @@ -39,11 +39,14 @@ class KomradeSymmetricKey(KomradeKey): def encrypt(self,msg,**kwargs): if issubclass(type(msg), KomradeKey) or issubclass(type(msg),KomradeEncryptedKey): msg=msg.data + print('??? dec',msg,kwargs) + return self.cell.encrypt(msg,**kwargs) def decrypt(self,msg,**kwargs): - print('??? dec',msg,kwargs) if issubclass(type(msg), KomradeKey) or issubclass(type(msg),KomradeEncryptedKey): msg=msg.data + print('??? dec',msg,kwargs) + try: return self.cell.decrypt(msg,**kwargs) except TypeError: