Checksum

Effect of a typical checksum function (the Unixcksum utility)

A checksum is a small-sized block of data derived from another block of digital data for the purpose of detecting errors that may have been introduced during its transmission or storage. By themselves, checksums are often used to verify data integrity but are not relied upon to verify data authenticity.[1]

The procedure which generates this checksum is called a checksum function or checksum algorithm. Depending on its design goals, a good checksum algorithm usually outputs a significantly different value, even for small changes made to the input.[2] This is especially true of cryptographic hash functions, which may be used to detect many data corruption errors and verify overall data integrity; if the computed checksum for the current data input matches the stored value of a previously computed checksum, there is a very high probability the data has not been accidentally altered or corrupted.

Checksum functions are related to hash functions, fingerprints, randomization functions, and cryptographic hash functions. However, each of those concepts has different applications and therefore different design goals. For instance, a function returning the start of a string can provide a hash appropriate for some applications but will never be a suitable checksum. Checksums are used as cryptographic primitives in larger authentication algorithms. For cryptographic systems with these two specific design goals[clarification needed], see HMAC.

Check digits and parity bits are special cases of checksums, appropriate for small blocks of data (such as Social Security numbers, bank account numbers, computer words, single bytes, etc.). Some error-correcting codes are based on special checksums which not only detect common errors but also allow the original data to be recovered in certain cases.

Algorithms

Parity byte or parity word

The simplest checksum algorithm is the so-called longitudinal parity check, which breaks the data into "words" with a fixed number n of bits, and then computes the bitwise exclusive or (XOR) of all those words. The result is appended to the message as an extra word. In simpler terms, for n=1 this means adding a bit to the end of the data bits to guarantee that there is an even number of '1's. To check the integrity of a message, the receiver computes the bitwise exclusive or of all its words, including the checksum; if the result is not a word consisting of n zeros, the receiver knows a transmission error occurred.[3]

With this checksum, any transmission error which flips a single bit of the message, or an odd number of bits, will be detected as an incorrect checksum. However, an error that affects two bits will not be detected if those bits lie at the same position in two distinct words. Also swapping of two or more words will not be detected. If the affected bits are independently chosen at random, the probability of a two-bit error being undetected is 1/n.

Sum complement

A variant of the previous algorithm is to add all the "words" as unsigned binary numbers, discarding any overflow bits, and append the two's complement of the total as the checksum. To validate a message, the receiver adds all the words in the same manner, including the checksum; if the result is not a word full of zeros, an error must have occurred. This variant, too, detects any single-bit error, but the pro modular sum is used in SAE J1708.[4]

Position-dependent

The simple checksums described above fail to detect some common errors which affect many bits at once, such as changing the order of data words, or inserting or deleting words with all bits set to zero. The checksum algorithms most used in practice, such as Fletcher's checksum, Adler-32, and cyclic redundancy checks (CRCs), address these weaknesses by considering not only the value of each word but also its position in the sequence. This feature generally increases the cost of computing the checksum.

Fuzzy checksum

The idea of fuzzy checksum was developed for detection of email spam by building up cooperative databases from multiple ISPs of email suspected to be spam. The content of such spam may often vary in its details, which would render normal checksumming ineffective. By contrast, a "fuzzy checksum" reduces the body text to its characteristic minimum, then generates a checksum in the usual manner. This greatly increases the chances of slightly different spam emails producing the same checksum. The ISP spam detection software, such as SpamAssassin, of co-operating ISPs, submits checksums of all emails to the centralised service such as DCC. If the count of a submitted fuzzy checksum exceeds a certain threshold, the database notes that this probably indicates spam. ISP service users similarly generate a fuzzy checksum on each of their emails and request the service for a spam likelihood.[5]

General considerations

A message that is m bits long can be viewed as a corner of the m-dimensional hypercube. The effect of a checksum algorithm that yields an n-bit checksum is to map each m-bit message to a corner of a larger hypercube, with dimension m + n. The 2m + n corners of this hypercube represent all possible received messages. The valid received messages (those that have the correct checksum) comprise a smaller set, with only 2m corners.

