Commit graph

696 commits

Author SHA1 Message Date
vladdd
df8d84d3da [WIP] Add libtuftools.py skeleton 2013-10-22 14:02:01 -04:00
vladdd
5eb0858e45 Add import and export functions for passphrase-protected pem files in keys.py 2013-10-22 14:01:06 -04:00
vladdd
45af91191a Update docstrings and comments in keys.py
Configurable crypto changes previously implemented but the docstrings and comments of keys.py still needed updating.  Minor edit to test_keys.py and a note added about a missing test case.
2013-10-18 14:01:51 -04:00
vladdd
760cd62d4e Rename functions in keys.py and update test_keys.py
create_in_metadata_format --> format_keyval_to_metadata
create_from_metadata_format --> format_metadata_to_key
2013-10-17 14:05:26 -04:00
vladdd
60574503fc Update keys.py with modified pycrypto_keys.py function names 2013-10-17 13:12:55 -04:00
vladdd
05f7826b59 Update test_pycrypto_keys.py after pycrypto_keys.py changes 2013-10-17 13:01:32 -04:00
vladdd
8a7d0d4baf Update docstrings and comments in pycrypto_keys.py
Minor change to function names and argument validation.
2013-10-17 12:56:58 -04:00
vladdd
7ae7f2ddc2 Add new tuf.formats.py schema for pycrypto_keys.py
Remove extra whitespace in __init__.py
2013-10-17 12:54:08 -04:00
vladdd
42ea506dc1 Update time_ed25519.py following configurable crypto changes 2013-10-16 13:07:10 -04:00
vladdd
2244b6cabc Merge changes following Monzur's review of ed25519_key.py
Updates to docstrings and comments.
2013-10-16 12:46:57 -04:00
vladdd
7e593963a9 Complete test_verify_signature() in test_ed25519_keys.py 2013-10-14 08:41:38 -04:00
vladdd
7e948f342c Add initial test_ed25519_keys.py
test_verify_signature() incomplete.
2013-10-11 13:01:46 -04:00
vladdd
f76dfd4f4a Validate arguments and update doctests in ed2519_keys.py
Validate arguments using the newly added ed25519 schemas to formats.py.
2013-10-11 12:20:18 -04:00
vladdd
b831016abf Add ed25519 schemas to formats.py
New ed25519 schemas to validate public and seed keys, and signatures.
2013-10-11 12:06:20 -04:00
vladdd
8372100de8 Add a LengthString schema type to schema.py
Update docstring whitespace.
2013-10-11 12:03:21 -04:00
vladdd
81a15147b2 Add remaining test cases in test_pycrypto_keys.py 2013-10-11 10:15:09 -04:00
vladdd
2f61272c28 Update test cases moved over to test_pycrypto_keys.py
test cases updated with configurable crypto changes.
2013-10-11 09:07:25 -04:00
vladdd
8d33d7244d Update object schema names in formats.py
Modify the object name of a schema so that FormatError error messages are clearer about which schema is expected.
2013-10-11 08:38:26 -04:00
vladdd
ac6dade0dc Move test cases to test_pycrypto_keys.py 2013-10-10 14:56:56 -04:00
vladdd
a091b1f84b Add test_keys.py and update keys.py 2013-10-10 14:01:55 -04:00
vladdd
ae2e7489b1 Add new keytype schema in formats.py 2013-10-10 13:56:35 -04:00
vladdd
31d603c710 Update all unit tests affected by configurable crypto
Add separate 'tuf.conf.py' options for key types.
2013-10-10 12:19:46 -04:00
vladdd
3bbacd06a8 Fix docstring whitespace in formats.py 2013-10-09 13:56:47 -04:00
vladdd
37b665bf9a Modify behavior of configurable crypto and update conf.py
Add missing doctest and minor edits.
2013-10-09 13:37:26 -04:00
vladdd
cc87d4fdb8 Add missing doctests to keys.py and pycrypto_keys.py 2013-10-09 11:21:09 -04:00
vladdd
115d844a57 Fix import, doctests, and function parameters in keys.py 2013-10-09 09:19:08 -04:00
vladdd
46d07be5ad Continue configurable crypto changes: add keys.py doctest 2013-10-09 08:15:09 -04:00
vladdd
372908caa6 Modify signerlib.py to support multiple key types
Fix docstrings for whitespace consistency.
2013-10-08 14:19:24 -04:00
vladdd
28b3b52422 Modify updater.py to support multiple key types 2013-10-08 14:00:46 -04:00
vladdd
d0c5b719e3 Support adding any key type in keydb.py
Fix docstrings for whitespace consistency.
2013-10-08 13:52:33 -04:00
vladdd
a395607534 Add updated schema description of new schema in formats.py 2013-10-08 13:45:37 -04:00
vladdd
4c866bc384 Continue configurable crypto design changes
Add new schema to formats.py and simplify input validation in keys.py
2013-10-08 13:32:07 -04:00
vladdd
5622e0c622 Commence configurable crypto changes
Refactored the majority of affected modules.  Added optimized version of the reference implementation of ed25519.
2013-10-08 13:09:59 -04:00
vladdd
100e83136f Merge and resolve conflicts 2013-10-02 12:36:04 -04:00
vladdd
9bfba3ddda Reword comment and fix typo in ed25519_key.py 2013-10-02 11:38:42 -04:00
vladdd
8be86db7ad Fix encoding of the seed and signature variable name 2013-10-01 12:23:40 -04:00
vladdd
e03f66653c Update docstrings and comments following pynacl changes 2013-09-30 14:59:50 -04:00
vladdd
77218c8abd Modify print message in time_ed25519.py 2013-09-30 11:47:29 -04:00
vladdd
2a08c2c263 Add doctests for PyNaCl and fix verify_signature()
If 'use_pynacl=True' is specified and the signature is invalid, verify_signature() raised 'nacl.signing.CryptoError'.  verify_signature() should instead return 'False', to follow the same bahavior of this function when 'use_pynacl=False'.
2013-09-30 11:44:35 -04:00
vladdd
4dd6d33c34 Update time_ed25519.py following addition of PyNaCl support 2013-09-30 10:46:54 -04:00
vladdd
9e3bdcf604 Add support for PyNaCl
Update generate(), create_signature(), verify_signature() to support PyNaCl.  Caller may optionally generate and create+verify signatures more quickly with 'use_pynacl=True'.
2013-09-30 10:43:36 -04:00
vladdd
5bb053c3bf Perform minor code edits
Add missing letters from the alphabet to 'data' and update import statements.
2013-09-27 10:32:37 -04:00
vladdd
a32210ed02 Add ed25519_key.py timing script
Time generate(), create_signature(), and verify_signature().
2013-09-26 15:00:49 -04:00
vladdd
ecc481d455 Add doctest examples 2013-09-26 14:16:17 -04:00
vladdd
20cd0f55b8 Continue support for 'ed25519' signatures
Support added for generate(), create_in_metadata_format(), create_from_metadata_format(), create_signature(), and verify_signature().
2013-09-26 10:02:14 -04:00
vladdd
0fcbb1ec63 Add ED25519KEY_SCHEMA to tuf.formats 2013-09-24 15:13:21 -04:00
vladdd
c29a40cff1 [WIP] Support ed25519 signatures 2013-09-24 14:55:37 -04:00
vladdd
206e448bc3 Add the Python implementation of the ed25519 signature scheme
ed25519 is an elliptive-curve public key signature scheme.
http://ed25519.cr.yp.to/
2013-09-24 10:06:19 -04:00
vladdd
57e7b38d18 Merge branch 'pbkdf2-iterations-vary', remote-tracking branch 'origin' into integration-tests-python3 2013-09-24 09:45:06 -04:00
vladdd
4e6c46364d Fix modified (accidently) variable name in keystore.py 2013-09-24 09:36:55 -04:00