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

Re: SHA1dc on mac

From
Junio C Hamano <gitster@pobox.com>
Date
Feb 12, 2020, 22:40 UTC
Message-ID
<xmqqk14rtonu.fsf@gitster-ct.c.googlers.com>
In-Reply-To
<20200212223122.svthiwmh3js7i47b@glandium.org>
Mike Hommey <mh@glandium.org> writes:
Show 11 quoted lines
> On Wed, Feb 12, 2020 at 11:46:31AM -0500, Eric Sunshine wrote:
>> On Wed, Feb 12, 2020 at 3:57 AM Mike Hommey <mh@glandium.org> wrote:
>> > If I'm not mistaken in my reading of the various files involved, it
>> > looks like for some reason, building git on mac leads to using Apple
>> > Common Crypto for SHA1, rather than SHA1dc, which seems unfortunate.
>> > Is that really expected?
>> 
>> There was a discussion on this topic a while back[1], and it does seem
>> that the behavior you describe is intentional[2].
>
> That discussion predates SHA1dc, though.

Yes, but the essense is the same. It was phrased as "is there a good reason to prefer CommonCrypto over block-sha1?" but it really was "is there a good reason to prefer CommonCrypto over the best we offer?" And the best we offer, which used to be block-sha1, is now sha1dc.

Previous: Mike HommeyNext: Mike Hommey
Message 4 of 17 in “SHA1dc on mac”
  1. Mike HommeyFeb 12, 2020
  2. Eric SunshineFeb 12, 2020
  3. Mike HommeyFeb 12, 2020
  4. Junio C HamanoFeb 12, 2020
  5. Remove non-SHA1dc sha1 implementationsMike Hommey, Feb 23, 2020
  6. Jeff KingFeb 24, 2020
  7. Jeff KingFeb 24, 2020
  8. ppc: remove custom SHA-1 implementationÆvar Arnfjörð Bjarmason, Mar 19, 2022
  9. Junio C HamanoMar 21, 2022
  10. ppc: remove custom SHA-1 implementationÆvar Arnfjörð Bjarmason, Mar 21, 2022
  11. brian m. carlsonMar 21, 2022
  12. 0/2 Makefile + hash.h: remove PPC_SHA1 implementationÆvar Arnfjörð Bjarmason, Aug 31, 2022
  13. 2/2 Makefile: use $(OBJECTS) instead of $(C_OBJ)Ævar Arnfjörð Bjarmason, Aug 31, 2022
  14. Junio C HamanoAug 31, 2022
  15. Ævar Arnfjörð BjarmasonSep 1, 2022
  16. Junio C HamanoSep 1, 2022
  17. 1/2 Makefile + hash.h: remove PPC_SHA1 implementationÆvar Arnfjörð Bjarmason, Aug 31, 2022

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.