git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Mozilla SHA1 implementation

From
ETEdgar 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.
Previous: Linus TorvaldsNext: Paul Mackerras
Message 6 of 13 in “use gcrypt instead of libssl for hash”
  1. use gcrypt instead of libssl for hashJunichi Uekawa, Apr 17, 2005
  2. Linus TorvaldsApr 17, 2005
  3. Junichi UekawaApr 17, 2005
  4. Edgar ToernigApr 18, 2005
  5. Mozilla SHA1 implementationLinus Torvalds, Apr 21, 2005
  6. Edgar ToernigApr 21, 2005
  7. Paul MackerrasApr 22, 2005
  8. Paul MackerrasApr 22, 2005
  9. Linus TorvaldsApr 22, 2005
  10. Linus TorvaldsApr 22, 2005
  11. (anal) Q: Are there any coding styles or development guidelines?Klaus Robert Suetterlin, Apr 22, 2005
  12. Linus TorvaldsApr 22, 2005
  13. Daniel BarkalowApr 22, 2005

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.