Page MenuHomePhabricator

sha1: provide wrapper functions around the SHA-1 implementation

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



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

Test Plan

Confirmed the code builds and passes unit tests.

Diff Detail

rFBHGX Facebook Mercurial Extensions
Automatic diff as part of commit; lint not applicable.
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.