Vladimir Diaz
1da95b885b
Add missing exceptions to the docstring of verify_rsa_signature()
2016-01-25 11:30:24 -05:00
Vladimir Diaz
2c8dead51a
Do not store exception messages in a temp variable
2016-01-25 11:17:21 -05:00
Vladimir Diaz
1e0fe452d9
Raise ValueError, rather than TypeError, in create_rsa_signature()
2016-01-25 11:14:25 -05:00
Vladimir Diaz
4cf3b971b2
Fix comments related to exceptions for create_rsa_signature()
2016-01-22 15:33:23 -05:00
Vladimir Diaz
5a7acd571f
Merge pull request #309 from vladimir-v-diaz/develop
...
Update `tox.ini` and `setup.py`
2016-01-22 11:42:08 -05:00
Vladimir Diaz
2517bd1341
Update MANIFEST.in
...
Remove iso8601 entry
2016-01-22 11:09:55 -05:00
Vladimir Diaz
c83cc32578
Update setup.py
...
* Bump version number to 0.10.0 (pre-release)
* Update URL
* Remove classifier for Python 3.2
2016-01-22 10:59:21 -05:00
Vladimir Diaz
b2177aaaad
Update tox.ini
...
Test and build against Python 3.5
2016-01-22 10:35:59 -05:00
Vladimir Diaz
b69330743e
Do not store exception messages (before raising) in a variable
2016-01-21 17:31:26 -05:00
Vladimir Diaz
284e8008a4
Fix comment for generate_rsa_public_and_private test case
...
The incorrect comment was previously written for PyCrypto. Also remove a call to generate_rsa_public_and_private(2050) that is actually valid under pyca/cryptography
2016-01-21 16:57:42 -05:00
Vladimir Diaz
8ce6031ced
Add a note to extract_pem() to state the expected format of the returned pem
2016-01-21 16:39:26 -05:00
Vladimir Diaz
0c05e36030
Delete unneeded variable in keys.py
2016-01-21 16:21:29 -05:00
Vladimir Diaz
faf1a18a99
Remove extraneous blank line
2016-01-21 16:12:55 -05:00
Vladimir Diaz
f0e3f76adc
Explain that a subset of crypto libraries can be used for general-purpose crypto and RSA
2016-01-21 16:11:56 -05:00
Vladimir Diaz
75f1b93b37
Fix UnsupportedLibraryError messages in keys.py
...
The error messages raised when a crypto library specified in conf.py is unavailable were expanded. Modified the message to not use backslashes (explicit line continuation)
2016-01-21 16:09:33 -05:00
Vladimir Diaz
13c97442c7
Merge branch 'develop' of https://github.com/theupdateframework/tuf into 1.0-review
2016-01-21 13:27:42 -05:00
Vladimir Diaz
ddec8ab44a
Update aggregate_tests.py
...
Decrease the verbosity of the test runner so that only test failures are shown.
2016-01-21 13:25:58 -05:00
Vladimir Diaz
5d19975029
Update tox.ini
...
Drop support for Python 3.2. No longer supported by coverage and others.
2016-01-21 13:04:29 -05:00
Vladimir Diaz
6a9c209381
pyca_crypto_keys.py is not used to generate Ed25519 keys (ed25519_keys.py is)
2016-01-21 12:39:46 -05:00
Vladimir Diaz
f6d7302293
Tweak the comment blocks for the crypto import statements in keys.py
2016-01-21 12:36:15 -05:00
Vladimir Diaz
294def9ade
Update tox.ini
2016-01-21 11:23:32 -05:00
Vladimir Diaz
c45ce4f060
Merge branch 'develop' of https://github.com/theupdateframework/tuf into test_https_connection
2016-01-21 11:12:22 -05:00
Vladimir Diaz
91af494f12
Merge pull request #308 from vladimir-v-diaz/develop
...
Import `tuf.log` in `test_init.py` and fix logger name. Issue #303 .
2016-01-20 15:58:07 -05:00
Vladimir Diaz
25ba4001c2
Merge branch 'develop' of https://github.com/theupdateframework/tuf into develop
2016-01-20 10:52:26 -05:00
Vladimir Diaz
84fed901e3
Merge pull request #307 from davedoesdev/davedoesdev-log-fix
...
Don't import tuf.log in __init__.py so importing tuf.conf doesn't start logging
2016-01-20 10:33:22 -05:00
Vladimir Diaz
cb687b4c2f
Import tuf.log in test_init and fix logger name. Issue #303 .
...
In PR #307 , tuf.log is no longer imported by __init__.py. Add an import statement for tuf.log to fix missing handler warning in 'test_init.py. The logger name specified is also incorrect.
2016-01-20 10:29:58 -05:00
David Halls
1c51b8d732
Don't import tuf.log in __init__.py so importing tuf.conf doesn't start logging
2016-01-19 07:12:07 +00:00
Vladimir Diaz
0c26e030e8
Merge pull request #304 from vladimir-v-diaz/configurable-log-filename
...
Allow users to specify (via conf.py) the path to save log files. Issue #303
2016-01-15 15:52:53 -05:00
Vladimir Diaz
86b7af94f2
Remove 'import os' statement (the os module is not needed)
2016-01-15 11:04:21 -05:00
Vladimir Diaz
61c4012539
Merge branch 'develop' of https://github.com/theupdateframework/tuf into configurable-log-filename
2016-01-15 10:59:25 -05:00
Vladimir Diaz
4d8c1de911
Merge pull request #305 from davedoesdev/davedoesdev-more-python3-fixes
...
Fix Python 3 encoding issues in pcyca_crypto_keys.py
2016-01-15 10:58:06 -05:00
David Halls
015deb4570
Fix Python 3 encoding issues in pcyca_crypto_keys.py
2016-01-15 09:18:25 +00:00
Vladimir Diaz
d992c5dd3e
Set the logger (prior to adding a potential file handler) to avoid multiple if-else statements
2016-01-14 17:58:46 -05:00
Vladimir Diaz
47cae502fa
Allow users to specify the path (via conf.py) to save log files
2016-01-14 17:25:08 -05:00
Vladimir Diaz
6e1023ea29
Merge pull request #301 from davedoesdev/fix-python3
...
Fix Python 3 errors
2016-01-14 11:07:41 -05:00
David Halls
c859eeb258
Address code review comments
2016-01-13 23:02:17 +00:00
David Halls
4172479d39
Fix Python 3 errors
...
- Signing data should be byte strings
- Don't log exception outside handler (#300 )
2016-01-04 22:00:13 +00:00
Vladimir Diaz
6f7a7dfa80
Merge branch 'develop' of https://github.com/theupdateframework/tuf into test_https_connection
2015-11-18 15:27:49 -05:00
Vladimir Diaz
1f4f7d4b63
Add a README to the "examples" directory.
...
Also warn users that the examples might not be fully up-to-date, and
to please consult the examples used by the unit tests.
2015-11-17 15:28:18 -05:00
Vladimir Diaz
b60b741261
Update tuf-spec.txt
...
* @jawi recommended that the specification say that it is up to implementers to decide how keys should be securely stored.
* Python implementation -> reference implementation: for clarity and to be consistent with other documents.
2015-11-17 15:19:24 -05:00
Vladimir Diaz
cb1591e63d
Update tuf-spec.txt
...
Fix for issue #296 . We should document which underlying hash function is used with PKCS #1 RSA PSS signatures to maintain compatibility with different clients, or integrators that wish to verify/test our metadata.
2015-11-11 12:55:30 -05:00
Vladimir Diaz
b5f7a1aa8d
Review test_updater.py
2015-10-28 14:26:49 -04:00
Vladimir Diaz
cba763239f
Review updater.py
2015-10-28 13:58:14 -04:00
Vladimir Diaz
fab23480b3
Review 'test_repository_lib.py'
2015-10-28 11:45:01 -04:00
Vladimir Diaz
a41532e5c9
Review repository_lib.py
2015-10-28 11:36:18 -04:00
Vladimir Diaz
1f16868775
Review repository_tool.py
2015-10-27 17:49:25 -04:00
Vladimir Diaz
7bf14b3bc4
Review 'test_replay_attack'
2015-10-27 17:24:57 -04:00
Vladimir Diaz
2541276320
Review 'test_mix_and_match_attack.py
2015-10-27 17:22:14 -04:00
Vladimir Diaz
25d98780fb
Review 'test_extraneous_dependencies_attack.py'
2015-10-27 17:15:46 -04:00
Vladimir Diaz
7f91f56802
Review conf.py
2015-10-27 17:04:29 -04:00