diff options
author | Darsey Litzenberger <dlitz@dlitz.net> | 2022-01-24 22:29:04 -0800 |
---|---|---|
committer | Darsey Litzenberger <dlitz@dlitz.net> | 2022-01-24 23:00:07 -0800 |
commit | c2ebfaca998691bc4386f237cde351e926ca3cdb (patch) | |
tree | a289f8804f3945039c6d0bd76456f3c95463a7f8 | |
parent | d5782d87af27db8cc5776a3f476c11f8bb6e41a3 (diff) | |
download | pycrypto-c2ebfaca998691bc4386f237cde351e926ca3cdb.tar.gz |
Doc/pycrypt.rst: reStructuredText formatting fixes
-rw-r--r-- | Doc/pycrypt.rst | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Doc/pycrypt.rst b/Doc/pycrypt.rst index 6ceb0ec..163b200 100644 --- a/Doc/pycrypt.rst +++ b/Doc/pycrypt.rst @@ -182,7 +182,7 @@ Python 3.x: The passed argument must be an object interpretable as a buffer of bytes -Here's an example, using the SHA-256 algorithm:: +Here's an example, using the SHA-256 algorithm: >>> from Crypto.Hash import SHA256 >>> m = SHA256.new() @@ -192,7 +192,7 @@ Here's an example, using the SHA-256 algorithm:: >>> m.hexdigest() 'ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad' -Here's an example of using HMAC:: +Here's an example of using HMAC: >>> from Crypto.Hash import HMAC, SHA256 >>> m = HMAC.new('Please do not use this key in your code, with sugar on top', @@ -347,7 +347,7 @@ damaging class of weak RC4 keys; this module won't warn you about such keys. A similar anonymous posting was made for Alleged RC2 in January, 1996. -An example usage of the DES module:: +An example usage of the DES module: >>> from Crypto.Cipher import DES >>> obj=DES.new('abcdefgh', DES.MODE_ECB) @@ -372,7 +372,7 @@ available. Returns a ciphering object, using ``key`` and feedback mode ``mode``. If ``mode`` is ``MODE_CBC`` or ``MODE_CFB``, ``IV`` must be provided, - and must be a string of the same length as the block size. +and must be a string of the same length as the block size. Some algorithms support additional keyword arguments to this function; see the "Algorithm-specific Notes for Encryption Algorithms" section below for the details. Python 3.x: ```mode`` is a string object; ```key``` and ```IV``` must be @@ -683,7 +683,7 @@ Many of these algorithms are patented. Before using any of them in a commercial product, consult a patent attorney; you may have to arrange a license with the patent holder. -An example of using the RSA module to sign a message:: +An example of using the RSA module to sign a message: >>> from Crypto.Hash import MD5 >>> from Crypto.PublicKey import RSA |