diff options
author | Legrandin <helderijs@gmail.com> | 2013-12-17 22:09:22 +0100 |
---|---|---|
committer | Dwayne Litzenberger <dlitz@dlitz.net> | 2014-02-21 23:59:53 -0800 |
commit | 7c5a1ebb9944b957094207e2f49b37c3063d192a (patch) | |
tree | c1229d9ae0233a436a875f1b13c5fc730dbb4fcd | |
parent | 74efe78ac1c82fb09d4d390093d4c9597167d3ec (diff) | |
download | pycrypto-7c5a1ebb9944b957094207e2f49b37c3063d192a.tar.gz |
Fixed sentence in CCM example
-rw-r--r-- | lib/Crypto/Cipher/AES.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/Crypto/Cipher/AES.py b/lib/Crypto/Cipher/AES.py index b18b7d0..c484846 100644 --- a/lib/Crypto/Cipher/AES.py +++ b/lib/Crypto/Cipher/AES.py @@ -40,7 +40,8 @@ As an example, encryption can be done as follows: A more complicated example is based on CCM, (see `MODE_CCM`) an `AEAD`_ mode that provides both confidentiality and authentication for a message. -It also allows message for the header to remain in the clear, whilst still + +It optionally allows the header of the message to remain in the clear, whilst still being authenticated. The encryption is done as follows: >>> from Crypto.Cipher import AES @@ -130,7 +131,7 @@ def new(key, *args, **kwargs): (*Only* `MODE_CBC`, `MODE_CFB`, `MODE_OFB`, `MODE_OPENPGP`). The initialization vector to use for encryption or decryption. - + It is ignored for `MODE_ECB` and `MODE_CTR`. For `MODE_OPENPGP`, IV must be `block_size` bytes long for encryption |