freebsd-nq/lib/libmd
Alan Somers 8254c3c5d3 Fix C++ includability of crypto headers with static array sizes
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
2016-10-18 23:20:49 +00:00
..
i386
Makefile libmd: strip local absolute symbols (to link with lld) 2016-07-21 18:47:51 +00:00
Makefile.depend DIRDEPS_BUILD: Regenerate without local dependencies. 2016-02-24 17:20:11 +00:00
md4.copyright
md4.h libmd: introduce functions that operate on an fd instead of filename 2016-10-17 13:47:22 +00:00
md4c.c Unbreak MIPS build following rev. 282726 2015-05-11 16:45:33 +00:00
md5.copyright
md5.h Fix C++ includability of crypto headers with static array sizes 2016-10-18 23:20:49 +00:00
md5c.c Unbreak MIPS build following rev. 282726 2015-05-11 16:45:33 +00:00
mddriver.c
mdX.3 Import the skein hashing algorithm, based on the threefish block cipher 2016-05-29 01:15:36 +00:00
mdXhl.c libmd: introduce functions that operate on an fd instead of filename 2016-10-17 13:47:22 +00:00
ripemd.3 Import the skein hashing algorithm, based on the threefish block cipher 2016-05-29 01:15:36 +00:00
ripemd.h libmd: introduce functions that operate on an fd instead of filename 2016-10-17 13:47:22 +00:00
rmd160c.c Unbreak MIPS build following rev. 282726 2015-05-11 16:45:33 +00:00
rmd_locl.h
rmdconst.h
rmddriver.c
sha0c.c
sha1c.c Unbreak MIPS build following rev. 282726 2015-05-11 16:45:33 +00:00
sha256.3 Import the skein hashing algorithm, based on the threefish block cipher 2016-05-29 01:15:36 +00:00
sha512.3 Import the skein hashing algorithm, based on the threefish block cipher 2016-05-29 01:15:36 +00:00
sha_locl.h
sha.3 Import the skein hashing algorithm, based on the threefish block cipher 2016-05-29 01:15:36 +00:00
sha.h libmd: introduce functions that operate on an fd instead of filename 2016-10-17 13:47:22 +00:00
shadriver.c Implement SHA-512 truncated (224 and 256 bits) 2016-05-28 16:06:07 +00:00
skein.3 Import the skein hashing algorithm, based on the threefish block cipher 2016-05-29 01:15:36 +00:00
skeindriver.c Import the skein hashing algorithm, based on the threefish block cipher 2016-05-29 01:15:36 +00:00