aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/md5.h
Commit message (Collapse)AuthorAgeFilesLines
* sys: Remove $FreeBSD$: one-line .h patternWarner Losh2023-08-161-1/+0
| | | | Remove /^\s*\*+\s*\$FreeBSD\$.*$\n/
* SPDX: some uses of the RSA-MD license.Pedro F. Giffuni2017-12-131-0/+2
| | | | Notes: svn path=/head/; revision=326828
* Fix C++ includability of crypto headers with static array sizesAlan Somers2016-10-181-1/+1
| | | | | | | | | | | | | | | | | | | | C99 allows array function parameters to use the static keyword for their sizes. This tells the compiler that the parameter will have at least the specified size, and calling code will fail to compile if that guarantee is not met. However, this syntax is not legal in C++. This commit reverts r300824, which worked around the problem for sys/sys/md5.h only, and introduces a new macro: min_size(). min_size(x) can be used in headers as a static array size, but will still compile in C++ mode. Reviewed by: cem, ed MFC after: 4 weeks Sponsored by: Spectra Logic Corp Differential Revision: https://reviews.freebsd.org/D8277 Notes: svn path=/head/; revision=307584
* libmd: introduce functions that operate on an fd instead of filenameEd Maste2016-10-171-0/+2
| | | | | | | | | | 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
* Ifndef KERNEL the userspace-only routines in sys/md[45].hConrad Meyer2016-05-261-0/+6
| | | | | | | | | | | | A follow-up to r300773. Nothing in the kernel uses those definitions, but apparently libmd includes the sys/md45 headers. Fix the build. Reported by: gjb Pointy-hat: cem Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=300774
* crypto routines: Hint minimum buffer sizes to the compilerConrad Meyer2016-05-261-5/+1
| | | | | | | | | | | | | | Use the C99 'static' keyword to hint to the compiler IVs and output digest sizes. The keyword informs the compiler of the minimum valid size for a given array. Obviously not every pointer can be validated (i.e., the compiler can produce false negative but not false positive reports). No functional change. No ABI change. Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=300773
* Add definitions for MD5_BLOCK_LENGTH, MD5_DIGEST_LENGTH andAndre Oppermann2006-03-151-0/+5
| | | | | | | | | MD5_DIGEST_STRING_LENGTH. MFC after: 3 days Notes: svn path=/head/; revision=156752
* Fix an 11 year old mistake: Let the hash functions take a void* insteadPoul-Henning Kamp2006-01-171-2/+2
| | | | | | | of unsigned char* argument. Notes: svn path=/head/; revision=154479
* MD5Pad() should never have been exposed.Poul-Henning Kamp2005-02-101-1/+0
| | | | Notes: svn path=/head/; revision=141632
* /* -> /*- for license, minor formatting changesWarner Losh2005-01-071-1/+2
| | | | Notes: svn path=/head/; revision=139825
* Oops, this should have been part of my previous commit.Maxime Henrion2002-06-241-3/+0
| | | | | | | | | Somehow, it hasn't. Reviewed by: phk Notes: svn path=/head/; revision=98757
* Remove __PAlfred Perlstein2002-03-191-1/+1
| | | | Notes: svn path=/head/; revision=92719
* Add a new entrypoint to the hashes in libmd:Poul-Henning Kamp2001-03-171-0/+1
| | | | | | | | | | | | 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
* Change #ifdef KERNEL to #ifdef _KERNEL in the public headers. "KERNEL"Peter Wemm1999-12-291-1/+1
| | | | | | | | | is an application space macro and the applications are supposed to be free to use it as they please (but cannot). This is consistant with the other BSD's who made this change quite some time ago. More commits to come. Notes: svn path=/head/; revision=55205
* $Id$ -> $FreeBSD$Peter Wemm1999-08-281-1/+1
| | | | Notes: svn path=/head/; revision=50477
* Export MD5Transform in md5.c and remove a private version in random_machdep.cPoul-Henning Kamp1998-03-291-1/+4
| | | | | | | md5 is standard as a consequence of this. Notes: svn path=/head/; revision=34944
* Split the padding out into a separate function.Poul-Henning Kamp1998-03-271-1/+2
| | | | | | | | | | | Synchronize the kernel and libmd versions of md5c.c PR: misc/6127 Reviewed by: phk Submitted by: Ari Suutari <ari@suutari.iki.fi> Notes: svn path=/head/; revision=34909
* Make the MD* header files C++-aware. Also, string arguments are supposedJoerg Wunsch1997-08-251-2/+6
| | | | | | | | | | to be of type `const char *'. PR: 3291 Submitted by: dima@tejblum.dnttm.rssi.ru (Dmitrij Tejblum) Notes: svn path=/head/; revision=28688
* Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are notPeter Wemm1997-02-221-1/+1
| | | | | | | ready for it yet. Notes: svn path=/head/; revision=22975
* Make the long-awaited change from $Id$ to $FreeBSD$Jordan K. Hubbard1997-01-141-1/+1
| | | | | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise. Notes: svn path=/head/; revision=21673
* Fixup for new location.Poul-Henning Kamp1996-12-221-4/+4
| | | | | | | This file came here by a repository copy. Notes: svn path=/head/; revision=20786
* close bin/1648 libmd not 64bit safe.Poul-Henning Kamp1996-10-221-2/+2
| | | | | | | | | if something fails to compile now, you need to add #include <sys/types.h> Partially Submitted by: Jason Thorpe <thorpej@nas.nasa.gov> Notes: svn path=/head/; revision=19099
* Add a structure definition to the MD* Contexts, so that cvs can usePeter Wemm1995-12-111-1/+1
| | | | | | | the standard libmd version of MD5 instead of it's own seperate copy.. Notes: svn path=/head/; revision=12762
* Change this to do what it should have done from the start.Poul-Henning Kamp1995-07-121-3/+3
| | | | | | | | Add argument for buffer for output. Fix manuals. Notes: svn path=/head/; revision=9488
* Added "const" to the arguments here and there.Poul-Henning Kamp1994-11-071-2/+2
| | | | Notes: svn path=/head/; revision=4245
* Reviewed by: phkPoul-Henning Kamp1994-07-241-0/+42
Imported libmd. This library contains MD2, MD4 and MD5. These three boggers pop up all over the place all of the time, so I decided we needed a library with them. In general they are used for security checks, so if you use them you want to link them static. Notes: svn path=/cvs2svn/branches/ORIG/; revision=1802