From f6cf956321ad99fe5bf071eb8832dbf2192c0ff5 Mon Sep 17 00:00:00 2001 From: Paul Kehrer Date: Tue, 22 Oct 2013 10:36:00 -0500 Subject: more docs --- docs/primitives/symmetric-encryption.rst | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'docs/primitives/symmetric-encryption.rst') diff --git a/docs/primitives/symmetric-encryption.rst b/docs/primitives/symmetric-encryption.rst index 72bf9711..79d712e5 100644 --- a/docs/primitives/symmetric-encryption.rst +++ b/docs/primitives/symmetric-encryption.rst @@ -26,20 +26,19 @@ where the encrypter and decrypter both use the same key. >>> ct = encryptor.update(b"a secret message") + encryptor.finalize() >>> decryptor = cipher.decryptor() >>> decryptor.update(ct) + decryptor.finalize() - "a secret message" + 'a secret message' :param cipher: One of the ciphers described below. :param mode: One of the modes described below. .. method:: encryptor() - :return :ref:`CipherContext `: encryption instance + :return :class:`CipherContext`: encryption instance .. method:: decryptor() - :return :ref:`CipherContext `: decryption instance + :return :class:`CipherContext`: decryption instance -.. _ciphercontext: .. class:: cryptography.primitives.interfaces.CipherContext() When calling ``encryptor()`` or ``decryptor()`` on a BlockCipher object you -- cgit v1.2.3