This is an archive of the discontinued Mercurial Phabricator instance.

sha1: provide wrapper functions around the SHA-1 implementation
ClosedPublic

Authored by simpkins on Aug 8 2017, 4:20 PM.
Tags
None
Subscribers
None

Details

Summary

Add a clib/sha1.h file with SHA-1 utility functions that hide the details of
the underlying SHA-1 implementation being used. This will make it easier in
the future if we want to use the faster SHA-1 implementation from OpenSSL if it
is available, but fall back to the sha1collisiondetection library if it is not
available.

Test Plan

Confirmed the code builds and passes unit tests.

Diff Detail

Repository
rFBHGX Facebook Mercurial Extensions
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

simpkins created this revision.Aug 8 2017, 4:20 PM
Herald added a reviewer: Restricted Project. · View Herald TranscriptAug 8 2017, 4:20 PM
ryanmce accepted this revision.Aug 9 2017, 5:57 AM
This revision is now accepted and ready to land.Aug 9 2017, 5:57 AM
This revision was automatically updated to reflect the committed changes.