HomePhabricator

sha1: provide wrapper functions around the SHA-1 implementation

Authored by simpkins.

Description

sha1: provide wrapper functions around the SHA-1 implementation

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.

Reviewers: #fbhgext, ryanmce

Reviewed By: #fbhgext, ryanmce

Differential Revision: https://phab.mercurial-scm.org/D282

Details

Committed
simpkinsAug 22 2017, 10:09 PM
Reviewer
Restricted Project
Differential Revision
D282: sha1: provide wrapper functions around the SHA-1 implementation
Parents
rFBHGX55ca6f654b07: sha1: move the sha1collisiondetection code to third-party
Branches
Unknown
Tags
Unknown