1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-15 10:17:20 +00:00
freebsd/sys/libkern
John-Mark Gurney 08fca7a56b Add some new modes to OpenCrypto. These modes are AES-ICM (can be used
for counter mode), and AES-GCM.  Both of these modes have been added to
the aesni module.

Included is a set of tests to validate that the software and aesni
module calculate the correct values.  These use the NIST KAT test
vectors.  To run the test, you will need to install a soon to be
committed port, nist-kat that will install the vectors.  Using a port
is necessary as the test vectors are around 25MB.

All the man pages were updated.  I have added a new man page, crypto.7,
which includes a description of how to use each mode.  All the new modes
and some other AES modes are present.  It would be good for someone
else to go through and document the other modes.

A new ioctl was added to support AEAD modes which AES-GCM is one of them.
Without this ioctl, it is not possible to test AEAD modes from userland.

Add a timing safe bcmp for use to compare MACs.  Previously we were using
bcmp which could leak timing info and result in the ability to forge
messages.

Add a minor optimization to the aesni module so that single segment
mbufs don't get copied and instead are updated in place.  The aesni
module needs to be updated to support blocked IO so segmented mbufs
don't have to be copied.

We require that the IV be specified for all calls for both GCM and ICM.
This is to ensure proper use of these functions.

Obtained from:	p4: //depot/projects/opencrypto
Relnotes:	yes
Sponsored by:	FreeBSD Foundation
Sponsored by:	NetGate
2014-12-12 19:56:36 +00:00
..
arm Use the unified syntax in a few more assembly files 2014-12-05 19:08:36 +00:00
arc4random.c Attempt to mitigate poor initialization of arc4 by one-shot 2013-04-19 00:30:52 +00:00
ashldi3.c Fix ixp425 boot2 with ARM EABI: 2013-09-29 15:19:34 +00:00
ashrdi3.c
bcd.c
bcmp.c
bsearch.c
cmpdi2.c
crc32.c
divdi3.c
explicit_bzero.c Remove duplicated code. 2014-10-16 22:04:07 +00:00
ffs.c
ffsl.c
fls.c
flsl.c
flsll.c Fix watchdog pretimeout. 2013-07-27 20:47:01 +00:00
fnmatch.c
iconv_converter_if.m
iconv_ucs.c Use strcasecmp() instead of strcmp() when checking user-supplied encoding 2014-06-09 19:27:47 +00:00
iconv_xlat16.c
iconv_xlat.c
iconv.c Use strcasecmp() instead of strcmp() when checking user-supplied encoding 2014-06-09 19:27:47 +00:00
inet_aton.c
inet_ntoa.c
inet_ntop.c
inet_pton.c
jenkins_hash.c s/ is is / is /g 2012-09-14 22:00:03 +00:00
lshrdi3.c
mcount.c
memcchr.c
memchr.c
memcmp.c
memmem.c Use __DECONST to avoid compiler warnings (and thus build failures) 2014-09-08 08:12:09 +00:00
memmove.c
memset.c
moddi3.c
murmur3_32.c Add a complete implementation of MurmurHash3. Tweak both implementations 2014-10-18 22:15:11 +00:00
qdivrem.c
qsort_r.c
qsort.c
quad.h Add __aeabi_ulcmp to allow building of the LINT kernel. 2013-01-23 09:18:18 +00:00
random.c
scanc.c
strcasecmp.c
strcat.c
strchr.c
strcmp.c
strcpy.c
strcspn.c
strdup.c
strlcat.c
strlcpy.c Sync strlcpy with userland version. 2012-11-03 04:29:24 +00:00
strlen.c Sync strlen with userland implementation. 2012-11-03 04:28:53 +00:00
strncmp.c Sync with userland variant. 2014-11-17 21:01:35 +00:00
strncpy.c
strndup.c Bring in the new automounter, similar to what's provided in most other 2014-08-17 09:44:42 +00:00
strnlen.c
strrchr.c
strsep.c
strspn.c
strstr.c
strtol.c
strtoq.c
strtoul.c
strtouq.c
strvalid.c
timingsafe_bcmp.c Add some new modes to OpenCrypto. These modes are AES-ICM (can be used 2014-12-12 19:56:36 +00:00
ucmpdi2.c Add __aeabi_ulcmp to allow building of the LINT kernel. 2013-01-23 09:18:18 +00:00
udivdi3.c
umoddi3.c