Skip to content
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

Replace pyelliptic with pyca/cryptography #81

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

Wolf480pl
Copy link

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

@coveralls
Copy link

Coverage Status

Coverage increased (+0.4%) to 88.739% when pulling 2aa4198 on Wolf480pl:replace-pyelliptic into e1ef07a on ethereum:develop.

2 similar comments
@coveralls
Copy link

Coverage Status

Coverage increased (+0.4%) to 88.739% when pulling 2aa4198 on Wolf480pl:replace-pyelliptic into e1ef07a on ethereum:develop.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.4%) to 88.739% when pulling 2aa4198 on Wolf480pl:replace-pyelliptic into e1ef07a on ethereum:develop.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.5%) to 88.903% when pulling 1857e20 on Wolf480pl:replace-pyelliptic into e1ef07a on ethereum:develop.

1 similar comment
@coveralls
Copy link

coveralls commented Sep 13, 2017

Coverage Status

Coverage increased (+0.5%) to 88.903% when pulling 1857e20 on Wolf480pl:replace-pyelliptic into e1ef07a on ethereum:develop.

@coveralls
Copy link

coveralls commented Sep 13, 2017

Coverage Status

Coverage increased (+0.3%) to 88.693% when pulling 6031bad on Wolf480pl:replace-pyelliptic into e1ef07a on ethereum:develop.

@coveralls
Copy link

coveralls commented Sep 13, 2017

Coverage Status

Coverage increased (+0.8%) to 89.197% when pulling 7edca70 on Wolf480pl:replace-pyelliptic into e1ef07a on ethereum:develop.

2 similar comments
@coveralls
Copy link

Coverage Status

Coverage increased (+0.8%) to 89.197% when pulling 7edca70 on Wolf480pl:replace-pyelliptic into e1ef07a on ethereum:develop.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.8%) to 89.197% when pulling 7edca70 on Wolf480pl:replace-pyelliptic into e1ef07a on ethereum:develop.

@coveralls
Copy link

coveralls commented Sep 13, 2017

Coverage Status

Coverage increased (+0.8%) to 89.193% when pulling 1c8a8b8 on Wolf480pl:replace-pyelliptic into e1ef07a on ethereum:develop.

@coveralls
Copy link

coveralls commented Sep 13, 2017

Coverage Status

Coverage increased (+0.9%) to 89.235% when pulling 9def693 on Wolf480pl:replace-pyelliptic into e1ef07a on ethereum:develop.

@coveralls
Copy link

coveralls commented Sep 13, 2017

Coverage Status

Coverage increased (+0.4%) to 88.73% when pulling c073b32 on Wolf480pl:replace-pyelliptic into e1ef07a on ethereum:develop.

cipher = Cipher(algorithms.AES(self.aes_secret), modes.CTR(iv), default_backend())
self.aes_enc = cipher.encryptor()
self.aes_dec = cipher.decryptor()

self.mac_enc = AES.new(self.mac_secret, AES.MODE_ECB).encrypt
Copy link

@gsalgado gsalgado Sep 18, 2017

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?

Copy link
Author

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.

Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Change the pyelliptic dependency
3 participants