Skip to content

Commit

Permalink
Fix spx_keys.verify_signature doctest
Browse files Browse the repository at this point in the history
Adopt changes from a67a6b3 in
doctest.
  • Loading branch information
lukpueh committed Jul 5, 2019
1 parent b0735d5 commit beab2a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions securesystemslib/spx_keys.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,12 +177,12 @@ def verify_signature(public_key, scheme, signature, data):
>>> data = b'The quick brown fox jumps over the lazy dog'
>>> scheme = 'spx'
>>> signature, scheme = \
create_signature(public, private, data, scheme)
create_signature(private, data, scheme)
>>> verify_signature(public, scheme, signature, data)
True
>>> bad_data = b'The sly brown fox jumps over the lazy dog'
>>> bad_signature, scheme = \
create_signature(public, private, bad_data, scheme)
create_signature(private, bad_data, scheme)
>>> verify_signature(public, scheme, bad_signature, data)
False
Expand Down

0 comments on commit beab2a1

Please sign in to comment.