freebsd-nq/sys/crypto/aesni
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
..
aesencdec.h unroll the loop slightly... This improves performance enough to 2015-07-07 20:31:09 +00:00
aeskeys_amd64.S
aeskeys_i386.S
aesni_ghash.c const'ify an arg that we don't update... 2015-07-29 23:37:15 +00:00
aesni_os.h In the version of gcc in the FreeBSD tree, this modification was made to 2015-04-16 17:42:52 +00:00
aesni_wrap.c crypto routines: Hint minimum buffer sizes to the compiler 2016-05-26 19:29:29 +00:00
aesni.c aesni(4): Initialize error before use 2016-04-20 03:05:32 +00:00
aesni.h Fix C++ includability of crypto headers with static array sizes 2016-10-18 23:20:49 +00:00