aboutsummaryrefslogtreecommitdiffstats
path: root/docs/hazmat/primitives
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2014-04-16 09:29:06 -0400
committerPaul Kehrer <paul.l.kehrer@gmail.com>2014-04-16 09:29:06 -0400
commit182825a138f0a565939c20fcf9d97f15945dbd30 (patch)
treed4105e3b7ea926ec9a31a4f7232b008a03dc6e6d /docs/hazmat/primitives
parentcd6183389098ecf498edc054fea4c9d4019e4981 (diff)
parent83cd3f894353c5f9e6393972319e7c20c0981a9c (diff)
downloadcryptography-182825a138f0a565939c20fcf9d97f15945dbd30.tar.gz
cryptography-182825a138f0a565939c20fcf9d97f15945dbd30.tar.bz2
cryptography-182825a138f0a565939c20fcf9d97f15945dbd30.zip
Merge pull request #919 from Ayrx/cmac-interfaces
CMAC interfaces + documentation
Diffstat (limited to 'docs/hazmat/primitives')
-rw-r--r--docs/hazmat/primitives/interfaces.rst23
1 files changed, 23 insertions, 0 deletions
diff --git a/docs/hazmat/primitives/interfaces.rst b/docs/hazmat/primitives/interfaces.rst
index f4fb8ded..95fd6f9f 100644
--- a/docs/hazmat/primitives/interfaces.rst
+++ b/docs/hazmat/primitives/interfaces.rst
@@ -513,6 +513,29 @@ 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 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
+.. _`CMAC`: https://en.wikipedia.org/wiki/CMAC