diff options
author | Alex Gaynor <alex.gaynor@gmail.com> | 2014-05-02 14:47:29 -0700 |
---|---|---|
committer | Alex Gaynor <alex.gaynor@gmail.com> | 2014-05-02 14:47:29 -0700 |
commit | 7029a4f409094fd59ea53508368e2dfb026a90b9 (patch) | |
tree | ae92dde1f4022206a4eb43df35603a0c9ccc6385 /docs/hazmat/primitives/mac | |
parent | 06e5bde2815520d16b185578036980f91d9bc2b4 (diff) | |
parent | 19e97bd119a417d61c6b844d6e38734d457c779b (diff) | |
download | cryptography-7029a4f409094fd59ea53508368e2dfb026a90b9.tar.gz cryptography-7029a4f409094fd59ea53508368e2dfb026a90b9.tar.bz2 cryptography-7029a4f409094fd59ea53508368e2dfb026a90b9.zip |
Merge pull request #1002 from public/doc-tweaks-4
Fix some typos in the docs
Diffstat (limited to 'docs/hazmat/primitives/mac')
-rw-r--r-- | docs/hazmat/primitives/mac/cmac.rst | 6 | ||||
-rw-r--r-- | docs/hazmat/primitives/mac/hmac.rst | 4 |
2 files changed, 7 insertions, 3 deletions
diff --git a/docs/hazmat/primitives/mac/cmac.rst b/docs/hazmat/primitives/mac/cmac.rst index a6b048b5..1fde1398 100644 --- a/docs/hazmat/primitives/mac/cmac.rst +++ b/docs/hazmat/primitives/mac/cmac.rst @@ -38,9 +38,9 @@ A subset of CMAC with the AES-128 algorithm is described in :rfc:`4493`. :class:`~cryptography.exceptions.UnsupportedAlgorithm` exception will be raised. - If the `algorithm`` isn't a - :class:`~cryptography.primitives.interfaces.BlockCipherAlgorithm` provider, - ``TypeError`` will be raised. + If ``algorithm`` isn't a + :class:`~cryptography.hazmat.primitives.interfaces.BlockCipherAlgorithm` + provider then ``TypeError`` will be raised. To check that a given signature is correct use the :meth:`verify` method. You will receive an exception if the signature is wrong: diff --git a/docs/hazmat/primitives/mac/hmac.rst b/docs/hazmat/primitives/mac/hmac.rst index 11b10735..e20a4034 100644 --- a/docs/hazmat/primitives/mac/hmac.rst +++ b/docs/hazmat/primitives/mac/hmac.rst @@ -38,6 +38,10 @@ of a message. :class:`~cryptography.exceptions.UnsupportedAlgorithm` exception will be raised. + If ``algorithm`` isn't a + :class:`~cryptography.hazmat.primitives.interfaces.HashAlgorithm` provider + then ``TypeError`` will be raised. + To check that a given signature is correct use the :meth:`verify` method. You will receive an exception if the signature is wrong: |