Skip to content
This repository has been archived by the owner on Apr 21, 2019. It is now read-only.

Commit

Permalink
Forgot to remove the no-longer necessary assertion in ECC.encrypt()
Browse files Browse the repository at this point in the history
  • Loading branch information
R. Tyler Ballance committed Jul 7, 2009
1 parent debcea0 commit 578c5b7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pyecc.py
Expand Up @@ -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"'
Expand Down

0 comments on commit 578c5b7

Please sign in to comment.