freebsd-dev/sys/mips/rmi
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
..
dev Add some new modes to OpenCrypto. These modes are AES-ICM (can be used 2014-12-12 19:56:36 +00:00
board.c
board.h
bus_space_rmi_pci.c
bus_space_rmi.c
files.xlr
fmn.c
interrupt.h
intr_machdep.c
iodi.c Devices that rely on hints or identify routines for discovery need to 2013-10-29 14:07:31 +00:00
iomap.h
Makefile.msgring
mpwait.S
msgring_xls.c
msgring_xls.cfg Clean some 'svn:executable' properties in the tree. 2013-01-26 22:08:21 +00:00
msgring.c
msgring.cfg
msgring.h
pcibus.h
pic.h Fix undefined behavior: (1 << 31) is not defined as 1 is an int and this 2013-11-30 22:17:27 +00:00
rmi_boot_info.h
rmi_mips_exts.h
rootfs_list.txt Renove faith(4) and faithd(8) from base. It looks like industry 2014-11-09 21:33:01 +00:00
std.xlr
tick.c Panics about how things can't be attached should probably happen in the 2013-10-29 20:38:58 +00:00
uart_bus_xlr_iodi.c
uart_cpu_mips_xlr.c
xlr_csum_nocopy.S
xlr_i2c.c remove duplicate semicolons where possible. 2012-10-22 03:00:37 +00:00
xlr_machdep.c Convert remaining {g,s}etenv->kern_{g,s}etenv 2014-10-17 17:34:05 +00:00
xlr_pci.c
xlr_pcmcia.c
xls_ehci.c