aboutsummaryrefslogtreecommitdiffstats
path: root/docs/hazmat/primitives/symmetric-encryption.rst
diff options
context:
space:
mode:
authorDonald Stufft <donald@stufft.io>2013-10-29 15:33:06 -0700
committerDonald Stufft <donald@stufft.io>2013-10-29 15:33:06 -0700
commite0f7082d119296d809ac95f8bc1ade53dc9fdf55 (patch)
tree84f61706abf5e32f502bc6db352ddfaed23ea393 /docs/hazmat/primitives/symmetric-encryption.rst
parenta9d9922f82d4e7b940679c4b548a4b14d0958ed9 (diff)
parentf108871b04c27c557f3e1a7fa3982c6d9d77d7fd (diff)
downloadcryptography-e0f7082d119296d809ac95f8bc1ade53dc9fdf55.tar.gz
cryptography-e0f7082d119296d809ac95f8bc1ade53dc9fdf55.tar.bz2
cryptography-e0f7082d119296d809ac95f8bc1ade53dc9fdf55.zip
Merge pull request #192 from alex/pkcs7-padding
PKCS7 padding
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()