mirror of
https://github.com/theupdateframework/python-tuf
synced 2026-05-24 10:08:28 +00:00
Comment added to both 'keydb.py' and 'roledb.py'.
This commit is contained in:
parent
89b0b1f679
commit
b4993302a5
2 changed files with 4 additions and 3 deletions
|
|
@ -16,13 +16,13 @@
|
|||
the layout of the collection remain consistent and easily verifiable.
|
||||
Provided are functions to add and delete keys from the database, retrieve a
|
||||
single key, and assemble a collection from keys stored in TUF 'Root' Metadata
|
||||
files.
|
||||
files. The Update Framework process maintains a single keydb.
|
||||
|
||||
RSA keys are currently supported and a collection of keys is organized as a
|
||||
dictionary indexed by key ID. Key IDs are used as identifiers for keys (e.g.,
|
||||
RSA key). They are the hexadecimal representations of the hash of key objects
|
||||
(specifically, the key object containing only the public key). See 'rsa_key.py'
|
||||
and the '_get_keyid()' function to see precisely how keyids are generated.
|
||||
and the '_get_keyid()' function to learn precisely how keyids are generated.
|
||||
One may get the keyid of a key object by simply accessing the dictionary's
|
||||
'keyid' key (i.e., rsakey['keyid']).
|
||||
|
||||
|
|
|
|||
|
|
@ -18,7 +18,8 @@
|
|||
'add_role()'. There are many supplemental functions included here that yield
|
||||
useful information about the roles contained in the database, such as
|
||||
extracting all the parent rolenames for a specified rolename, deleting all the
|
||||
delegated roles, retrieving role paths, etc.
|
||||
delegated roles, retrieving role paths, etc. The Update Framework process
|
||||
maintains a single roledb.
|
||||
|
||||
The role database is a dictionary conformant to 'tuf.formats.ROLEDICT_SCHEMA'
|
||||
and has the form:
|
||||
|
|
|
|||
Loading…
Reference in a new issue