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

Migrate OTP import script to python-cryptography #509

Closed
wants to merge 2 commits into from

Conversation

tiran
Copy link
Member

@tiran tiran commented Feb 25, 2017

Supersedes @npmccallum PR #486

* add missing default_backend
* unpad encrypted data
* use cryptography's hashes and HMAC construct
* remove hard dependency on python-nss from setup.py

Signed-off-by: Christian Heimes <cheimes@redhat.com>
@tiran
Copy link
Member Author

tiran commented Feb 27, 2017

The importer uses RSAES-PKCS1 v1.5 to decrypt a session key. PKCS1 v1.5 is potentially vulnerable to CCA Bleichenbacher. In my professional opinion, the OTP importer cannot be abused as an oracle. The script is used as a one-shot importer and not run as an interactive service.

@MartinBasti
Copy link
Contributor

MartinBasti commented Feb 27, 2017

@stlaz Why is this closed? I don't see any push/commit here

EDIT: sorry I got lost in redirects :)

@stlaz
Copy link
Contributor

stlaz commented Mar 1, 2017

This is tested by our tests and the code is fine => ACK.

@stlaz stlaz added the ack Pull Request approved, can be merged label Mar 1, 2017
@MartinBasti
Copy link
Contributor

master:

  • d00ae87 Migrate OTP import script to python-cryptography
  • 135d0b5 Finish port to PyCA cryptography

@MartinBasti MartinBasti added the pushed Pull Request has already been pushed label Mar 1, 2017
@MartinBasti MartinBasti closed this Mar 1, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ack Pull Request approved, can be merged pushed Pull Request has already been pushed
Projects
None yet
4 participants