From c99bb0fe018100a9a352a0331bc3779d1f4c85f0 Mon Sep 17 00:00:00 2001 From: Vladimir Diaz Date: Thu, 28 Jan 2016 15:48:29 -0500 Subject: [PATCH] Reduce redundant info in a comment, but emphasize what is excluded in keyid --- tuf/keys.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tuf/keys.py b/tuf/keys.py index 44020ab7..d37209bb 100755 --- a/tuf/keys.py +++ b/tuf/keys.py @@ -245,9 +245,8 @@ def generate_rsa_key(bits=_DEFAULT_RSA_KEY_BITS): raise tuf.UnsupportedLibraryError('Invalid crypto' ' library: ' + repr(_RSA_CRYPTO_LIBRARY) + '.') - # Generate the keyid of the RSA key. 'key_value' corresponds to the - # 'keyval' entry of the 'RSAKEY_SCHEMA' dictionary. The private key - # information is not included in the generation of the 'keyid' identifier. + # Generate the keyid of the RSA key. Note: The private key material is + # not included in the generation of the 'keyid' identifier. key_value = {'public': public, 'private': ''} keyid = _get_keyid(keytype, key_value)