summaryrefslogtreecommitdiffstats
path: root/src/lib/crypto/crc32/crc.c
Commit message (Collapse)AuthorAgeFilesLines
* * crc.pl: New file; perl script to do generate some test vectorsTom Yu2002-01-091-246/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | and CRC tables. * CRC.pm: New file; perl module to implement CRCs in terms of polynomial arithmetic (verrrry slooow). * Poly.pm: New file; perl module to do polynomial arithmetic in the field of integers mod 2. * t_crc.c: New file; do some sanity checks (and timing checks, more useful when building shift-4 as well). * Makefile.in (check-unix): Add rules for building, running t_crc. * crc32.c (mit_crc32_shift4): Add new function, usually not compiled, for shift-4 implementation of CRC32. * crc-32.h: Add (conditionalized) prototype for the shift-4 function; remove checksum_entry (it's no longer used). * crctest.c: Removed. * crc-test: Removed. * crc.c: Removed. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14095 dc483132-0cff-0310-8789-dd5450dbe970
* Don't conditionalize prototypes; delete macros supporting it. (Maybe overdone;Ken Raeburn2001-10-101-4/+4
| | | | | | don't worry about restoring them when importing new versions of code.) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13792 dc483132-0cff-0310-8789-dd5450dbe970
* Danilo also says we can get rid of _MSDOS (Win16) tests, and explicit ↵Ken Raeburn2001-10-061-4/+4
| | | | | | FAR/NEAR specs git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13786 dc483132-0cff-0310-8789-dd5450dbe970
* krb5_const -> constKen Raeburn2001-03-061-18/+18
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13058 dc483132-0cff-0310-8789-dd5450dbe970
* copyright notice updates from 1.1 branchKen Raeburn1999-09-241-1/+4
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11853 dc483132-0cff-0310-8789-dd5450dbe970
* Windows/NT integration (V1_0_WIN32_BRANCH merge)Richard Basch1997-02-061-14/+22
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9788 dc483132-0cff-0310-8789-dd5450dbe970
* crc.c: ensure the cksum length is sufficientRichard Basch1996-05-151-4/+7
| | | | | | crc-test.c: set the cksum length field git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@8022 dc483132-0cff-0310-8789-dd5450dbe970
* put function prototype back inTheodore Tso1995-09-231-0/+10
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6818 dc483132-0cff-0310-8789-dd5450dbe970
* Fix bad shift value in verifier functionPaul Park1995-07-261-1/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6324 dc483132-0cff-0310-8789-dd5450dbe970
* Add checksum verifier procedure/dispatchPaul Park1995-07-071-5/+40
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6251 dc483132-0cff-0310-8789-dd5450dbe970
* Change PROTOTYPE -> KRB5_PROTOTYPETheodore Tso1995-06-211-1/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6113 dc483132-0cff-0310-8789-dd5450dbe970
* Windows global stuff:Keith Vetter1995-04-141-2/+2
| | | | | | | | | o removed INTERFACE from non-api functions o add FAR to pointers visible to the world o made the tests for __STDC__ also check for _WINDOWS o creates GSSAPI.DLL & GSSAPI.LIB as per spec. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5354 dc483132-0cff-0310-8789-dd5450dbe970
* Two changes in the crypto directory: 1) 16 vs 32 bit errors in DES and 2)Keith Vetter1995-03-151-14/+2
| | | | | | removed crud for making a DLL (will be done at a higher level.) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5123 dc483132-0cff-0310-8789-dd5450dbe970
* Finished off changed needed for making libcrypto.dll. Biggest changeKeith Vetter1995-03-041-0/+12
| | | | | | | is that you can't pull in data from a DLL so had to add three routines that return the address of various data structures. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5074 dc483132-0cff-0310-8789-dd5450dbe970
* Added the files and changes needed to create a dll out of libcryptoKeith Vetter1995-03-031-6/+6
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5068 dc483132-0cff-0310-8789-dd5450dbe970
* Made the CRYPTO directories work on the PC by adding INTERFACE to all theKeith Vetter1995-02-211-2/+2
| | | | | | functions and prototypes, and updating the Makefile.in. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4956 dc483132-0cff-0310-8789-dd5450dbe970
* Experimental checkinKeith Vetter1995-02-201-1/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4953 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in: made to work under WindowsJohn Gilmore1995-02-151-3/+3
| | | | | | | | | | | | | | | - added windows only make preamble - moved the all target after the objects it depends on - used $(OBJEXT) and $(EXEEXT) where needed - split crctest into unix rules and windows rules - changed file separatars into macros where needed * crctest.c: changed int to long to work on 16 bit machines * crc.c: added Windows calling convention to the function and casted the assignment of the function. [There's a minor problem -- the cast should be fixed another way -- but I'll check it in this way and then Keith will fix it.] git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4949 dc483132-0cff-0310-8789-dd5450dbe970
* * crc-32.h: New file, moved from include/krb5/crc-32.h.John Gilmore1995-01-261-4/+2
| | | | | | * crc.c, crctest.c: Replace <.../...> includes with "..."s. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4847 dc483132-0cff-0310-8789-dd5450dbe970
* Reserve space for the structure magic numbersTheodore Tso1994-10-041-0/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4437 dc483132-0cff-0310-8789-dd5450dbe970
* stamp out rcs keywordsMark Eichin1994-08-181-6/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4191 dc483132-0cff-0310-8789-dd5450dbe970
* Change export warning notice from "is assumed to require an export license"Theodore Tso1993-09-011-2/+2
| | | | | | to "may require..." git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@2638 dc483132-0cff-0310-8789-dd5450dbe970
* Update copyright noticeJohn Kohl1991-06-061-2/+16
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@2156 dc483132-0cff-0310-8789-dd5450dbe970
* fix copyrightsJohn Kohl1991-03-141-1/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1893 dc483132-0cff-0310-8789-dd5450dbe970
* RFC draft protocol changes and related cleanupsJohn Kohl1990-12-141-7/+2
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1554 dc483132-0cff-0310-8789-dd5450dbe970
* use proper polynomial for this CRC tableJohn Kohl1990-12-031-65/+114
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1525 dc483132-0cff-0310-8789-dd5450dbe970
* remove spurious includesJohn Kohl1990-05-231-2/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@908 dc483132-0cff-0310-8789-dd5450dbe970
* update to new cksum interfaceJohn Kohl1990-05-091-8/+11
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@800 dc483132-0cff-0310-8789-dd5450dbe970
* allocate space for cksumJohn Kohl1990-05-031-0/+6
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@711 dc483132-0cff-0310-8789-dd5450dbe970
* remove spurious &John Kohl1990-05-031-1/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@697 dc483132-0cff-0310-8789-dd5450dbe970
* fix up for checksum interfaceJohn Kohl1990-04-241-6/+46
| | | | | | add copyright &such git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@571 dc483132-0cff-0310-8789-dd5450dbe970
* First versionBill Sommerfeld1990-02-031-0/+83
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@241 dc483132-0cff-0310-8789-dd5450dbe970