linux/crypto/deflate.c
<<
on> /spa4.7 /form.7 a on> href="../linux+v3opt3/crypto/deflate.c">on> img src="../.static/gfx/right.png" alt=">>">on /spa4.7on spa4 class="lxr_search">on> on> input typon> input typon> butt3.1typSearch onclick="return ajax_prefs();">on> Prefs7 /a>on /spa4.7> /div.7> form ac3.14="ajax+*" method="post" onsubmit="return false;">on input typo> /form.7o> div class="headingbott3m"> div id/osearch_results" class="search_results"7 .7> /div.7 div id/ocontent">7 div id/ofile_contents".
   1 /a> spa4 class="comment">/* /spa4.7   2 /a> spa4 class="comment"> * Cryptographic API. /spa4.7   3 /a> spa4 class="comment"> * /spa4.7   4 /a> spa4 class="comment"> * Deflate algorithm (RFC 1951), implemented here primarily for use /spa4.7   5 /a> spa4 class="comment"> * by IPCOMP (RFC 3173 & RFC 2394). /spa4.7   6 /a> spa4 class="comment"> * /spa4.7   7 /a> spa4 class="comment"> * Copyright (c) 2003 Jam   8 /a> spa4 class="comment"> * /spa4.7   9 /a> spa4 class="comment"> * This program is free software; you ca4 redistribute it and/or modify it /spa4.7  alu=a> spa4 class="comment"> * under the terms of the GNU General Public License as published by the Free /spa4.7  11 /a> spa4 class="comment"> * Software Founda3.14; either versv3.12 of the License, or (at your   3.14) /spa4.7  12 /a> spa4 class="comment"> * any later versv3.. /spa4.7  13 /a> spa4 class="comment"> * /spa4.7  14 /a> spa4 class="comment"> * FIXME: deflate transforms will require up to a total of about 436k of kernel /spa4.7  15 /a> spa4 class="comment"> * memoryis 7h 1  6 /1> spa4 class="comment"> * /sp curr> * zlibnel /sp .com /spsotaworst casimare-alloc4; ei systemthe atea"7	pa4.7 1  7 /1> spa4 class="comment"> * Copy progneedsa tobe fixy tsolLiourLiceama3.tkernryis 7hire up d rogramperlya4.7 1  8 /1> spa4 class="comment"> * /sphir.c#Lda toLicel rnbits/or nryilevsp pais everspa4.7 1  9 /1> spa4 class="comment"> * Thia4.72 alu=2> spa4 class="comment"> * undeTiceatea"7	l rnbits/ern11 shoul tsund/m on packets,/or nnd/mayobe sood="otta4.72 11 /2> spa4 class="comment"> * Soft toentfigup tei a per-tfmthasroginoLicefu faepa4.7   12 /2> spa4 class="comment"> * anya4.72 13 /2> spa4 class="comment"> * /sp Curr> *ly, entclas. /s prots 7hrognod/marcoarcy thetweenoLfmtcalls,/osa4.72 14 /2> spa4 class="comment"> * FIXMnd/rognod/needy tuse MP (RFCor nkeepblLic .com sementr.  It redibca4.72 15 /2> spa4 class="comment"> * memoemented hereif sood id wa. 2  6 /2> spa4 class="comment"> * /sp/a4.7 2  7 /2> spa#incluom jmorref="crypincluomux+v3o/inndphass="line sof">x+v3o/inndph spa /sphref="crypto/deflate.c#L13" 2d/oL8" c2lass="line" nam 2  8 /28 spa#incluom jmorref="crypincluomux+v3o/fy ulephass="line sof">x+v3o/fy uleph spa /sphref="crypto/deflate.c#L13" 2d/oL9" c2lass="line" nam 2  9 /29 spa#incluom jmorref="crypincluomux+v3o/to/defphass="line sof">x+v3o/to/defph spa /sphref="crypto/deflate.c#L13" 3d/oL10" 3lass="line" nam3 alu=30 spa#incluom jmorref="crypincluomux+v3o/zlibphass="line sof">x+v3o/zlibph spa /sphref="crypto/deflate.c#L13" 3d/oL11" 3lass="line" nam3 11 /31 spa#incluom jmorref="crypincluomux+v3o/vmallocphass="line sof">x+v3o/vmallocph spa /sphref="crypto/deflate.c#L13" 3d/oL2" c3lass="line" nam 3 12 /32 spa#incluom jmorref="crypincluomux+v3o/inverrupdphass="line sof">x+v3o/inverrupdph spa /sphref="crypto/deflate.c#L13" 3d/oL3" cllass="line" nam   13 /33 spa#incluom jmorref="crypincluomux+v3o/fmphass="line sof">x+v3o/fmph spa /sphref="crypto/deflate.c#L13" 3d/oL14" 3lass="line" nam3 14 /34 spa#incluom jmorref="crypincluomux+v3o/nedphass="line sof">x+v3o/nedph spa /sphref="crypto/deflate.c#L13" 3d/oL15" 3lass="line" nam3 15 /3> spahref="crypto/deflate.c#L13" 3d/oL6" c3lass="line" nam 3  6 /3> spa#ate nahref="+pref.com=DEFLATE_DEF_LEVELass="searcsof">DEFLATE_DEF_LEVEL spa               ref="+pref.com=Z_DEFAULT_ (RFRESSIONass="searcsof">Z_DEFAULT_ (RFRESSION spahref="crypto/deflate.c#L13" 3d/oL7" c3lass="line" nam 3  7 /37 spa#ate nahref="+pref.com=DEFLATE_DEF_WINBITSass="searcsof">DEFLATE_DEF_WINBITS spa             11href="crypto/deflate.c#L13" 3d/oL8" c3lass="line" nam 3  8 /38 spa#ate nahref="+pref.com=DEFLATE_DEF_MEMLEVELass="searcsof">DEFLATE_DEF_MEMLEVEL spa            ref="+pref.com=MAX_MEM_LEVELass="searcsof">MAX_MEM_LEVEL spahref="crypto/deflate.c#L13" 3d/oL9" c3lass="line" nam 3  9 /39 spahref="crypto/deflate.c#L13" 4d/oL10" 4lass="line" nam4 alu=40 spastruct ref="+pref.com=ate.c#L_ctxass="searcsof">ate.c#L_ctx spa {href="crypto/deflate.c#L13" 4d/oL11" 4lass="line" nam4 11 /41 spa        struct ref="+pref.com=z_stream_sass="searcsof">z_stream_s spa ref="+pref.com=entc_streamass="searcsof">entc_stream spaphref="crypto/deflate.c#L13" 4d/oL2" c4lass="line" nam 4 12 /42 spa        struct ref="+pref.com=z_stream_sass="searcsof">z_stream_s spa ref="+pref.com=deentc_streamass="searcsof">deentc_stream spaphref="crypto/deflate.c#L13" 4d/oL3" c4lass="line" nam 4 13 /43 spa}phref="crypto/deflate.c#L13" 4d/oL4" cllass="line" nam   14 /44 spahref="crypto/deflate.c#L13" 4d/oL15" 4lass="line" nam4 15 /45 spast/gfxgint ref="+pref.com=ate.c#L_cntc_inndass="searcsof">ate.c#L_cntc_innd spa(struct ref="+pref.com=ate.c#L_ctxass="searcsof">ate.c#L_ctx spa *ref="+pref.com=etxass="searcsof">ctx spa)href="crypto/deflate.c#L13" 4d/oL6" c4lass="line" nam 4  6 /4> spa{href="crypto/deflate.c#L13" 4d/oL7" c4lass="line" nam 4  7 /47 spa        int ref="+pref.com=redass="searcsof">red spa = 0phref="crypto/deflate.c#L13" 4d/oL8" c4lass="line" nam 4  8 /48 spa        struct ref="+pref.com=z_stream_sass="searcsof">z_stream_s spa *ref="+pref.com=streamass="searcsof">stream spa = ; RFCref="+pref.com=etxass="searcsof">ctx spa- /spaef="+pref.com=entc_streamass="searcsof">entc_stream spaphref="crypto/deflate.c#L13" 4d/oL9" c4lass="line" nam 4  9 /49 spahref="crypto/deflate.c#L13" 5d/oL10" 5lass="line" nam5 alu=50 spa        ref="+pref.com=streamass="searcsof">stream spa- /spaef="+pref.com=work.7work.7vzalloc spa(ref="+pref.com=zlib_ate.c#L_work.7zlib_ate.c#L_work.75 11 /51 spa                                -ref="+pref.com=DEFLATE_DEF_WINBITSass="searcsof">DEFLATE_DEF_WINBITS spa,href="+pref.com=DEFLATE_DEF_MEMLEVELass="searcsof">DEFLATE_DEF_MEMLEVEL spa))phref="crypto/deflate.c#L13" 5d/oL2" c5lass="line" nam 5 12 /52 spa        if (!ref="+pref.com=streamass="searcsof">stream spa- /spaef="+pref.com=work.7work.7 5 13 /53 spa                ref="+pref.com=redass="searcsof">red spa = -ref="+pref.com=ENOMEMass="searcsof">ENOMEM spaphref="crypto/deflate.c#L13" 5d/oL4" c5lass="line" nam 5 14 /54 spa                goto ref="+pref.com=oudass="searcsof">oud spaphref="crypto/deflate.c#L13" 5d/oL5" cllass="line" nam   15 /55 spa        }href="crypto/deflate.c#L13" 5d/oL6" c5lass="line" nam 5  6 /56 spa        ref="+pref.com=redass="searcsof">red spa = ref="+pref.com=zlib_ate.c#LInnd2ass="searcsof">zlib_ate.c#LInnd2 spa(ref="+pref.com=streamass="searcsof">stream spa,href="+pref.com=DEFLATE_DEF_LEVELass="searcsof">DEFLATE_DEF_LEVEL spa,href="+pref.com=Z_DEFLATEDass="searcsof">Z_DEFLATED spa,href="crypto/deflate.c#L13" 5d/oL7" c5lass="line" nam 5  7 /57 spa                                -ref="+pref.com=DEFLATE_DEF_WINBITSass="searcsof">DEFLATE_DEF_WINBITS spa,href="+pref.com=DEFLATE_DEF_MEMLEVELass="searcsof">DEFLATE_DEF_MEMLEVEL spa,href="crypto/deflate.c#L13" 5d/oL8" c5lass="line" nam 5  8 /58 spa                                ref="+pref.com=Z_DEFAULT_STRATEGYass="searcsof">Z_DEFAULT_STRATEGY spa)phref="crypto/deflate.c#L13" 5d/oL9" c5lass="line" nam 5  9 /59 spa        if (ref="+pref.com=redass="searcsof">red spa != ref="+pref.com=Z_OKass="searcsof">Z_OK spa) {href="crypto/deflate.c#L13" 6d/oL10" 6lass="line" nam6 alu=60 spa                ref="+pref.com=redass="searcsof">red spa = -ref="+pref.com=EINVALass="searcsof">EINVAL spaphref="crypto/deflate.c#L13" 6d/oL11" 6lass="line" nam6 11 /61 spa                goto ref="+pref.com=oud_ sofass="searcsof">oud_ sof spaphref="crypto/deflate.c#L13" 6d/oL2" c6lass="line" nam 6 12 /62 spa        }href="crypto/deflate.c#L13" 6d/oL3" c6lass="line" nam 6 13 /6> spa4ef="+pref.com=oudass="searcsof">oud spa:href="crypto/deflate.c#L13" 6d/oL4" c6lass="line" nam 6 14 /64 spa        rn falsref="+pref.com=redass="searcsof">red spaphref="crypto/deflate.c#L13" 6d/oL5" c6lass="line" nam 6 15 /65 spa4ef="+pref.com=oud_ sofass="searcsof">oud_ sof spa:href="crypto/deflate.c#L13" 6d/oL6" cllass="line" nam    6 /66 spa        ref="+pref.com=v sofass="searcsof">v sof spa(ref="+pref.com=streamass="searcsof">stream spa- /spaef="+pref.com=work.7work.7 6  7 /67 spa        goto ref="+pref.com=oudass="searcsof">oud spaphref="crypto/deflate.c#L13" 6d/oL8" c6lass="line" nam 6  8 /68 spa}href="crypto/deflate.c#L13" 6d/oL9" c6lass="line" nam 6  9 /69 spahref="crypto/deflate.c#L13" 7d/oL10" 7lass="line" nam7 alu=70 spast/gfxgint ref="+pref.com=ate.c#L_deentc_inndass="searcsof">ate.c#L_deentc_innd spa(struct ref="+pref.com=ate.c#L_ctxass="searcsof">ate.c#L_ctx spa *ref="+pref.com=etxass="searcsof">ctx spa)href="crypto/deflate.c#L13" 7d/oL11" 7lass="line" nam7 11 /71 spa{href="crypto/deflate.c#L13" 7d/oL2" c7lass="line" nam 7 12 /72 spa        int ref="+pref.com=redass="searcsof">red spa = 0phref="crypto/deflate.c#L13" 7d/oL3" c7lass="line" nam 7 13 /73 spa        struct ref="+pref.com=z_stream_sass="searcsof">z_stream_s spa *ref="+pref.com=streamass="searcsof">stream spa = ; RFCref="+pref.com=etxass="searcsof">ctx spa- /spaef="+pref.com=deentc_streamass="searcsof">deentc_stream spaphref="crypto/deflate.c#L13" 7d/oL4" c7lass="line" nam 7 14 /74 spahref="crypto/deflate.c#L13" 7d/oL5" c7lass="line" nam 7 15 /75 spa        ref="+pref.com=streamass="searcsof">stream spa- /spaef="+pref.com=work.7work.7vzalloc spa(ref="+pref.com=zlib_ine.c#L_work.7zlib_ine.c#L_work.7 7  6 /76 spa        if (!ref="+pref.com=streamass="searcsof">stream spa- /spaef="+pref.com=work.7work.7    7 /77 spa                ref="+pref.com=redass="searcsof">red spa = -ref="+pref.com=ENOMEMass="searcsof">ENOMEM spaphref="crypto/deflate.c#L13" 7d/oL8" c7lass="line" nam 7  8 /78 spa                goto ref="+pref.com=oudass="searcsof">oud spaphref="crypto/deflate.c#L13" 7d/oL9" c7lass="line" nam 7  9 /79 spa        }href="crypto/deflate.c#L13" 8d/oL10" 8lass="line" nam8 alu=80 spa        ref="+pref.com=redass="searcsof">red spa = ref="+pref.com=zlib_ine.c#LInnd2ass="searcsof">zlib_ine.c#LInnd2 spa(ref="+pref.com=streamass="searcsof">stream spa,h-ref="+pref.com=DEFLATE_DEF_WINBITSass="searcsof">DEFLATE_DEF_WINBITS spa)phref="crypto/deflate.c#L13" 8d/oL11" 8lass="line" nam8 11 /81 spa        if (ref="+pref.com=redass="searcsof">red spa != ref="+pref.com=Z_OKass="searcsof">Z_OK spa) {href="crypto/deflate.c#L13" 8d/oL2" c8lass="line" nam 8 12 /82 spa                ref="+pref.com=redass="searcsof">red spa = -ref="+pref.com=EINVALass="searcsof">EINVAL spaphref="crypto/deflate.c#L13" 8d/oL3" c8lass="line" nam 8 13 /83 spa                goto ref="+pref.com=oud_ sofass="searcsof">oud_ sof spaphref="crypto/deflate.c#L13" 8d/oL4" c8lass="line" nam 8 14 /84 spa        }href="crypto/deflate.c#L13" 8d/oL5" c8lass="line" nam 8 15 /85 spa4ef="+pref.com=oudass="searcsof">oud spa:href="crypto/deflate.c#L13" 8d/oL6" c8lass="line" nam 8  6 /86 spa        rn falsref="+pref.com=redass="searcsof">red spaphref="crypto/deflate.c#L13" 8d/oL7" c8lass="line" nam 8  7 /87 spa4ef="+pref.com=oud_ sofass="searcsof">oud_ sof spa:href="crypto/deflate.c#L13" 8d/oL8" cllass="line" nam    8 /88 spa        ref="+pref.com=v sofass="searcsof">v sof spa(ref="+pref.com=streamass="searcsof">stream spa- /spaef="+pref.com=work.7work.7 8  9 /89 spa        goto ref="+pref.com=oudass="searcsof">oud spaphref="crypto/deflate.c#L13" 9d/oL10" 9lass="line" nam9 alu=90 spa}href="crypto/deflate.c#L13" 9d/oL11" 9lass="line" nam9 11 /91 spahref="crypto/deflate.c#L13" 9d/oL2" c9lass="line" nam 9 12 /92 spast/gfxgvoid ref="+pref.com=ate.c#L_cntc_exndass="searcsof">ate.c#L_cntc_exnd spa(struct ref="+pref.com=ate.c#L_ctxass="searcsof">ate.c#L_ctx spa *ref="+pref.com=etxass="searcsof">ctx spa)href="crypto/deflate.c#L13" 9d/oL3" c9lass="line" nam 9 13 /93 spa{href="crypto/deflate.c#L13" 9d/oL4" c9lass="line" nam 9 14 /94 spa        ref="+pref.com=zlib_ate.c#LEndass="searcsof">zlib_ate.c#LEnd spa(; RFCref="+pref.com=etxass="searcsof">ctx spa- /spaef="+pref.com=entc_streamass="searcsof">entc_stream spa)phref="crypto/deflate.c#L13" 9d/oL5" c9lass="line" nam 9 15 /95 spa        ref="+pref.com=v sofass="searcsof">v sof spa(ref="+pref.com=etxass="searcsof">ctx spa- /spaef="+pref.com=entc_streamass="searcsof">entc_stream spa.aef="+pref.com=work.7work.7 9  6 /96 spa}href="crypto/deflate.c#L13" 9d/oL7" c9lass="line" nam 9  7 /97 spahref="crypto/deflate.c#L13" 9d/oL8" c9lass="line" nam 9  8 /98 spast/gfxgvoid ref="+pref.com=ate.c#L_deentc_exndass="searcsof">ate.c#L_deentc_exnd spa(struct ref="+pref.com=ate.c#L_ctxass="searcsof">ate.c#L_ctx spa *ref="+pref.com=etxass="searcsof">ctx spa)href="crypto/deflate.c#L13" 9d/oL9" cllass="line" nam    9 /99 spa{href="crypto/deflate.c#L13" 10d/oL10" cllass="line" nam   alu    spa        ref="+pref.com=zlib_ine.c#LEndass="searcsof">zlib_ine.c#LEnd spa(; RFCref="+pref.com=etxass="searcsof">ctx spa- /spaef="+pref.com=deentc_streamass="searcsof">deentc_stream spa)phref="crypto/deflate.c#L13" 10d/oL11" c0lass="line" nam 01alu  1 spa        ref="+pref.com=v sofass="searcsof">v sof spa(ref="+pref.com=etxass="searcsof">ctx spa- /spaef="+pref.com=deentc_streamass="searcsof">deentc_stream spa.aef="+pref.com=work.7work.7 02alu  2 spa}href="crypto/deflate.c#L13" 10d/oL13" c0lass="line" nam 03alu  3 spahref="crypto/deflate.c#L13" 10d/oL14" c0lass="line" nam 04alu  4 spast/gfxgint ref="+pref.com=ate.c#L_inndass="searcsof">ate.c#L_innd spa(struct ref="+pref.com=to/def_tfmass="searcsof">eo/def_tfm spa *ref="+pref.com=tfmass="searcsof">tfm spa)href="crypto/deflate.c#L13" 10d/oL15" c0lass="line" nam 05alu  5 spa{href="crypto/deflate.c#L13" 10d/oL6" c10lass="line" nam 106alu  6 spa        struct ref="+pref.com=ate.c#L_ctxass="searcsof">ate.c#L_ctx spa *ref="+pref.com=etxass="searcsof">ctx spa = ref="+pref.com=eo/def_tfm_ctxass="searcsof">eo/def_tfm_ctx spa(ref="+pref.com=tfmass="searcsof">tfm spa)phref="crypto/deflate.c#L13" 10d/oL7" c10lass="line" nam 107alu  7 spa        int ref="+pref.com=redass="searcsof">red spaphref="crypto/deflate.c#L13" 10d/oL8" c10lass="line" nam 108alu  8 spahref="crypto/deflate.c#L13" 10d/oL9" c10lass="line" nam 109alu  9 spa        ref="+pref.com=redass="searcsof">red spa = ref="+pref.com=ate.c#L_cntc_inndass="searcsof">ate.c#L_cntc_innd spa(ref="+pref.com=etxass="searcsof">ctx spa)phref="crypto/deflate.c#L13" 1id/oL10" cclass="line" nam   alu11  spa        if (ref="+pref.com=redass="searcsof">red spa)href="crypto/deflate.c#L13" 1id/oL11" cllass="line" nam  1alu 11 spa                goto ref="+pref.com=oudass="searcsof">oud spaphref="crypto/deflate.c#L13" 1id/oL12" cclass="line" nam   12 112 spa        ref="+pref.com=redass="searcsof">red spa = ref="+pref.com=ate.c#L_deentc_inndass="searcsof">ate.c#L_deentc_innd spa(ref="+pref.com=etxass="searcsof">ctx spa)phref="crypto/deflate.c#L13" 1id/oL13" cclass="line" nam   13 113 spa        if (ref="+pref.com=redass="searcsof">red spa)href="crypto/deflate.c#L13" 1id/oL14" cclass="line" nam   14 114 spa                ref="+pref.com=ate.c#L_cntc_exndass="searcsof">ate.c#L_cntc_exnd spa(ref="+pref.com=etxass="searcsof">ctx spa)phref="crypto/deflate.c#L13" 1id/oL15" cclass="line" nam   15 115 spa4ef="+pref.com=oudass="searcsof">oud spa:href="crypto/deflate.c#L13" 1id/oL6" c11lass="line" nam 11  6 116 spa        rn falsref="+pref.com=redass="searcsof">red spaphref="crypto/deflate.c#L13" 1id/oL7" c11lass="line" nam 11  7 11> spa}href="crypto/deflate.c#L13" 1id/oL8" c11lass="line" nam 11  8 118 spahref="crypto/deflate.c#L13" 1id/oL9" c11lass="line" nam 11  9 11> spast/gfxgvoid ref="+pref.com=ate.c#L_exndass="searcsof">ate.c#L_exnd spa(struct ref="+pref.com=to/def_tfmass="searcsof">eo/def_tfm spa *ref="+pref.com=tfmass="searcsof">tfm spa)href="crypto/deflate.c#L13" 1dd/oL10" 12lass="line" nam12 alu12> spa{href="crypto/deflate.c#L13" 1dd/oL11" 12lass="line" nam12 11 121 spa        struct ref="+pref.com=ate.c#L_ctxass="searcsof">ate.c#L_ctx spa *ref="+pref.com=etxass="searcsof">ctx spa = ref="+pref.com=eo/def_tfm_ctxass="searcsof">eo/def_tfm_ctx spa(ref="+pref.com=tfmass="searcsof">tfm spa)phref="crypto/deflate.c#L13" 12d/oL12" cllass="line" nam   12 12> spahref="crypto/deflate.c#L13" 12d/oL13" c2lass="line" nam12 13 123 spa        ref="+pref.com=ate.c#L_cntc_exndass="searcsof">ate.c#L_cntc_exnd spa(ref="+pref.com=etxass="searcsof">ctx spa)phref="crypto/deflate.c#L13" 12d/oL14" 12lass="line" nam12 14 124 spa        ref="+pref.com=ate.c#L_deentc_exndass="searcsof">ate.c#L_deentc_exnd spa(ref="+pref.com=etxass="searcsof">ctx spa)phref="crypto/deflate.c#L13" 12d/oL15" c2lass="line" nam12 15 12> spa}href="crypto/deflate.c#L13" 12d/oL6" c12lass="line" nam 12  6 12> spahref="crypto/deflate.c#L13" 12d/oL7" c12lass="line" nam 12  7 12> spast/gfxgint ref="+pref.com=ate.c#L_cntclas.ass="searcsof">ate.c#L_cntclas. spa(struct ref="+pref.com=to/def_tfmass="searcsof">eo/def_tfm spa *ref="+pref.com=tfmass="searcsof">tfm spa, ennst ref="+pref.com=u8ass="searcsof">u8 spa *ref="+pref.com=srcass="searcsof">src spa,href="crypto/deflate.c#L13" 12d/oL8" c12lass="line" nam 12  8 128 spa                            unsigcy tint ref="+pref.com=slnamslna spa, ref="+pref.com=u8ass="searcsof">u8 spa *ref="+pref.com=dsdass="searcsof">ast spa, unsigcy tint *ref="+pref.com=dlnamdlna spa)href="crypto/deflate.c#L13" 1dd/oL9" c12lass="line" nam 12  9 129 spa{href="crypto/deflate.c#L13" 13d/oL10" 13lass="line" nam13 alu13  spa        int ref="+pref.com=redass="searcsof">red spa = 0phref="crypto/deflate.c#L13" 13d/oL11" 13lass="line" nam13 11 131 spa        struct ref="+pref.com=ate.c#L_ctxass="searcsof">ate.c#L_ctx spa *ref="+pref.com=dctxass="searcsof">actx spa = ref="+pref.com=eo/def_tfm_ctxass="searcsof">eo/def_tfm_ctx spa(ref="+pref.com=tfmass="searcsof">tfm spa)phref="crypto/deflate.c#L13" 13d/oL2" c13lass="line" nam 13 12 132 spa        struct ref="+pref.com=z_stream_sass="searcsof">z_stream_s spa *ref="+pref.com=streamass="searcsof">stream spa = ; RFCref="+pref.com=dctxass="searcsof">actx spa- /spaef="+pref.com=entc_streamass="searcsof">entc_stream spaphref="crypto/deflate.c#L13" 13d/oL3" c1llass="line" nam 1  13 133 spahref="crypto/deflate.c#L13" 13d/oL14" 13lass="line" nam13 14 134 spa        ref="+pref.com=redass="searcsof">red spa = ref="+pref.com=zlib_ate.c#LResedass="searcsof">zlib_ate.c#LResed spa(ref="+pref.com=streamass="searcsof">stream spa)phref="crypto/deflate.c#L13" 13d/oL15" c3lass="line" nam13 15 135 spa        if (ref="+pref.com=redass="searcsof">red spa != ref="+pref.com=Z_OKass="searcsof">Z_OK spa) {href="crypto/deflate.c#L13" 13d/oL6" c13lass="line" nam 13  6 136 spa                ref="+pref.com=redass="searcsof">red spa = -ref="+pref.com=EINVALass="searcsof">EINVAL spaphref="crypto/deflate.c#L13" 13d/oL7" c13lass="line" nam 13  7 137 spa                goto ref="+pref.com=oudass="searcsof">oud spaphref="crypto/deflate.c#L13" 13d/oL8" c13lass="line" nam 13  8 138 spa        }href="crypto/deflate.c#L13" 13d/oL9" c13lass="line" nam 13  9 139 spahref="crypto/deflate.c#L13" 14d/oL10" 14lass="line" nam14 alu140 spa        ref="+pref.com=streamass="searcsof">stream spa- /spaef="+pref.com=next_iamnext_ia spa = (ref="+pref.com=u8ass="searcsof">u8 spa *)ref="+pref.com=srcass="searcsof">src spaphref="crypto/deflate.c#L13" 14d/oL11" 14lass="line" nam14 11 141 spa        ref="+pref.com=streamass="searcsof">stream spa- /spaef="+pref.com=avail_iamavail_ia spa = ref="+pref.com=slnamslna spaphref="crypto/deflate.c#L13" 14d/oL2" c14lass="line" nam 14 12 142 spa        ref="+pref.com=streamass="searcsof">stream spa- /spaef="+pref.com=next_oudass="searcsof">next_oud spa = (ref="+pref.com=u8ass="searcsof">u8 spa *)ref="+pref.com=dsdass="searcsof">ast spaphref="crypto/deflate.c#L13" 14d/oL3" c14lass="line" nam 14 13 143 spa        ref="+pref.com=streamass="searcsof">stream spa- /spaef="+pref.com=avail_oudass="searcsof">avail_oud spa = *ref="+pref.com=dlnamdlna spaphref="crypto/deflate.c#L13" 14d/oL14" cllass="line" nam   14 144 spahref="crypto/deflate.c#L13" 14d/oL15" 14lass="line" nam14 15 145 spa        ref="+pref.com=redass="searcsof">red spa = ref="+pref.com=zlib_ate.c#Lass="searcsof">zlib_ate.c#L spa(ref="+pref.com=streamass="searcsof">stream spa,href="+pref.com=Z_FINISHass="searcsof">Z_FINISH spa)phref="crypto/deflate.c#L13" 14d/oL6" c14lass="line" nam 14  6 146 spa        if (ref="+pref.com=redass="searcsof">red spa != ref="+pref.com=Z_STREAM_ENDass="searcsof">Z_STREAM_END spa) {href="crypto/deflate.c#L13" 14d/oL7" c14lass="line" nam 14  7 147 spa                ref="+pref.com=redass="searcsof">red spa = -ref="+pref.com=EINVALass="searcsof">EINVAL spaphref="crypto/deflate.c#L13" 14d/oL8" c14lass="line" nam 14  8 148 spa                goto ref="+pref.com=oudass="searcsof">oud spaphref="crypto/deflate.c#L13" 14d/oL9" c14lass="line" nam 14  9 149 spa        }href="crypto/deflate.c#L13" 15d/oL10" 15lass="line" nam15 alu150 spa        ref="+pref.com=redass="searcsof">red spa = 0phref="crypto/deflate.c#L13" 15d/oL11" 15lass="line" nam15 11 151 spa        *ref="+pref.com=dlnamdlna spa = ref="+pref.com=streamass="searcsof">stream spa- /spaef="+pref.com=l of _oudass="searcsof">l of _oud spaphref="crypto/deflate.c#L13" 15d/oL2" c15lass="line" nam 15 12 152 spa4ef="+pref.com=oudass="searcsof">oud spa:href="crypto/deflate.c#L13" 15d/oL3" c15lass="line" nam 15 13 153 spa        rn falsref="+pref.com=redass="searcsof">red spaphref="crypto/deflate.c#L13" 15d/oL4" c15lass="line" nam 15 14 154 spa}href="crypto/deflate.c#L13" 15d/oL15" 1llass="line" nam 1  15 15> spahref="crypto/deflate.c#L13" 15d/oL6" c15lass="line" nam 15  6 156 spast/gfxgint ref="+pref.com=ate.c#L_deentclas.ass="searcsof">ate.c#L_deentclas. spa(struct ref="+pref.com=to/def_tfmass="searcsof">eo/def_tfm spa *ref="+pref.com=tfmass="searcsof">tfm spa, ennst ref="+pref.com=u8ass="searcsof">u8 spa *ref="+pref.com=srcass="searcsof">src spa,href="crypto/deflate.c#L13" 15d/oL7" c15lass="line" nam 15  7 157 spa                              unsigcy tint ref="+pref.com=slnamslna spa, ref="+pref.com=u8ass="searcsof">u8 spa *ref="+pref.com=dsdass="searcsof">ast spa, unsigcy tint *ref="+pref.com=dlnamdlna spa)href="crypto/deflate.c#L13" 15d/oL8" c15lass="line" nam 15  8 158 spa{href="crypto/deflate.c#L13" 15d/oL9" c15lass="line" nam 15  9 159 spahref="crypto/deflate.c#L13" 16d/oL10" 16lass="line" nam16 alu16  spa        int ref="+pref.com=redass="searcsof">red spa = 0phref="crypto/deflate.c#L13" 16d/oL11" 16lass="line" nam16 11 161 spa        struct ref="+pref.com=ate.c#L_ctxass="searcsof">ate.c#L_ctx spa *ref="+pref.com=dctxass="searcsof">actx spa = ref="+pref.com=eo/def_tfm_ctxass="searcsof">eo/def_tfm_ctx spa(ref="+pref.com=tfmass="searcsof">tfm spa)phref="crypto/deflate.c#L13" 16d/oL2" c16lass="line" nam 16 12 162 spa        struct ref="+pref.com=z_stream_sass="searcsof">z_stream_s spa *ref="+pref.com=streamass="searcsof">stream spa = ; RFCref="+pref.com=dctxass="searcsof">actx spa- /spaef="+pref.com=deentc_streamass="searcsof">deentc_stream spaphref="crypto/deflate.c#L13" 16d/oL3" c16lass="line" nam 16 13 163 spahref="crypto/deflate.c#L13" 16d/oL4" c16lass="line" nam 16 14 164 spa        ref="+pref.com=redass="searcsof">red spa = ref="+pref.com=zlib_ine.c#LResedass="searcsof">zlib_ine.c#LResed spa(ref="+pref.com=streamass="searcsof">stream spa)phref="crypto/deflate.c#L13" 16d/oL5" c16lass="line" nam 16 15 165 spa        if (ref="+pref.com=redass="searcsof">red spa != ref="+pref.com=Z_OKass="searcsof">Z_OK spa) {href="crypto/deflate.c#L13" 16d/oL6" c1llass="line" nam 1   6 166 spa                ref="+pref.com=redass="searcsof">red spa = -ref="+pref.com=EINVALass="searcsof">EINVAL spaphref="crypto/deflate.c#L13" 16d/oL7" c16lass="line" nam 16  7 167 spa                goto ref="+pref.com=oudass="searcsof">oud spaphref="crypto/deflate.c#L13" 16d/oL8" c16lass="line" nam 16  8 168 spa        }href="crypto/deflate.c#L13" 16d/oL9" c16lass="line" nam 16  9 169 spahref="crypto/deflate.c#L13" 17d/oL10" 17lass="line" nam17 alu170 spa        ref="+pref.com=streamass="searcsof">stream spa- /spaef="+pref.com=next_iamnext_ia spa = (ref="+pref.com=u8ass="searcsof">u8 spa *)ref="+pref.com=srcass="searcsof">src spaphref="crypto/deflate.c#L13" 17d/oL11" 17lass="line" nam17 11 171 spa        ref="+pref.com=streamass="searcsof">stream spa- /spaef="+pref.com=avail_iamavail_ia spa = ref="+pref.com=slnamslna spaphref="crypto/deflate.c#L13" 17d/oL2" c17lass="line" nam 17 12 172 spa        ref="+pref.com=streamass="searcsof">stream spa- /spaef="+pref.com=next_oudass="searcsof">next_oud spa = (ref="+pref.com=u8ass="searcsof">u8 spa *)ref="+pref.com=dsdass="searcsof">ast spaphref="crypto/deflate.c#L13" 17d/oL3" c17lass="line" nam 17 13 173 spa        ref="+pref.com=streamass="searcsof">stream spa- /spaef="+pref.com=avail_oudass="searcsof">avail_oud spa = *ref="+pref.com=dlnamdlna spaphref="crypto/deflate.c#L13" 17d/oL4" c17lass="line" nam 17 14 174 spahref="crypto/deflate.c#L13" 17d/oL5" c17lass="line" nam 17 15 175 spa        ref="+pref.com=redass="searcsof">red spa = ref="+pref.com=zlib_ine.c#Lass="searcsof">zlib_ine.c#L spa(ref="+pref.com=streamass="searcsof">stream spa,href="+pref.com=Z_SYNC_FLUSHass="searcsof">Z_SYNC_FLUSH spa)phref="crypto/deflate.c#L13" 17d/oL6" c17lass="line" nam 17  6 176 spa        4 class="comment">/* /spa4.7 1   7 17> spa4 class="comment"> * Cooooooooo* Work ara3.1 a bugginozlib, which sood=iMorrwa. 17  8 17> spa4 class="comment"> * /soooooooo* bylgowhedibcing /spdginoLice(3.1ocued her) rawlate tranmcompa4.7 17  9 17> spa4 class="comment"> * Thoooooooo* (From USAGIspa4.718 alu18> spa4 class="comment"> * unoooooooo*/a4.718 11 181 spa        if (ref="+pref.com=redass="searcsof">red spa == ref="+pref.com=Z_OKass="searcsof">Z_OK spa ; RFC; RFC !ref="+pref.com=streamass="searcsof">stream spa- /spaef="+pref.com=avail_iamavail_ia spa ; RFC; RFC ref="+pref.com=streamass="searcsof">stream spa- /spaef="+pref.com=avail_oudass="searcsof">avail_oud spa) {href="crypto/deflate.c#L13" 18d/oL2" c18lass="line" nam 18 12 182 spa                ref="+pref.com=u8ass="searcsof">u8 spa ref="+pref.com=zerostuffass="searcsof">zerostuff spa = 0phref="crypto/deflate.c#L13" 18d/oL3" c18lass="line" nam 18 13 183 spa                ref="+pref.com=streamass="searcsof">stream spa- /spaef="+pref.com=next_iamnext_ia spa = ; RFCref="+pref.com=zerostuffass="searcsof">zerostuff spaphref="crypto/deflate.c#L13" 18d/oL4" c18lass="line" nam 18 14 184 spa                ref="+pref.com=streamass="searcsof">stream spa- /spaef="+pref.com=avail_iamavail_ia spa = 1phref="crypto/deflate.c#L13" 18d/oL5" c18lass="line" nam 18 15 185 spa                ref="+pref.com=redass="searcsof">red spa = ref="+pref.com=zlib_ine.c#Lass="searcsof">zlib_ine.c#L spa(ref="+pref.com=streamass="searcsof">stream spa,href="+pref.com=Z_FINISHass="searcsof">Z_FINISH spa)phref="crypto/deflate.c#L13" 18d/oL6" c18lass="line" nam 18  6 186 spa        }href="crypto/deflate.c#L13" 18d/oL7" c18lass="line" nam 18  7 187 spa        if (ref="+pref.com=redass="searcsof">red spa != ref="+pref.com=Z_STREAM_ENDass="searcsof">Z_STREAM_END spa) {href="crypto/deflate.c#L13" 18d/oL8" c1llass="line" nam 1   8 188 spa                ref="+pref.com=redass="searcsof">red spa = -ref="+pref.com=EINVALass="searcsof">EINVAL spaphref="crypto/deflate.c#L13" 18d/oL9" c18lass="line" nam 18  9 189 spa                goto ref="+pref.com=oudass="searcsof">oud spaphref="crypto/deflate.c#L13" 19d/oL10" 19lass="line" nam19 alu190 spa        }href="crypto/deflate.c#L13" 19d/oL11" 19lass="line" nam19 11 191 spa        ref="+pref.com=redass="searcsof">red spa = 0phref="crypto/deflate.c#L13" 19d/oL2" c19lass="line" nam 19 12 192 spa        *ref="+pref.com=dlnamdlna spa = ref="+pref.com=streamass="searcsof">stream spa- /spaef="+pref.com=l of _oudass="searcsof">l of _oud spaphref="crypto/deflate.c#L13" 19d/oL3" c19lass="line" nam 19 13 19> spa4ef="+pref.com=oudass="searcsof">oud spa:href="crypto/deflate.c#L13" 19d/oL4" c19lass="line" nam 19 14 194 spa        rn falsref="+pref.com=redass="searcsof">red spaphref="crypto/deflate.c#L13" 19d/oL5" c19lass="line" nam 19 15 19> spa}href="crypto/deflate.c#L13" 19d/oL6" c19lass="line" nam 19  6 19> spahref="crypto/deflate.c#L13" 19d/oL7" c19lass="line" nam 19  7 19> spast/gfxgstruct ref="+pref.com=to/def_algass="searcsof">eo/def_alg spa ref="+pref.com=algass="searcsof">alg spa = {href="crypto/deflate.c#L13" 19d/oL8" c19lass="line" nam 19  8 198 spa        .aef="+pref.com=cra_/oL8ass="searcsof">eoa_/oL8 spa               = 4 class="commbuteng">"ate.c#L"a4.7 1   9 199 spa        .aef="+pref.com=cra_e.cgsass="searcsof">cra_e.cgs spa              = ref="+pref.com=CRYPTO_ALG_TYPE_ (RFRESSass="searcsof">CRYPTO_ALG_TYPE_ (RFRESS spa,href="crypto/deflate.c#L13" 20d/oL10" 2llass="line" nam2  alu2   spa        .aef="+pref.com=cra_ctxsizeass="searcsof">cra_ctxsize spa            = sizeof(struct ref="+pref.com=ate.c#L_ctxass="searcsof">ate.c#L_ctx spa),href="crypto/deflate.c#L13" 20d/oL11" 20lass="line" nam201alu2 1 spa        .aef="+pref.com=cra_fy uleass="searcsof">cra_fy ule spa             = ref="+pref.com=THIS_MODULEass="searcsof">THIS_MODULE spa,href="crypto/deflate.c#L13" 20d/oL2" cl0lass="line" nam202alu202 spa        .aef="+pref.com=cra_lisdass="searcsof">cra_lisd spa               = 4ef="+pref.com=LIST_HEAD_INITass="searcsof">LIST_HEAD_INIT spa(ref="+pref.com=algass="searcsof">alg spa.aef="+pref.com=cra_lisdass="searcsof">cra_lisd spa),href="crypto/deflate.c#L13" 20d/oL13" 20lass="line" nam203alu203 spa        .aef="+pref.com=cra_inndass="searcsof">cra_innd spa               = 4ef="+pref.com=ate.c#L_inndass="searcsof">ate.c#L_innd spa,href="crypto/deflate.c#L13" 20d/oL14" 20lass="line" nam204alu204 spa        .aef="+pref.com=cra_exndass="searcsof">cra_exnd spa               = 4ef="+pref.com=ate.c#L_exndass="searcsof">ate.c#L_exnd spa,href="crypto/deflate.c#L13" 205/oL14" 20lass="line" nam 205alu205 spa        .aef="+pref.com=cra_uass="searcsof">cra_u spa                  = { .aef="+pref.com=cntclas.ass="searcsof">entclas. spa = {href="crypto/deflate.c#L13" 20d/oL6" c20lass="line" nam 206alu2 6 spa        .aef="+pref.com=cna_cntclas.ass="searcsof">cna_cntclas. spa           = ref="+pref.com=ate.c#L_cntclas.ass="searcsof">ate.c#L_cntclas. spa,href="crypto/deflate.c#L13" 20d/oL7" c20lass="line" nam 207alu2 7 spa        .aef="+pref.com=cna_deentclas.ass="searcsof">cna_deentclas. spa         = ref="+pref.com=ate.c#L_deentclas.ass="searcsof">ate.c#L_deentclas. spa } }href="crypto/deflate.c#L13" 20d/oL8" c20lass="line" nam 208alu2 8 spa}phref="crypto/deflate.c#L13" 20d/oL9" c20lass="line" nam 209alu209 spahref="crypto/deflate.c#L13" 2id/oL10" 2class="line" nam2  alu210 spast/gfxgint ref="+pref.com=__inndass="searcsof">__innd spa ref="+pref.com=ate.c#L_fy _inndass="searcsof">ate.c#L_fy _innd spa(void)href="crypto/deflate.c#L13" 2id/oL11" 2llass="line" nam2 1alu211 spa{href="crypto/deflate.c#L13" 2id/oL12" 2class="line" nam2  12 212 spa        rn falsref="+pref.com=eo/def_regisder_algass="searcsof">eo/def_regisder_alg spa(; RFCref="+pref.com=algass="searcsof">alg spa)phref="crypto/deflate.c#L13" 2id/oL13" 2class="line" nam2  13 213 spa}href="crypto/deflate.c#L13" 2id/oL14" 2class="line" nam2  14 214 spahref="crypto/deflate.c#L13" 2id/oL15" 2class="line" nam2  15 215 spast/gfxgvoid ref="+pref.com=__exndass="searcsof">__exnd spa ref="+pref.com=ate.c#L_fy _finnass="searcsof">ate.c#L_fy _finn spa(void)href="crypto/deflate.c#L13" 2id/oL6" c21lass="line" nam 21  6 21> spa{href="crypto/deflate.c#L13" 2id/oL7" c21lass="line" nam 21  7 217 spa        ref="+pref.com=eo/def_unregisder_algass="searcsof">eo/def_unregisder_alg spa(; RFCref="+pref.com=algass="searcsof">alg spa)phref="crypto/deflate.c#L13" 2id/oL8" c21lass="line" nam 21  8 218 spa}href="crypto/deflate.c#L13" 2id/oL9" c21lass="line" nam 21  9 219 spahref="crypto/deflate.c#L13" 2dd/oL10" 22lass="line" nam22 alu22> sparef="+pref.com=fy ule_inndass="searcsof">fy ule_innd spa(ref="+pref.com=ate.c#L_fy _inndass="searcsof">ate.c#L_fy _innd spa)phref="crypto/deflate.c#L13" 2dd/oL11" 22lass="line" nam22 11 221 sparef="+pref.com=fy ule_exndass="searcsof">fy ule_exnd spa(ref="+pref.com=ate.c#L_fy _finnass="searcsof">ate.c#L_fy _finn spa)phref="crypto/deflate.c#L13" 2dd/oL12" 2llass="line" nam2  12 22> spahref="crypto/deflate.c#L13" 22d/oL13" 22lass="line" nam22 13 22> spa4ef="+pref.com=MODULE_LICENSEass="searcsof">MODULE_LICENSE spa(r class="commbuteng">"GPL"a4.722 14 224 spa4ef="+pref.com=MODULE_DESCRIPTIONass="searcsof">MODULE_DESCRIPTION spa(r class="commbuteng">"Dte tranCntclas.ion Algorithm for IP (RF"a4.722 15 225 spa4ef="+pref.com=MODULE_AUTHORass="searcsof">MODULE_AUTHOR spa(r class="commbuteng">"JaMorrMorris jmorjmorris@inter.com.ent.au /sp"a4.7 22  6 22> spahref="crypto/deflate.c#L13" 22d/oL7" c22lass="line" nam 22  7 22> spa


The original LXR software byoLiceref="cryphttp://sourceforge.net/clojects/lxr">LXR ent"unndy spa,hthis experi"> *al ver.ion byoref="crypmailto:lxr@" nux.no">lxr@" nux.no spa.
lxr." nux.no kindly hosded byoref="cryphttp://www.redpill-" nclo.no">Redpill L nclo AS spa,hclovider of L nux ennsulting and oper/gfnns servicorrsince 1995.