-
Notifications
You must be signed in to change notification settings - Fork 334
Replace pyelliptic with pyca/cryptography #81
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Conversation
2 similar comments
2aa4198 to
1857e20
Compare
1 similar comment
6031bad to
7edca70
Compare
2 similar comments
7edca70 to
1c8a8b8
Compare
9def693 to
c073b32
Compare
| self.aes_enc = cipher.encryptor() | ||
| self.aes_dec = cipher.decryptor() | ||
|
|
||
| self.mac_enc = AES.new(self.mac_secret, AES.MODE_ECB).encrypt |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Woudln't it be possible to use Cipher(algorithms.AES(self.mac_secret), modes.ECB(), default_backend()).encryptor().update here, to avoid depending on two different crypto libs?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was trying to keep my changes minimal.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, changing this line won't let us get rid of pycryptodome dependency - we also use it for keccak.
I hope I didn't screw up some details in the crypto, but I'm no expert.
Please, someone review it.
This should fix #58