X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/putty/blobdiff_plain/fb3d9ab5132ccf45a45b6789fe6fd8718963650f..5462f4596108c4309fb69b4e57aa1e59d7100908:/sshcrc.c diff --git a/sshcrc.c b/sshcrc.c index 702d7a08..ed20395b 100644 --- a/sshcrc.c +++ b/sshcrc.c @@ -76,12 +76,12 @@ * * - Compile with no special #defines. Will generate a table * that's already initialised at compile time, and one function - * crc32(buf,len) that uses it. Normal usage. + * crc32_compute(buf,len) that uses it. Normal usage. * * - Compile with INITFUNC defined. Will generate an uninitialised - * array as the table, and as well as crc32(buf,len) it will - * also generate void crc32_init(void) which sets up the table - * at run time. Useful if binary size is important. + * array as the table, and as well as crc32_compute(buf,len) it + * will also generate void crc32_init(void) which sets up the + * table at run time. Useful if binary size is important. * * - Compile with GENPROGRAM defined. Will create a standalone * program that does the initialisation and outputs the table as @@ -224,7 +224,7 @@ unsigned long crc32_update(unsigned long crcword, const void *buf, size_t len) return crcword; } -unsigned long crc32(const void *buf, size_t len) +unsigned long crc32_compute(const void *buf, size_t len) { return crc32_update(0L, buf, len); }