A single-bit transmission error then corresponds to a displacement from a valid corner (the correct message and checksum) to one of the m adjacent corners. An error which affects k bits moves the message to a corner which is k steps removed from its correct corner. The goal of a good checksum algorithm is to spread the valid corners as far from each other as possible, to increase the likelihood "typical" transmission errors will end up in an invalid corner.

See also

References

  1. ^ "Definition of CHECKSUM". Merriam-Webster. Archived from the original on 2022-03-10. Retrieved 2022-03-10.
  2. ^ Hoffman, Chris (30 September 2019). "What Is a Checksum (and Why Should You Care)?". How-To Geek. Archived from the original on 2022-03-09. Retrieved 2022-03-10.
  3. ^ Fairhurst, Gorry (2014). "Checksums & Integrity Checks". Archived from the original on April 8, 2022. Retrieved March 11, 2022.
  4. ^ "SAE J1708". Kvaser.com. Archived from the original on 11 December 2013.
  5. ^ "IXhash". Apache. Archived from the original on 31 August 2020. Retrieved 7 January 2020.

Further reading

Read other articles:

Sento beralih ke halaman ini. Untuk kegunaan lain, lihat Sento (disambiguasi). Sentō di Kyoto Sentō (銭湯code: ja is deprecated ) adalah tempat pemandian air panas untuk umum di Jepang. Orang yang ingin mandi dipungut biaya masuk. Pria dan wanita mandi di kamar mandi terpisah. Satu bak mandi digunakan untuk mandi berendam bersama-sama oleh beberapa orang sekaligus. Menurut Undang-Undang Pemandian Umum (Kōshū Yokujō-hō) Pasal 1, fasilitas pemandian umum boleh menggunakan air panas yang...

 

Krisis sandera Sydney 2014Orang-orang berkerumun di Martin Place, dekat Lindt Chocolate Café, saat krisis berlangsungLokasiMartin Place, Sydney, New South Wales, AustraliaKoordinat33°52′05″S 151°12′40″E / 33.86796°S 151.21113°E / -33.86796; 151.21113Koordinat: 33°52′05″S 151°12′40″E / 33.86796°S 151.21113°E / -33.86796; 151.21113Tanggal15–16 Desember 2014 09:44 – 02:44 (AEDT, UTC+11:00)SasaranStaf dan pelanggan ...

 

Untuk kegunaan lain, lihat Provinsi Corrientes. CorrientesCity(From top to bottom; from left to right) Skyline on Paraná River; General Belgrano Bridge; Government House courtyard; San Martin Palace and Cabral Square.CountryArgentinaProvinceCorrientesDepartmentCapitalPemerintahan • MayorCarlos Camau Espínola (Front for Victory)Luas • Total500 km2 (200 sq mi)Ketinggian52 m (171 ft)Populasi (2001) • Total328.689 • K...

Recurring sporting event Omloop Het NieuwsbladRace detailsDateLate FebruaryRegionFlanders, BelgiumLocal name(s)Omloop Het Nieuwsblad (Dutch)Nickname(s)The Omloop The Opening ClassicDisciplineRoadCompetitionUCI World TourTypeOne-dayOrganiserFlanders ClassicsRace directorWim Van HerrewegheWeb sitewww.omloophetnieuwsblad.be/en Men's historyFirst edition1945 (1945)Editions76 (as of 2023)First winner Jean Bogaerts (BEL)Most wins Joseph Bruyère...

 

High Commissioner of British Western Pacific TerritoriesHigh Commissioner for the Western PacificStyleHis Excellency The Right HonourableResidenceSuva, Fiji (1877-1952)Honiara, British Solomon Islands (1953-1976)AppointerKing/Queen of the United KingdomFormation13 August 1877First holderThe Rt Hon. Sir Arthur Hamilton-GordonFinal holderThe Rt Hon. Sir Donald LuddingtonAbolished2 January 1976 The high commissioner for the Western Pacific was the chief executive officer of the British Western P...

 

