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

Support pure python Ed25519 #149

Conversation

vladimir-v-diaz
Copy link
Contributor

Fixes issue #:

Addresses theupdateframework/python-tuf#727.

Description of the changes being introduced by the pull request:

This pull request makes cryptography, colorama, and pynacl optional dependencies. A default installation of securesystemslib (and TUF) is expected to work in pure Python and verify Ed25519 signatures. Users who wish to fully support RSA, ECDSA, and the repo tools must install the optional dependencies.

pip install securesystemslib['crypto'] and
pip install securesystemslib['pynacl']).

Please verify and check that the pull request fulfills the following
requirements
:

  • The code follows the Code Style Guidelines
  • Tests have been added for the bug fix or new feature
  • Docs have been added for the bug fix or new feature

Signed-off-by: Vladimir Diaz <[email protected]>

These optional requirements should make it so that a default installation can verify ed25519 signatures in pure python

Signed-off-by: Vladimir Diaz <[email protected]>
Importing keys.py shouldn't raise ImportError for missing crypto libraries

Signed-off-by: Vladimir Diaz <[email protected]>
The unit tests expect all requirements to be installed, so add pragma statements to ignore import failures

Signed-off-by: Vladimir Diaz <[email protected]>
@trishankatdatadog
Copy link
Contributor

Hi @vladimir-v-diaz, this seems to work, thanks! Unfortunately, in-toto requires cryptography... @SantiagoTorres

@vladimir-v-diaz vladimir-v-diaz merged commit 4efaa1f into secure-systems-lab:master May 21, 2018
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.

2 participants