aboutsummaryrefslogtreecommitdiffstats
path: root/docs/hazmat/primitives
diff options
context:
space:
mode:
authorAyrx <terrycwk1994@gmail.com>2014-04-15 19:02:05 +0800
committerAyrx <terrycwk1994@gmail.com>2014-04-15 19:02:05 +0800
commitc81217024fe2dcd0ea4eba696229ec029cd533e3 (patch)
tree5773e1067b0242baf429b683a55be16a229d3395 /docs/hazmat/primitives
parent15b6ede389f7abc7064a65b88c864fa8a2aca816 (diff)
downloadcryptography-c81217024fe2dcd0ea4eba696229ec029cd533e3.tar.gz
cryptography-c81217024fe2dcd0ea4eba696229ec029cd533e3.tar.bz2
cryptography-c81217024fe2dcd0ea4eba696229ec029cd533e3.zip
Added CMAC interface documentation
Diffstat (limited to 'docs/hazmat/primitives')
-rw-r--r--docs/hazmat/primitives/interfaces.rst22
1 files changed, 22 insertions, 0 deletions
diff --git a/docs/hazmat/primitives/interfaces.rst b/docs/hazmat/primitives/interfaces.rst
index 9a1f3307..a0468aa3 100644
--- a/docs/hazmat/primitives/interfaces.rst
+++ b/docs/hazmat/primitives/interfaces.rst
@@ -446,6 +446,28 @@ Key derivation functions
something like checking whether a user's password attempt matches the
stored derived key.
+
+CMAC
+~~~~
+
+.. class:: CMACContext
+
+ .. versionadded:: 0.4
+
+ .. method:: update(data)
+
+ :param data bytes: The data you want to authenticate.
+
+ .. method:: finalize()
+
+ :return: The final message authentication code.
+
+ .. method:: copy()
+
+ :return: A :class:`~cryptography.hazmat.primitives.interfaces.CMACContext`
+ that is a copy of the current context.
+
+
.. _`RSA`: https://en.wikipedia.org/wiki/RSA_(cryptosystem)
.. _`Chinese remainder theorem`: https://en.wikipedia.org/wiki/Chinese_remainder_theorem
.. _`DSA`: https://en.wikipedia.org/wiki/Digital_Signature_Algorithm