ChasnuppKanuppKNPCJWPPQuaid-e-Azam Solar ParkRasulHubUchKabirwalaQuettaJamshoroKot AdduGudduGadaniBQ12ManglaTarbelaD-BG-B DamWarsakChashmaKKHPPAKHPPDKHPPJinnahGomal ZamN-JHPPSatparaM123New BongGGHPPPatrindNai GajDasuBunjiNaulong DamTaunsaGharo WPPRKHPPSHPPCMHPPNHPPN-4KGHPPGHPPDarawatclass=notpageimage| Location of notable power stations in Pakistan Nuclear, Wind/Solar, Coal/Oil/Gas, Hydroelectric Pakistan has a total installed power generation capacity of 43,775 MW as of 30 June 2022 which in...

Artikel ini tidak memiliki referensi atau sumber tepercaya sehingga isinya tidak bisa dipastikan. Tolong bantu perbaiki artikel ini dengan menambahkan referensi yang layak. Tulisan tanpa sumber dapat dipertanyakan dan dihapus sewaktu-waktu.Cari sumber: Gunung Parahu – berita · surat kabar · buku · cendekiawan · JSTOR Gunung ParahuTitik tertinggiKetinggian2.590 m (8.500 ft)Koordinat7°06′41″S 109°33′08″E / 7.1113°S 10...

 

