summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Vodden <richard@vodden.com>2021-02-19 08:14:05 +0000
committerSybren A. Stüvel <sybren@stuvel.eu>2021-02-24 13:28:12 +0100
commit4c3cd57ae2717856e09b9fed587e4d1afa3b44f2 (patch)
tree97ace7516aa1fe3c5ff39afb9709150ade7feb9e
parentf290e4e2a2a8d7fdd5d42fe0d7faba051e7b123c (diff)
downloadrsa-git-4c3cd57ae2717856e09b9fed587e4d1afa3b44f2.tar.gz
Update usage.rst
-rw-r--r--doc/usage.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/usage.rst b/doc/usage.rst
index 9e18a1b..5cb5ae7 100644
--- a/doc/usage.rst
+++ b/doc/usage.rst
@@ -187,8 +187,8 @@ function and then use the :py:func:`rsa.sign_hash` function to sign the hash:
>>> signature = rsa.sign_hash(hash, privkey, 'SHA-1')
In order to verify the signature, use the :py:func:`rsa.verify`
-function. This function returns the name of the hash used. If the verification
-is no successful a
+function. If the verification is successful, this function returns
+the hash algorithm used as a string:
>>> message = 'Go left at the blue tree'.encode()
>>> rsa.verify(message, signature, pubkey)