diff options
author | David Reid <dreid@dreid.org> | 2013-11-20 13:55:08 -0800 |
---|---|---|
committer | David Reid <dreid@dreid.org> | 2013-11-20 13:55:08 -0800 |
commit | 663295d015d4aa65258f14d91c6350726604350c (patch) | |
tree | 516710a9ca1992d64ed737e4e131f89e5c4ddae7 /docs/hazmat/primitives/symmetric-encryption.rst | |
parent | 63fa19ace98c2c88a6065acc9e944a71480ff651 (diff) | |
download | cryptography-663295d015d4aa65258f14d91c6350726604350c.tar.gz cryptography-663295d015d4aa65258f14d91c6350726604350c.tar.bz2 cryptography-663295d015d4aa65258f14d91c6350726604350c.zip |
Document all the parameters including cross references to specific providers where appropriate.
Diffstat (limited to 'docs/hazmat/primitives/symmetric-encryption.rst')
-rw-r--r-- | docs/hazmat/primitives/symmetric-encryption.rst | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/docs/hazmat/primitives/symmetric-encryption.rst b/docs/hazmat/primitives/symmetric-encryption.rst index 76f68a12..f63ad90a 100644 --- a/docs/hazmat/primitives/symmetric-encryption.rst +++ b/docs/hazmat/primitives/symmetric-encryption.rst @@ -44,8 +44,16 @@ an "encrypt-then-MAC" formulation as `described by Colin Percival`_. >>> decryptor.update(ct) + decryptor.finalize() 'a secret message' - :param algorithms: One of the algorithms described below. - :param mode: One of the modes described below. + :param algorithms: A + :class:`~cryptography.hazmat.primitives.interfaces.CipherAlgorithm` + provider such as those described + :ref:`below <symmetric-encryption-algorithms>`. + :param mode: A :class:`~cryptography.hazmat.primitives.interfaces.Mode` + provider such as those described + :ref:`below <symmetric-encryption-modes>`. + :param backend: A + :class:`~cryptography.hazmat.bindings.interfaces.CipherBackend` + provider. .. method:: encryptor() @@ -98,6 +106,8 @@ an "encrypt-then-MAC" formulation as `described by Colin Percival`_. :meth:`update` and :meth:`finalize` will raise :class:`~cryptography.exceptions.AlreadyFinalized`. +.. _symmetric-encryption-algorithms: + Algorithms ~~~~~~~~~~ |