2012 IPC Ice Sledge Hockey World ChampionshipsTournament detailsHost country NorwayDatesMarch 24 - April 1, 2012Teams8Venue(s)Hamar Olympic AmphitheatreFinal positionsChampions  United StatesTournament statisticsGames played20← 20092013 → The 2012 IPC Ice Sledge Hockey World Championships was the sixth IPC Ice Sledge Hockey World Championships that took place in the Hamar Olympic Amphitheatre in Hamar, Norway from March 24, 2012, to April 1, 2012.[...

 

У Вікіпедії є статті про інші значення цього терміна: Савчук. Петро СавчукСавчук Петро ІвановичНародився 2 січня 1937(1937-01-02)Отинія, окупована ЗУНРПомер 11 лютого 2011(2011-02-11) (74 роки)Отинія, Коломийський район, Івано-Франківська область, УкраїнаКраїна  Українська держава ...

Remeras de plumas. Remeras de plástico (también conocidas como paletas). Las remeras (también conocidas como emplumado o timones) son la estabilización aerodinámica de las flechas o los dardos con materiales como plumas, cada pieza de las cuales se la conoce como una remera. Descripción Como sustantivo, la remera se refiere colectivamente a las aletas o paletas, cada una de ellas por separado, son conocidas como una remera. Tradicionalmente, las remeras se componen de tres plumas pegada...

 

Human rights monitoring organization in the Americas Inter-American Commission on Human RightsEnglish logoAbbreviationIACHRFormation1959PurposeHuman rights monitoring in the AmericasLocationWashington, D.C., U.S.Region served Americas(ACHR signatories,OAS members)Membership Antigua and Barbuda, Argentina, Barbados, Belize, Bolivia, Brazil, Canada, Chile, Colombia, Costa Rica, Dominica, Dominican Republic, Ecuador, El Salvador, Grenada, Guatemala, Guyana, Haiti, Honduras, Jamaica, Mexico, Nica...

 

هذه المقالة يتيمة إذ تصل إليها مقالات أخرى قليلة جدًا. فضلًا، ساعد بإضافة وصلة إليها في مقالات متعلقة بها. (يوليو 2020) زهير سوكاح معلومات شخصية الميلاد 1980الدار البيضاء الجنسية  المغرب الحياة العملية المدرسة الأم جامعة دوسلدورف المهنة كاتب اللغات اللغة الألمانية - [اللغة ا...

2022 studio album by White LiesAs I Try Not to Fall ApartStudio album by White LiesReleased18 February 2022 (2022-02-18)Length47:28LabelPIASProducer White Lies Ed Buller Claudius Mittendorfer White Lies chronology Five(2019) As I Try Not to Fall Apart(2022) Singles from As I Try Not to Fall Apart As I Try Not to Fall ApartReleased: 27 September 2021 I Don't Want to Go to MarsReleased: 1 December 2021 Am I Really Going to DieReleased: 17 January 2022 Blue DriftReleased: ...

 

For other battles with the same name, see Battle of the Dardanelles. This article needs additional citations for verification. Please help improve this article by adding citations to reliable sources. Unsourced material may be challenged and removed.Find sources: Battle of the Dardanelles 1657 – news · newspapers · books · scholar · JSTOR (November 2010) (Learn how and when to remove this template message) Fourth Battle of the DardanellesPart of t...

 

2002 wrestling competition Men's freestyle 84 kg at the 2002 World ChampionshipsVenueAzadi Indoor StadiumDates5–6 September 2002Competitors25 from 25 nationsMedalists  Adam Saitiev   Russia Yoel Romero   Cuba Majid Khodaei   Iran← 20012003 → 2002 World Wrestling ChampionshipsFreestyleGreco-RomanWomen55 kg55 kg48 kg60 kg60 kg51 kg66 kg66 kg55 kg74 kg74 kg59 kg84 kg84 kg63 kg96 kg96 kg67 kg120 kg120 kg72 kg...

Belgian cyclist Jozef SchilsPersonal informationBorn(1931-09-04)4 September 1931Kersbeek-Miskom, BelgiumDied3 March 2007(2007-03-03) (aged 75)Liège, BelgiumTeam informationDisciplineRoadRoleRider Jozef „jef Schils (4 September 1931, in Kersbeek-Miskom – 3 March 2007, in Liège) was a Belgian cyclist. In 1952, at the age of 21, Jozef Schils, who had just become a professional racing cyclist[1] and was still in the army, became Belgian road racing champion. He was nominated fo...

 

American TV series or program Pixie Hollow GamesMovie posterDirected byBradley Raymond[1]StarringMae Whitman Megan Hilty[1]Lucy LiuRaven-SymonéAngela BartysTheme music composerJoel McNeelyCountry of originUnited StatesOriginal languageEnglishProductionProducerHelen KalafaticRunning time23 minutesProduction companyDisneyToon StudiosOriginal releaseNetworkDisney ChannelRelease November 19, 2011 (2011-11-19) Pixie Hollow Games is a 30-minute television specia...

 

Сатанівський заказник 49°10′42″ пн. ш. 26°14′22″ сх. д. / 49.17844444447221974° пн. ш. 26.23961111113888833° сх. д. / 49.17844444447221974; 26.23961111113888833Координати: 49°10′42″ пн. ш. 26°14′22″ сх. д. / 49.17844444447221974° пн. ш. 26.23961111113888833° сх. д. / 49.17844444447221974; 2...

Questa voce sull'argomento cestisti ucraini è solo un abbozzo. Contribuisci a migliorarla secondo le convenzioni di Wikipedia. Segui i suggerimenti del progetto di riferimento. Stanislav Tymofejenko Nazionalità  Ucraina Altezza 200 cm Pallacanestro Ruolo Guardia Squadra  Dnipro Carriera Squadre di club 2007-2016 Dnipro2016 Pieno žvaigždės2016- Dnipro Nazionale 2008-2009 Ucraina U-202015- Ucraina Il simbolo → indica un trasferimento in prestito. Pallacanest...

 

Fictional character A piece of promotional artwork for Kingdom Hearts II Final Mix+ that showcases the main characters of the series up to Kingdom Hearts II; the top left features the protagonists of Kingdom Hearts II and the top right features the main cast of Re:Chain of Memories, with the members of Organization XIII at the bottom. Kingdom Hearts is a series of action role-playing games developed and published by Square Enix (formerly Square). It is the result of a collaboration between Sq...

 

Strategi Solo vs Squad di Free Fire: Cara Menang Mudah!