[Python-checkins] CVS: python/dist/src/Doc/lib libbinascii.tex,1.21,1.22 libzlib.tex,1.25,1.26

Fred L. Drake fdrake@users.sourceforge.net
Mon, 15 Oct 2001 06:45:51 -0700


Update of /cvsroot/python/python/dist/src/Doc/lib
In directory usw-pr-cvs1:/tmp/cvs-serv20687

Modified Files:
	libbinascii.tex libzlib.tex 
Log Message:
Added notes to clarify that binascii.crc32(), zlib.crc32(), and
zlib.adler32() are not suitable as general hash functions.


Index: libbinascii.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/libbinascii.tex,v
retrieving revision 1.21
retrieving revision 1.22
diff -C2 -d -r1.21 -r1.22
*** libbinascii.tex	2001/09/30 20:32:10	1.21
--- libbinascii.tex	2001/10/15 13:45:49	1.22
***************
*** 93,97 ****
  \begin{funcdesc}{crc32}{data\optional{, crc}}
  Compute CRC-32, the 32-bit checksum of data, starting with an initial
! crc.  This is consistent with the ZIP file checksum.  Use as follows:
  \begin{verbatim}
      print binascii.crc32("hello world")
--- 93,99 ----
  \begin{funcdesc}{crc32}{data\optional{, crc}}
  Compute CRC-32, the 32-bit checksum of data, starting with an initial
! crc.  This is consistent with the ZIP file checksum.  Since the
! algorithm is designed for use as a checksum algorithm, it is not
! suitable for use as a general hash algorithm.  Use as follows:
  \begin{verbatim}
      print binascii.crc32("hello world")

Index: libzlib.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/libzlib.tex,v
retrieving revision 1.25
retrieving revision 1.26
diff -C2 -d -r1.25 -r1.26
*** libzlib.tex	2001/06/25 15:30:13	1.25
--- libzlib.tex	2001/10/15 13:45:49	1.26
***************
*** 30,34 ****
     concatenation of several input strings.  The algorithm is not
     cryptographically strong, and should not be used for
!    authentication or digital signatures.
  \end{funcdesc}
  
--- 30,36 ----
     concatenation of several input strings.  The algorithm is not
     cryptographically strong, and should not be used for
!    authentication or digital signatures.  Since the algorithm is
!    designed for use as a checksum algorithm, it is not suitable for
!    use as a general hash algorithm.
  \end{funcdesc}
  
***************
*** 59,63 ****
    computing a running checksum over the concatenation of several
    input strings.  The algorithm is not cryptographically strong, and
!   should not be used for authentication or digital signatures.
  \end{funcdesc}
  
--- 61,67 ----
    computing a running checksum over the concatenation of several
    input strings.  The algorithm is not cryptographically strong, and
!   should not be used for authentication or digital signatures.  Since
!   the algorithm is designed for use as a checksum algorithm, it is not
!   suitable for use as a general hash algorithm.
  \end{funcdesc}