freebsd-skq/sys/crypto
John-Mark Gurney 9d38fd076e address an issue where consumers, like IPsec, can reuse the same
session in multiple threads w/o locking..  There was a single fpu
context shared per session, if multiple threads were using the session,
and both migrated away, they could corrupt each other's fpu context...

This patch adds a per cpu context and a lock to protect it...

It also tries to better address unloading of the aesni module...
The pause will be removed once the OpenCrypto Framework provides a
better method for draining callers into _newsession...

I first discovered the fpu context sharing issue w/ a flood ping over
an IPsec tunnel between two bhyve machines...  The patch in D3015
was used to verify that this fix does fix the issue...

Reviewed by:	gnn, kib (both earlier versions)
Differential Revision:        https://reviews.freebsd.org/D3016
2015-07-08 19:15:29 +00:00
..
aesni address an issue where consumers, like IPsec, can reuse the same 2015-07-08 19:15:29 +00:00
blowfish
camellia
des
rc4 Revert previous commit... 2012-10-10 08:36:38 +00:00
rijndael Fix gcc build: preserve const qualifier when casting input values. 2014-11-11 13:37:28 +00:00
sha2 replace the kernel's version w/ cperciva's implementation... In all 2014-03-16 01:43:23 +00:00
siphash Fix const propagation issues to make GCC happy. 2013-07-11 16:27:11 +00:00
via Add some new modes to OpenCrypto. These modes are AES-ICM (can be used 2014-12-12 19:56:36 +00:00
sha1.c
sha1.h