We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d74420f commit a885a8dCopy full SHA for a885a8d
1 file changed
wolfcrypt/ciphers.py
@@ -628,6 +628,11 @@ class Des3(_Cipher):
628
key_size = 24
629
_native_type = "Des3 *"
630
631
+ def __init__(self, key, mode, IV=None):
632
+ if mode != MODE_CBC:
633
+ raise ValueError("Des3 only supports MODE_CBC")
634
+ super().__init__(key, mode, IV)
635
+
636
def _set_key(self, direction):
637
if direction == _ENCRYPTION:
638
return _lib.wc_Des3_SetKey(self._enc, self._key,
0 commit comments