HardenedBSD/sys/opencrypto
Sean Eric Fagan a7fcb1afcb Add per-session locking to cryptosoft (swcr).
As part of ZFS Crypto, I started getting a series of panics when I did not
have AESNI loaded.  Adding locking fixed it, and I concluded that the
Reinit function altered the AES key schedule.  This locking is not as
fine-grained as it could be (AESNI uses per-cpu locking), but
it's minimally invasive.

Sponsored by: iXsystems Inc
Reviewed by: cem, mav
Approved by: re (gjb), mav (mentor)
Differential Revision: https://reviews.freebsd.org/D17307
2018-09-26 20:23:12 +00:00
..
_cryptodev.h
cast.c
cast.h
castsb.h
criov.c
crypto.c
cryptodeflate.c
cryptodev_if.m
cryptodev.c
cryptodev.h
cryptosoft.c
cryptosoft.h
deflate.h
gfmult.c
gfmult.h
gmac.c
gmac.h
rmd160.c
rmd160.h
skipjack.c
skipjack.h
xform_aes_icm.c
xform_aes_xts.c
xform_auth.h
xform_blf.c
xform_cast5.c
xform_cml.c
xform_comp.h
xform_deflate.c
xform_des1.c
xform_des3.c
xform_enc.h
xform_gmac.c
xform_md5.c
xform_null.c
xform_poly1305.c
xform_poly1305.h
xform_rijndael.c
xform_rmd160.c
xform_sha1.c
xform_sha2.c
xform_skipjack.c
xform_userland.h
xform.c
xform.h