Skip to content

Commit

Permalink
Cipher: Correct typos
Browse files Browse the repository at this point in the history
  • Loading branch information
benallard committed Jan 21, 2013
1 parent ffcbe3f commit 9457388
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pythoncardx/crypto/cipher.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ class Cipher(object):


@staticmethod
def getInstance(*args)
def getInstance(*args):
if len(args) == 2:
algorithm, externalAccess = args
elif len(args) == 3:
Expand All @@ -82,7 +82,7 @@ def getInstance(*args)
algorithm = dict([(Cipher.PAD_NOPAD, Cipher.ALG_RSA_NOPAD),
(Cipher.PAD_PKCS1, Cipher.ALG_RSA_PKCS1)]). \
get(paddingAlgorithm, None)
elif cipherAlgorithm == Cipher.CIPHER_DES_CBC:, Cipher.CIPHER_DES_ECB]:
elif cipherAlgorithm == Cipher.CIPHER_DES_CBC:
algorithm = dict([(Cipher.PAD_NOPAD, Cipher.ALG_DES_CBC_NOPAD),
(Cipher.PAD_PKCS5, Cipher.ALG_DES_CBC_PKCS5)]). \
get(paddingAlgorithm, None)
Expand Down

0 comments on commit 9457388

Please sign in to comment.