[PATCH] sha2: new header <sha2.h>

Florian Weimer fweimer@redhat.com
Wed Apr 1 22:22:00 GMT 2015


On 03/28/2015 09:00 AM, Shawn Landden wrote:
> Export the SHA2 family of functions in -lcrypt.
> 
> We already have these functions for crypt(), and many projects and spending much
> effort reimplementing them. The most popular library, openSSL, also has infamous
> licensing issues and is way overkill when AES is not needed. OpenSSL is the only
> library I know of that support SHA2 cpu extensions as well.

I don't think this should go into libcrypt.  We might need it inside
libc for a future PRNG.

The proposed API is likely incompatible with some forms of hardware
acceleration.  I already told you that you need to add
allocation/deallocation functions.  There is a reason why OpenSSL only
provides hardware acceleration with the EVP API.

In any case, this needs much more discussion and research before we can
commit to a stable API.

-- 
Florian Weimer / Red Hat Product Security



More information about the Libc-alpha mailing list