Commit graph

42 commits

Author SHA1 Message Date
Vladimir Diaz
903ff0a280
Add comment to affected modules...
explaining why locally generated keyids use the hashing algorithms specified in metadata's 'keyid_hash_algorithms' field.

Signed-off-by: Vladimir Diaz <vladimir.v.diaz@gmail.com>
2018-04-12 11:43:03 -04:00
Vladimir Diaz
cde0e2249e
Make sure the locally generated keyids match metadata's: keydb.py
Signed-off-by: Vladimir Diaz <vladimir.v.diaz@gmail.com>
2018-04-12 11:29:27 -04:00
Vladimir Diaz
8f65fa4154
Rename license files in modules
Signed-off-by: Vladimir Diaz <vladimir.v.diaz@gmail.com>
2018-02-05 11:31:19 -05:00
Vladimir Diaz
eb1837ef73
Add ecdsa-sha2-nistp256 to supported keytypes in keydb.py
Signed-off-by: Vladimir Diaz <vladimir.v.diaz@gmail.com>
2018-01-29 17:02:33 -05:00
Vladimir Diaz
3894bc4e31
Add copyright and license info to module files
Signed-off-by: Vladimir Diaz <vladimir.v.diaz@gmail.com>
2017-11-30 13:23:38 -05:00
Vladimir Diaz
949751e825
Do not use deprecated logger.warn() in keydb.py
Signed-off-by: Vladimir Diaz <vladimir.v.diaz@gmail.com>
2017-11-27 15:02:27 -05:00
Vladimir Diaz
ceb50dd691
Convert variable name instances of '_' to 'junk'
Signed-off-by: Vladimir Diaz <vladimir.v.diaz@gmail.com>
2017-11-20 14:10:17 -05:00
Vladimir Diaz
66a03afc9c
Resolve pylint's warning for keydb.py
* Use idiomatic '_' for unused variable.

Signed-off-by: Vladimir Diaz <vladimir.v.diaz@gmail.com>
2017-11-20 14:09:55 -05:00
Vladimir Diaz
5a04be607e Fix SSL statements in keydb.py 2017-01-09 16:54:19 -05:00
Vladimir Diaz
b316d61f97 Use securesystemslib [WIP]
Move keydb back to TUF (wip)
Update repository_lib.py (wip)
2017-01-09 12:56:48 -05:00
Artiom Baloian
299ff68edd Now crypto related files are in ssl_crypto and ssl_commons 2016-11-02 17:44:32 -04:00
Artiom Baloian
b793c81739 Added simple_settings, now it is a requirement of TuF.
Rename conf.py into the settings.py an changed import call.
2016-11-01 15:38:40 -04:00
Artiom Baloian
b07d9a5d0f Move some part of tufformats into the common formats 2016-10-31 19:04:14 -04:00
Artiom Baloian
8247a02737 Moved TuF exceptions and schem into the ssl_commons 2016-10-31 11:58:05 -04:00
Artiom Baloian
7098cdbc3a Move _vendor dir and split formats into the formats and tufformats 2016-10-28 18:37:28 -04:00
Vladimir Diaz
02d2bf1f6b Expand a comment for the change made in the previous commit 2016-07-27 16:39:42 -04:00
Vladimir Diaz
ae4bbfdbfc Remove tuf.Error exception raised in create_keydb_from_root_metadata()
To simplify the addition of keys to keydb, add all of the valid keyids to keydb in the for loop instead of adding the default keyid separately
2016-07-27 16:33:35 -04:00
Vladimir Diaz
fae1fb6965 Improve code coverage for __init__.py pyca_crypto_keys.py, repository_lib.py 2016-07-25 11:20:30 -04:00
Vladimir Diaz
596969ab2e Improve code coverage of keydb.py and util.py 2016-07-19 08:06:53 -04:00
Vladimir Diaz
1c72cb2c20 Add 'clear_all' argument to clear_keydb() in keydb.py 2016-07-15 13:47:46 -04:00
Vladimir Diaz
2a9e4c28ad Add latest repository example and unit test fixes 2016-06-27 17:02:27 -04:00
Vladimir Diaz
685e6a2d33 Proof of concept
Initial implementation: key IDs may be generated with multiple hash algorithms
2016-05-18 16:12:58 -04:00
Vladimir Diaz
9d57139aee Implement remaining test functions for keydb.py 2016-05-09 16:31:37 -04:00
Vladimir Diaz
aa62fc5862 Verify the 'repository_name' argument in test_clear_keydb() 2016-05-09 15:10:42 -04:00
Vladimir Diaz
34365bca51 Implement add and remove keydb functions to keydb.py 2016-05-09 14:18:46 -04:00
Vladimir Diaz
223993c43e Update test_keydb.py following refactoring of keydb.py
keydb.py was refactored to allow multiple sets of keys to be tracked
2016-05-06 17:33:18 -04:00
Vladimir Diaz
e3a1544070 Begin implementation changes to address issue with a global role and key database 2016-05-06 12:13:57 -04:00
Vladimir Diaz
1c8f41b0c0 Update import statements of unvendored dependencies 2015-06-02 08:29:22 -04:00
Vladimir Diaz
3eb8f10710 More coverage improvements 2015-03-02 15:10:27 -05:00
Vladimir Diaz
f649749e10 Add whitespace to logger strings in updater.py and keydb.py 2014-09-02 14:36:44 -04:00
vladdd
c5fd17ab3e Merge branch 'develop' of https://github.com/theupdateframework/tuf into develop
Conflicts:
	tests/test_hash.py
	tests/test_keydb.py
	tuf/formats.py
	tuf/keydb.py
	tuf/repository_tool.py
2014-05-10 20:26:06 -04:00
Vladimir Diaz
d831187949 Improve test coverage. 2014-05-01 12:59:34 -04:00
Vladimir Diaz
ab95a4b3aa [WIP] Python 2+3 support.
Python 2+3 unicode.
libraries.
The following modules (and their tests) work in PY2.7+3.3:
keydb, hash, formats, mirrors
2014-04-29 14:27:34 -04:00
Vladimir Diaz
a7f28b9af4 [WIP] Python 2+3 support.
Add six, convert PY <=2.5 exception handling, dictionary iteration, libraries, 1/2 the tests.
2014-04-22 15:03:42 -04:00
Vladimir Diaz
5e7713a93f [WIP] Refactor test_updater.py and repository_setup.py.
Add generate.py script and pre-generated repository files used by Unit tests (replacing repository_setup.py).
Refactor test_updater.py (10 test cases remaining).
2014-03-11 09:08:53 -04:00
Vladimir Diaz
68eedeb477 Initial commit for Issue #143 and #144 2013-12-09 11:11:23 -05:00
vladdd
01deddfd18 Initial implementation of the repository tools.
Delegations and repository loading now implemented.  Updates to comments, docstrings, and a unit test needed.
2013-11-12 15:00:26 -05: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
d0c5b719e3 Support adding any key type in keydb.py
Fix docstrings for whitespace consistency.
2013-10-08 13:52:33 -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
3537917015 Update the unit tests affected by the design change to log.py 2013-08-15 14:33:35 -04:00
vladdd
abf0349b05 Move all files up one directory from 'src/'. 2013-02-10 21:38:06 -05:00
Renamed from src/tuf/keydb.py (Browse further)