summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
Diffstat (limited to 'doc')
-rw-r--r--doc/usage.rst3
1 files changed, 2 insertions, 1 deletions
diff --git a/doc/usage.rst b/doc/usage.rst
index 611e868..8a736fb 100644
--- a/doc/usage.rst
+++ b/doc/usage.rst
@@ -197,10 +197,11 @@ possible, check the :py:func:`rsa.sign` function documentation for
details. The hash is then signed with the private key.
In order to verify the signature, use the :py:func:`rsa.verify`
-function.
+function. This function returns True if the verification is successful:
>>> message = 'Go left at the blue tree'
>>> rsa.verify(message, signature, pubkey)
+ True
Modify the message, and the signature is no longer valid and a
:py:class:`rsa.pkcs1.VerificationError` is thrown: