This is the mail archive of the
libc-help@sourceware.org
mailing list for the glibc project.
Re: Hash Function Availability (sha / md5)
- From: Florian Weimer <fweimer at redhat dot com>
- To: Patrick Herbst <paherbst at gmail dot com>
- Cc: libc-help at sourceware dot org
- Date: Fri, 4 Nov 2016 13:14:27 +0100
- Subject: Re: Hash Function Availability (sha / md5)
- Authentication-results: sourceware.org; auth=none
- References: <CACMdL5KhrA8Z=cLqOzdJPUbzqzSG9SzBgv6M2E9n=BXuGCeq1A@mail.gmail.com>
On 11/04/2016 02:11 AM, Patrick Herbst wrote:
The glibc crypt function uses sha and/or md5, but it doesn't appear
these routines are in a published header for application programming.
That's the intent, yes.
Am I wrong on this? Are there headers/libraries that are part of
glibc that offer these hash functions natively?
If not, why?
The hash functions are an internal implementation detail. The
implementations we have today are not optimized and do not use hardware
acceleration (except on sparc64).
I know that there is no compelling or canonical source of hash functions
right now. All existing cryptographic libraries are weird in some way,
perhaps with the exception of GNUTLS (but it's way too large if you just
need a hash function).
Thanks,
Florian