From 4c3cd57ae2717856e09b9fed587e4d1afa3b44f2 Mon Sep 17 00:00:00 2001 From: Richard Vodden Date: Fri, 19 Feb 2021 08:14:05 +0000 Subject: Update usage.rst --- doc/usage.rst | 4 ++-- 1 file 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) -- cgit v1.2.1