aboutsummaryrefslogtreecommitdiffstats
path: root/docs/hazmat/primitives/symmetric-encryption.rst
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2013-10-29 11:15:30 -0700
committerAlex Gaynor <alex.gaynor@gmail.com>2013-10-29 11:15:30 -0700
commitb2d5efdc5a6e7f6df635b4bc60882bb2e5f14a66 (patch)
tree948702df3d331208f9f553d15cb791fd74e003c2 /docs/hazmat/primitives/symmetric-encryption.rst
parentdb279d0e383173df65f83541daa4b8f58fc070f4 (diff)
downloadcryptography-b2d5efdc5a6e7f6df635b4bc60882bb2e5f14a66.tar.gz
cryptography-b2d5efdc5a6e7f6df635b4bc60882bb2e5f14a66.tar.bz2
cryptography-b2d5efdc5a6e7f6df635b4bc60882bb2e5f14a66.zip
More docs
Diffstat (limited to 'docs/hazmat/primitives/symmetric-encryption.rst')
-rw-r--r--docs/hazmat/primitives/symmetric-encryption.rst15
1 files changed, 7 insertions, 8 deletions
diff --git a/docs/hazmat/primitives/symmetric-encryption.rst b/docs/hazmat/primitives/symmetric-encryption.rst
index 758a4648..9a5bce07 100644
--- a/docs/hazmat/primitives/symmetric-encryption.rst
+++ b/docs/hazmat/primitives/symmetric-encryption.rst
@@ -54,18 +54,17 @@ where the encrypter and decrypter both use the same key.
.. currentmodule:: cryptography.hazmat.primitives.interfaces
-.. class:: CipherContext()
-
- When calling ``encryptor()`` or ``decryptor()`` on a BlockCipher object you
- will receive a return object conforming to the CipherContext interface. You
- can then call ``update(data)`` with data until you have fed everything into
- the context. Once that is done call ``finalize()`` to finish the operation and
- obtain the remainder of the data.
+.. class:: CipherContext
+ When calling ``encryptor()`` or ``decryptor()`` on a ``BlockCipher`` object
+ you will receive a return object conforming to the ``CipherContext``
+ interface. You can then call ``update(data)`` with data until you have fed
+ everything into the context. Once that is done call ``finalize()`` to
+ finish the operation and obtain the remainder of the data.
.. method:: update(data)
- :param bytes data: The text you wish to pass into the context.
+ :param bytes data: The data you wish to pass into the context.
:return bytes: Returns the data that was encrypted or decrypted.
.. method:: finalize()