From 578c5b7a040f22c83fca91f1703ba9e13d1aadb7 Mon Sep 17 00:00:00 2001 From: "R. Tyler Ballance" Date: Tue, 7 Jul 2009 11:20:10 -0700 Subject: [PATCH] Forgot to remove the no-longer necessary assertion in ECC.encrypt() --- pyecc.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pyecc.py b/pyecc.py index 3b11872..b786691 100644 --- a/pyecc.py +++ b/pyecc.py @@ -43,8 +43,7 @@ def generate(cls): def encrypt(self, plaintext): - assert plaintext, 'You cannot encrypt "nothing"' - return _pyecc.encrypt(plaintext, len(plaintext), self._kp, self._state) + return _pyecc.encrypt(plaintext, self._kp, self._state) def decrypt(self, ciphertext): assert ciphertext, 'You cannot decrypt "nothing"'