Skip to content
This repository has been archived by the owner on Dec 3, 2021. It is now read-only.

Commit

Permalink
correct formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
blankdots committed Feb 10, 2021
1 parent ab48362 commit f6be61b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lega_init/key_generation.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def _EVP_ByteToKey(self, pwd, md, salt, key_len, iv_len):
while len(buf) < (iv_len + key_len):
d = md(d + pwd + salt).digest()
buf += d
return buf[:key_len], buf[key_len : key_len + iv_len]
return buf[:key_len], buf[key_len: key_len + iv_len]

def aes_encrypt(self, pwd, ptext, md):
"""Encrypt AES."""
Expand Down

0 comments on commit f6be61b

Please sign in to comment.