aboutsummaryrefslogtreecommitdiffstats
path: root/wsutil/crc32.c
AgeCommit message (Collapse)AuthorFilesLines
2014-08-08The "MPEG-2" CRC-32 is also the ATM CRC-32.Guy Harris1-0/+2
Use it in the ATM dissector, and use a tvbuff version, so that we don't do tvb_get_ptr() ourselves. Change-Id: I0bd3594bc739e0cca447ac06f34a471441cf2e70 Reviewed-on: https://code.wireshark.org/review/3513 Reviewed-by: Guy Harris <guy@alum.mit.edu>
2014-08-08Fix the polynomial for the CCITT CRC.Guy Harris1-2/+4
And note that it's the same polynomial for the MPEG-2 CRC. Change-Id: Ie89e392156ae77a2adeec3eb8e704aa75c0cd0dc Reviewed-on: https://code.wireshark.org/review/3512 Reviewed-by: Guy Harris <guy@alum.mit.edu>
2014-08-08Add a CRC32_ACCUMULATE() macro for a single CRC-32 step and use it.Guy Harris1-3/+5
Change-Id: I9462d45c5db6d54c0ee695046cb72be1acf379e8 Reviewed-on: https://code.wireshark.org/review/3497 Reviewed-by: Guy Harris <guy@alum.mit.edu>
2014-08-08Fix indentation.Guy Harris1-2/+2
Change-Id: I4342ec7723c43f8e12d6187609a1493a61725d31 Reviewed-on: https://code.wireshark.org/review/3492 Reviewed-by: Guy Harris <guy@alum.mit.edu>
2014-03-04Remove all $Id$ from top of fileAlexis La Goutte1-2/+0
(Using sed : sed -i '/^ \* \$Id\$/,+1 d') Fix manually some typo (in export_object_dicom.c and crc16-plain.c) Change-Id: I4c1ae68d1c4afeace8cb195b53c715cf9e1227a8 Reviewed-on: https://code.wireshark.org/review/497 Reviewed-by: Anders Broman <a.broman58@gmail.com>
2013-12-20- Change guint32 array initializer constants to use 'U' rather than 'L'Bill Meier1-172/+185
(not that it actally makes any difference); - Change 'guint crc32_0AA725CF_reverse[]' to 'guint32 ...' (no actual difference); - Fix some indentation; - Add editor modelines. svn path=/trunk/; revision=54309
2013-10-22Add STANAG 5066 DTS CRC routines. Bug 9217 ↵Michael Mann1-0/+80
(https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9217) STANAG 5066 DTS will follow when it passes review, just trying to make the patch more manageable. svn path=/trunk/; revision=52774
2012-09-20We always HAVE_CONFIG_H so don't bother checking whether we have it or not.Jeff Morriss1-3/+1
svn path=/trunk/; revision=45015
2012-06-28Update FSF address - part II.Jakub Zawadzki1-1/+1
svn path=/trunk/; revision=43538
2012-03-13From Weston Schmidt:Anders Broman1-0/+68
Update packet-mpeg-sect to support CRCs & simpler header processing for subdissectors. https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6941 svn path=/trunk/; revision=41523
2011-10-03From Michael Mann:Anders Broman1-1/+14
Condense all SCTP CRC routines to wsutil/crc32.[ch]. Also made crc32_ccitt_table not explicitly accessible (must use crc32_ccitt_table_lookup). https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6298 svn path=/trunk/; revision=39233
2011-09-12Move airpcap_wep.c to /wsutilAnders Broman1-1/+1
svn path=/trunk/; revision=38969
2011-08-31Lookup in correct tables. Document functions.Stig Bjørlykke1-1/+1
svn path=/trunk/; revision=38819
2011-08-31Make lookup functions for accessing crc32c_table and crc32_ccitt_table.Stig Bjørlykke1-2/+13
svn path=/trunk/; revision=38817
2011-08-31Second try to move crc routines to libwsutil.Stig Bjørlykke1-0/+201
This time keep the tvb routines in epan. Now we can use common crc routines outside epan. svn path=/trunk/; revision=38810
2011-08-30Revert r38800, as the crc routines contains some tvb functions.Stig Bjørlykke1-275/+0
svn path=/trunk/; revision=38803
2011-08-30Move all crc routines to libwsutil.Stig Bjørlykke1-0/+275
This way we can use the crc routines in wiretap. svn path=/trunk/; revision=38800