diff options
author | akuchling <akuchling@rivest.dlitz.net> | 2003-11-23 14:39:37 -0700 |
---|---|---|
committer | akuchling <akuchling@rivest.dlitz.net> | 2003-11-23 14:39:37 -0700 |
commit | 8a7f10289dd1af494e37f542e583250bc861aa9a (patch) | |
tree | 137da4282f8dbba2651c1d592691bb93fe22e130 /Doc | |
parent | 2e55fb5962999d28ce850eda71f879b5e9de2fe8 (diff) | |
download | pycrypto-8a7f10289dd1af494e37f542e583250bc861aa9a.tar.gz |
[project @ akuchling-20031123213937-17c198aae57256d2]
[project @ 2003-11-23 13:39:37 by akuchling]
Use correct variable name for mode
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/pycrypt.tex | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/pycrypt.tex b/Doc/pycrypt.tex index f05a079..5724548 100644 --- a/Doc/pycrypt.tex +++ b/Doc/pycrypt.tex @@ -329,7 +329,7 @@ A similar anonymous posting was made for Alleged RC2 in January, 1996. An example usage of the DES module: \begin{verbatim} >>> from Crypto.Cipher import DES ->>> obj=DES.new('abcdefgh', DES.ECB) +>>> obj=DES.new('abcdefgh', DES.MODE_ECB) >>> plain="Guido van Rossum is a space alien." >>> len(plain) 34 @@ -350,7 +350,7 @@ available. \begin{funcdesc}{new}{key, mode\optional{, IV}} Returns a ciphering object, using \var{key} and feedback mode -\var{mode}. If \var{mode} is CBC or CFB, \var{IV} must be provided, +\var{mode}. If \var{mode} is \constant{MODE_CBC} or \constant{MODE_CFB}, \var{IV} must be provided, 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. |