update MAC docs (#8777)

* Update hmac.rst

* Update poly1305.rst
This commit is contained in:
Paul Kehrer 2023-04-21 17:04:45 -05:00 committed by GitHub
parent 1bc46c7298
commit 49dee344a1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -54,7 +54,7 @@ of a message.
...
cryptography.exceptions.InvalidSignature: Signature did not match digest.
:param key: Secret key as ``bytes``.
:param key: The secret key.
:type key: :term:`bytes-like`
:param algorithm: An
:class:`~cryptography.hazmat.primitives.hashes.HashAlgorithm`

View file

@ -48,7 +48,7 @@ messages allows an attacker to forge tags. Poly1305 is described in
...
cryptography.exceptions.InvalidSignature: Value did not match computed tag.
:param key: Secret key as ``bytes``.
:param key: The secret key.
:type key: :term:`bytes-like`
:raises cryptography.exceptions.UnsupportedAlgorithm: This is raised if
the version of OpenSSL ``cryptography`` is compiled against does not