CVS: crypto/Doc pycrypt.tex,1.19,1.20

"A.M. Kuchling" <[email protected]> Sun, 23 Nov 2003 05:39:39 -0800
Newsgroups gmane.comp.python.cryptography.cvs
Message-ID <[email protected]>
Update of /cvsroot/pycrypto/crypto/Doc
In directory sc8-pr-cvs1:/tmp/cvs-serv4388

Modified Files:
	pycrypt.tex 
Log Message:
Use correct variable name for mode

Index: pycrypt.tex
===================================================================
RCS file: /cvsroot/pycrypto/crypto/Doc/pycrypt.tex,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -r1.19 -r1.20
--- pycrypt.tex	12 Apr 2003 02:11:47 -0000	1.19
+++ pycrypt.tex	23 Nov 2003 13:39:37 -0000	1.20
@@ -329,7 +329,7 @@
 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 @@
 
 \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.



-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/