Skip to content

Commit 3fd74d1

Browse files
committed
Address Lukas comments for "Add the Signer interface..."
Signed-off-by: Martin Vrachev <[email protected]>
1 parent f753e78 commit 3fd74d1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

securesystemslib/signer.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,7 @@ def from_dict(cls, signature_dict):
4343
Creates a Signature object from its JSON/dict representation.
4444
4545
<Arguments>
46-
signature_dict: A dict containing that should contain valid keyid
47-
and signature.
46+
signature_dict: A dict that contains a valid keyid and signature.
4847
Note that the fields should be named "keyid" and "sig" respectively.
4948
"""
5049

@@ -83,7 +82,7 @@ def sign(payload):
8382
8483
<Returns>
8584
Returns a "Signature" class instance containing the signature and the
86-
the keyid which uniquely identifies the key used for signature generation.
85+
keyid which uniquely identifies the key used for signature generation.
8786
"""
8887
raise NotImplementedError # pragma: no cover
8988

@@ -95,7 +94,8 @@ class SSlibSigner(Signer):
9594
Securesystemslib default implementation of the "Signer" interface.
9695
With this implementation the following signature schemes are supported:
9796
98-
'RSASSA-PSS'
97+
'rsassa-pss-(md5|sha1|sha224|sha256|sha384|sha512)'
98+
'rsa-pkcs1v15-(md5|sha1|sha224|sha256|sha384|sha512)'
9999
RFC3447 - RSASSA-PSS
100100
http://www.ietf.org/rfc/rfc3447.
101101

0 commit comments

Comments
 (0)