Skip to content

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.

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