linux/lib/libcrc32c.c
<<
val12 val12>> v val val12 "> val12 val12Search val12Prefs. 12 v v "> al12 2.
2 21/*22 22 * CRC32C2 23 *@Article{castagnoli-crc,2 24 * author =al12 2 { Guy Castagnoli and Stefav B3reuer> <21.31.7.n value="v21.31.6" > 132 24 * auth5r =al52 2 { Guy Castagnoli and Steftitleeuer> {{Oormmiza v3.of Cy. 12 Redundancy-Check Codes with "3n 4" class="line" nam L4">2 24 * auth6r =al62 2 { Guy Castagnoli and Stefffffffffffffffff132 24 * auth7r =al72 2 { Guy Castagnoli and Stefjo ajaleuer> IEEE Transreturns hi Communica v3 L4" class="line" nam L4">2 24 * auth8r =al82 2 { Guy Castagnoli and Stefy ceuer> {1993} L4" class="line" nam L4">2 24 * auth9r =al92 2 { Guy Castagnoli and Stefvolumeeuer> {41} L4" class="line" nam L4">2 24/*2 6} L4" class="line" nam L4">2 24/*2 {} L4" class="line" nam L4">2 24 * CRC312C2 24 *@Arti1cle{c1stagnoli-crc,2 24 * auth1or =a112 2 { Guy Castagnoli and StefUsed by the iSCSI driver, typsibly others,f132 24 * auth15r =a152 2 { Guy Castagnoli and Stefthe iscs4" id.cLmcduleeof the src=-iscs4 driver at L4" class="line" nam L4">2 24 * auth16r =a162 2 { Guy Castagnoli and Stefhttp:// src=-iscs4.so ace2 24 * auth17r =a172 2 { Guy Castagnoli and Ste L4" class="line" nam L4">2 24 * auth18r =a182 2 { Guy Castagnoli and StefFollowiv the exampleeof namL4">2, nav funeturn is ie276ded to be L4" class="line" nam L4">2 24 * auth19r =a192 2 { Guy Castagnoli and Stefflexiblef132 22/*22 , s=" hopefully may be ablefto use nav b86 are: L2" class="line" nam L2">2 22/*22 22 * CRC322C2 22 *@Arti2cle{c2stagnoli-crc,2 22 * auth2or =a212 2 { Guy Castagnoli and Ste L2" class="line" nam L2">2 22 * auth25r =a252 2 { Guy Castagnoli and StefCopy v2 24 * auth26r =a262 2 { Guy Castagnoli and Stef L4" class="line" nam L4">2 24 * auth27r =a272 2 { Guy Castagnoli and StefTnav program is free software;/yo cuy redistris="e itf132 24 * auth28r =a282 2 { Guy Castagnoli and Stefunder the termseof the GNU GeneralePub 12 License av pub 1shed by the Free L4" class="line" nam L4">2 24 * auth29r =a292 2 { Guy Castagnoli and StefSoftwarefFoundaturn; either versurn 2eof the License, /da(at yo adform3.)f L4" class="line" nam L4">2 24/*22 24/*22 24 * CRC332C2 24 *@Articcle{c3stagnass="line" nam L4">2 24 * auth3or =a312 2 #include <ss="line"includemL4ypto/hash.hlass="comfref">L4ypto/hash.h2 2 earcass="line" nam L4">2 24 * auth35r =a352 2 #include <ss="line"includem src=/err.hlass="comfref"> src=/err.h2 2 earcass="line" nam L4">2 24 * auth36r =a362 2 #include <ss="line"includem src=/init.hlass="comfref"> src=/init.h2 2 earcass="line" nam L4">2 24 * auth37r =a372 2 #include <ss="line"includem src=/kernel.hlass="comfref"> src=/kernel.h2 2 earcass="line" nam L4">2 24 * auth38r =a382 2 #include <ss="line"includem src=/mcdule.hlass="comfref"> src=/mcdule.h2 2 earcass="line" nam L4">2 24 * auth39r =a39tagnass="line" nam L4">2 24/*2 vL4ypto_shash v2 te al12 onclcode=tfm3.
tfm v2 cass="line" nam L4">2 24/*22 24 * CRC342Cu3av3.< val12 onclcode=L4">2 3.
L4">2 v3.<(aal12 onclcode=u3class="comdref">u3av3.< val12 onclcode=L4"3.
L4"v3.<, const voidte al12 onclcode=address3.
addressv3.<, unsigned ie2 val12 onclcode=length3.
lengthv3.<)ass="line" nam L4">2 24 *@Arti4cle{c4stagn{ass="line" nam L4">2 24 * authoor =a412 2 LLLLLLLLstruct {ass="line" nam L4">2 24 * auth45r =a452 2 LLLLLLLLLLLLLLLLstruct val12 onclcode=shash_des"3.
shash_des"v3.< val12 onclcode=shash3.
shash v2 cass="line" nam L4">2 24 * auth46r =a462 2 LLLLLLLLLLLLLLLLchar val12 onclcode=Ltx3.
Ltx2 2 [val12 onclcode=L4ypto_shash_des"size3.
L4ypto_shash_des"sizev3.<(aal12 onclcode=tfm3.
tfm v2 )]cass="line" nam L4">2 24 * auth47r =a472 2 LLLLLLLL} val12 onclcode=des"3.
des"v3.2 24 * auth48r =a482 2 LLLLLLLLie2 val12 onclcode=err3.
errv3.2 24 * auth49r =a49tagnass="line" nam L4">2 24/*2des"v3.<.val12 onclcode=shash3.
shash v2 .val12 onclcode=tfm3.
tfm v2 =Lval12 onclcode=tfm3.
tfm v2 cass="line" nam L4">2 24/*2des"v3.<.val12 onclcode=shash3.
shash v2 .val12 onclcode=flags3.
flags v2 =L0cass="line" nam L4">2 24 * CRC352Cu3av3.< *)val12 onclcode=des"3.
des"v3.<.val12 onclcode=Ltx3.
Ltx2 2 =Lval12 onclcode=L4"3.
L4"v3.2 24 *@Arti5cle{c5stagnass="line" nam L4">2 24 * auth5or =a542 2 LLLLLLLLval12 onclcode=err3.
errv3.< =Lval12 onclcode=L4ypto_shash_update3.
L4ypto_shash_updatev3.<(&val12 onclcode=des"3.
des"v3.<.val12 onclcode=shash3.
shash v2 ,Lval12 onclcode=address3.
addressv3.<, val12 onclcode=length3.
lengthv3.<)cass="line" nam L4">2 24 * auth55r =a552 2 LLLLLLLLval12 onclcode=BUG_ON3.
BUG_ONv3.<(aal12 onclcode=err3.
errv3.<)cass="line" nam L4">2 24 * auth56r =a56tagnass="line" nam L4">2 24 * auth57r =a572 2 LLLLLLLLm aja*(aal12 onclcode=u3class="comdref">u3av3.< *)val12 onclcode=des"3.
des"v3.<.val12 onclcode=Ltx3.
Ltx2 2 cass="line" nam L4">2 24 * auth58r =a582 2 }ass="line" nam L4">2 24 * auth59r =a59tagnass="line" nam L4">2 24/*2EXPORT_SYMBOLv3.<(aal12 onclcode=L4">2 3.
L4">2 v3.<)cass="line" nam L4">2 24/*22 24 * CRC362C v__initv3.< val12 onclcode= L4">2 _mcd_init3.
L4">2 _mcd_initv3.<(void)ass="line" nam L4">2 24 *@Arti6cle{c6stagn{ass="line" nam L4">2 24 * auth6or =a642 2 LLLLLLLLval12 onclcode=tfm3.
tfm v2 =Lval12 onclcode=L4ypto_alloc_shash3.
L4ypto_alloc_shashv3.<(a href="lib/lstring">"L4">2 " L4" cl, 0, 0)cass="line" nam L4">2 24 * auth65r =a652 2 LLLLLLLLif (aal12 onclcode=IS_ERR3.
IS_ERRv3.<(aal12 onclcode=tfm3.
tfm v2 ))ass="line" nam L4">2 24 * auth66r =a662 2 LLLLLLLLLLLLLLLLm ajaaal12 onclcode=PTR_ERR3.
PTR_ERRv3.<(aal12 onclcode=tfm3.
tfm v2 )cass="line" nam L4">2 24 * auth67r =a67tagnass="line" nam L4">2 24 * auth68r =a682 2 LLLLLLLLm aja0cass="line" nam L4">2 24 * auth69r =a692 2 }ass="line" nam L4">2 24/*22 24/*2 v__exitv3.< val12 onclcode= L4">2 _mcd_fini3.
L4">2 _mcd_finiv3.<(void)ass="line" nam L4">2 24 * CRC372C2 24 *@Arti7cle{c732 2 LLLLLLLLval12 onclcode=L4ypto_free_shash3.
L4ypto_free_shashv3.<(aal12 onclcode=tfm3.
tfm v2 )cass="line" nam L4">2 24 * auth7or =a742 2 }ass="line" nam L4">2 24 * auth75r =a75tagnass="line" nam L4">2 24 * auth76r =a76v3.mcdule_initv3.<(aal12 onclcode= L4">2 _mcd_init3.
L4">2 _mcd_initv3.<)cass="line" nam L4">2 24 * auth77r =a77v3.mcdule_exitv3.<(aal12 onclcode= L4">2 _mcd_fini3.
L4">2 _mcd_finiv3.<)cass="line" nam L4">2 24 * auth78r =a78tagnass="line" nam L4">2 24 * auth79r =a79v3.MODULE_AUTHORv3.<(a href="lib/lstring">"Clay Haapala <chaapala@cisco.comxr_sequot; L4" cl)cass="line" nam L4">2 24/*2MODULE_DESCRIPTIONv3.<(a href="lib/lstring">"C" idc (31.7.n val) calculaturnsequot; L4" cl)cass="line" nam L4">2 24/*2MODULE_LICENSEv3.<(a href="lib/lstring">"GPLequot; L4" cl)cass="line" nam L4">2 24 * CRC382C The origijaleLXR software by the ss="line"http://so aceLXR communityv3.<, nav experirc32aleversurn by ss="line"mailto:lxr@ src=.no"> xr@ src=.nov3.<. e_contets"3 xr. src=.no kindly hosted by ss="line"http://www.redpill- srpro.no">Redpill Lsrpro ASv3.<, provider of Lsrux consultiv 13