We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4bc55c6 commit 2535fb1Copy full SHA for 2535fb1
examples/sig.py
@@ -27,14 +27,10 @@
27
# Store key pair, wait... (session resumption):
28
# signer = oqs.Signature(sigalg, secret_key)
29
30
- context = bytes([0, 1, 2])
31
-
32
# Signer signs the message
33
- signature = signer.sign_with_ctx_str(message, context)
+ signature = signer.sign(message)
34
35
# Verifier verifies the signature
36
- is_valid = verifier.verify_with_ctx_str(
37
- message, signature, context, signer_public_key
38
- )
+ is_valid = verifier.verify(message, signature, signer_public_key)
39
40
print("\nValid signature?", is_valid)
0 commit comments