Skip to content

Commit 497955a

Browse files
minor comments
Signed-off-by: Trishank Karthik Kuppusamy <[email protected]>
1 parent f5eb59b commit 497955a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tuf/api/keys.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -324,8 +324,6 @@ def __init__(
324324
# NOTE: The documentation is not clear, but presumably the returned
325325
# keys are different versions of keys under the same name. Therefore,
326326
# we shall select the one with the latest version number.
327-
# NOTE: We are also taking it for granted that Vault will generate
328-
# public keys in formats TUF will recognize out of the box.
329327
keys = data['keys']
330328
latest_version = data['latest_version']
331329
key = keys.get(str(latest_version))
@@ -420,6 +418,7 @@ def verify(self, signed: BytesOrStr, signature: Dict) -> bool:
420418
self.KeyTypes.RSA_3072.value,
421419
self.KeyTypes.RSA_4096.value
422420
} and self.__signature_algorithm == self.SignatureAlgorithms.PSS.value:
421+
# https://github.com/secure-systems-lab/securesystemslib/pull/262
423422
return self.__ram_key._verify_rsa_signature(
424423
signed,
425424
signature,

0 commit comments

Comments
 (0)