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

Re: Suggestion on hashing

From
Nguyen Thai Ngoc Duy <pclouds@gmail.com>
Date
Dec 6, 2011, 04:46 UTC
Message-ID
<CACsJy8CM8xqWxTx14QbY+-bT=306p3U=6gJfRaW=dDD-Swo7-w@mail.gmail.com>
In-Reply-To
<alpine.DEB.2.00.1112060146121.15104@hoki.goeswhere.com>
On Tue, Dec 6, 2011 at 8:56 AM, Chris West (Faux) <faux@goeswhere.com> wrote:
Show 9 quoted lines
>
> Nguyen Thai Ngoc Duy wrote:
>>
>> SHA-1 charateristics (like 20 byte length) are hard coded everywhere
>> in git, it'd be a big audit.
>
>
> I was planning to look at this anyway.  My branch[1] allows
>  init/add/commit with SHA-256, SHA-512 and all the SHA-3 candidates.
Great!
> log/fsck/etc. are all broken.  Don't even dare try packs.  Fixing things
>  is painful but not impossible.  I'm not convinced the task is even
>  remotely insurmountable.

It would take more work, but after you're done with code changes, you should have a look at updating the test suite. We have many SHA-1s there. If the test suite passes, your job is (beautifully) done.

-- 
Duy
Previous: Bill ZaumenNext: Bill Zaumen
Message 6 of 14 in “Re: Suggestion on hashing”
  1. Nguyen Thai Ngoc DuyDec 2, 2011
  2. Jeff KingDec 2, 2011
  3. Bill ZaumenDec 3, 2011
  4. Chris West (Faux)Dec 6, 2011
  5. Bill ZaumenDec 6, 2011
  6. Nguyen Thai Ngoc DuyDec 6, 2011
  7. Bill ZaumenDec 6, 2011
  8. Nguyen Thai Ngoc DuyDec 6, 2011
  9. Bill ZaumenDec 7, 2011
  10. Jeff KingDec 2, 2011
  11. Bill ZaumenDec 3, 2011
  12. Jeff KingDec 3, 2011
  13. Philip OakleyDec 3, 2011
  14. Bill ZaumenDec 3, 2011

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.