aboutsummaryrefslogtreecommitdiff
path: root/lib/libmd/sha.h
Commit message (Collapse)AuthorAgeFilesLines
* libmd: introduce functions that operate on an fd instead of filenameEd Maste2016-10-171-0/+16
| | | | | | | | | | Reviewed by: allanjude, cem MFC after: 2 months Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D8264 Notes: svn path=/head/; revision=307521
* Unbreak build following rev. 282726Thomas Quinot2015-05-101-0/+40
| | | | | | | | | | | | | | | | | (Makefile.inc1): add dependency of xinstall on libmd to avoid failure of parallel bootstrap. (lib/libmd/*.h): do not redefine symbols if already defined as macros (libcrypt uses the same sources internally, redefining symbols with a prefix of its own). Fixes build failures caused by previous change to libmd. Reported by: ian Pointy hat to: thomas Notes: svn path=/head/; revision=282736
* Ensure libmd symbols do not clash with libcryptoThomas Quinot2015-05-101-0/+28
| | | | | | | | | | | | | | | | Add a prefix to all symbols in libmd to avoid incompatibilites with same-named, but not binary compatible, symbols from libcrypto. Also introduce Weak aliases to avoid the need to rebuild dependent binaries and a major version bump. PR: 199119 Differential Revision: D2216 Reviewed by: roberto, delphij MFC after: 2 weeks Notes: svn path=/head/; revision=282726
* Fix an 11 year old mistake: Let the hash functions take a void* insteadPoul-Henning Kamp2006-01-171-4/+4
| | | | | | | of unsigned char* argument. Notes: svn path=/head/; revision=154479
* Add a new entrypoint to the hashes in libmd:Poul-Henning Kamp2001-03-171-0/+2
| | | | | | | | | | | | char * FooFileChunk(const char *filename, char *buf, off_t offset, off_t length) Which only hashes part of a file. Implement FooFile() in terms of this function. Submitted by: roam Notes: svn path=/head/; revision=74385
* $Id$ -> $FreeBSD$Peter Wemm1999-08-281-1/+1
| | | | Notes: svn path=/head/; revision=50476
* Add Eric Young's RIPEMD160 implementation as well, in case SHA-1Garrett Wollman1999-02-261-6/+3
| | | | | | | should prove weak. Also fix a few problems with the SHA-1 build. Notes: svn path=/head/; revision=44301
* Fix bug in MDx test suite.Garrett Wollman1999-02-261-0/+99
Add Eric Young's SHA-[01] implementations. Notes: svn path=/head/; revision=44290