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 3450f43 commit f290e4eCopy full SHA for f290e4e
doc/usage.rst
@@ -187,11 +187,12 @@ function and then use the :py:func:`rsa.sign_hash` function to sign the hash:
187
>>> signature = rsa.sign_hash(hash, privkey, 'SHA-1')
188
189
In order to verify the signature, use the :py:func:`rsa.verify`
190
-function. This function returns True if the verification is successful:
+function. This function returns the name of the hash used. If the verification
191
+is no successful a
192
193
>>> message = 'Go left at the blue tree'.encode()
194
>>> rsa.verify(message, signature, pubkey)
- True
195
+ 'SHA-1'
196
197
Modify the message, and the signature is no longer valid and a
198
:py:class:`rsa.pkcs1.VerificationError` is thrown:
0 commit comments