Re: Mozilla SHA1 implementation
- From
- Edgar Toernig <froese@gmx.de>
- Date
- Apr 21, 2005, 22:59 UTC
- Message-ID
- <20050422005928.218a753a.froese@gmx.de>
- In-Reply-To
- <Pine.LNX.4.58.0504211238150.2344@ppc970.osdl.org>
Linus Torvalds wrote:
> > I've just integrated the Mozilla SHA1 library implementation into the > standard git archive
Thanks.
In the mood for another compatibility hack? My zlib doesn't have deflateBound and browsing through the git-ml archive it seems I'm not the only one. How about putting this snippet into some header file?
#if ZLIB_VERNUM < 0x1200 #define deflateBound(c,s) ((s) + (((s) + 7) >> 3) + (((s) + 63) >> 6) + 11) #endif
The formula is the conservative upper bound from zlib-1.2.2.
Ciao, ET.