opnsense-src/sys/opencrypto
Conrad Meyer 9ebbebe4f7 cryptosoft: Reduce generality of supported algorithm composition
Fix a regression introduced in r336439.

Rather than allowing any linked list of algorithms, allow at most two
(typically, some combination of encrypt and/or MAC).  Removes a WAITOK
malloc in an unsleepable context (classic LOR) by placing both software
algorithm contexts within the OCF-managed session object.

Tested with 'cryptocheck -a all -d cryptosoft0', which includes some
encrypt-and-MAC modes.

PR:		230304
Reported by:	sef@
2018-08-17 04:40:01 +00:00
..
_cryptodev.h OpenCrypto: Convert sessions to opaque handles instead of integers 2018-07-18 00:56:25 +00:00
cast.c sys/opencrypto: minor spelling fixes. 2016-05-06 23:37:19 +00:00
cast.h
castsb.h
criov.c Use const with some read-only buffers in opencrypto APIs. 2017-05-09 18:28:42 +00:00
crypto.c Make timespecadd(3) and friends public 2018-07-30 15:46:40 +00:00
cryptodeflate.c Use the correct number of arguments for the 2015-05-25 01:31:39 +00:00
cryptodev.c crypto(4): Add cryptosoft, cryptodev support for Poly-1305 2018-08-17 00:31:06 +00:00
cryptodev.h Add xform-conforming auth_hash wrapper for Poly-1305 2018-08-17 00:30:04 +00:00
cryptodev_if.m OpenCrypto: Convert sessions to opaque handles instead of integers 2018-07-18 00:56:25 +00:00
cryptosoft.c cryptosoft: Reduce generality of supported algorithm composition 2018-08-17 04:40:01 +00:00
cryptosoft.h cryptosoft: Reduce generality of supported algorithm composition 2018-08-17 04:40:01 +00:00
deflate.h Move zlib.c from net to libkern. 2015-04-22 14:38:58 +00:00
gfmult.c sys/opencrypto: minor spelling fixes. 2016-05-06 23:37:19 +00:00
gfmult.h Add some new modes to OpenCrypto. These modes are AES-ICM (can be used 2014-12-12 19:56:36 +00:00
gmac.c Add some new modes to OpenCrypto. These modes are AES-ICM (can be used 2014-12-12 19:56:36 +00:00
gmac.h add the define to properly guard this header.. 2015-04-07 09:00:03 +00:00
rmd160.c
rmd160.h
skipjack.c
skipjack.h Break up opencrypto/xform.c so it can be reused piecemeal 2015-12-30 22:43:07 +00:00
xform.c Break up opencrypto/xform.c so it can be reused piecemeal 2015-12-30 22:43:07 +00:00
xform.h Break up opencrypto/xform.c so it can be reused piecemeal 2015-12-30 22:43:07 +00:00
xform_aes_icm.c opencrypto AES-ICM: Fix heap corruption typo 2016-08-01 22:57:03 +00:00
xform_aes_xts.c Break up opencrypto/xform.c so it can be reused piecemeal 2015-12-30 22:43:07 +00:00
xform_auth.h Add xform-conforming auth_hash wrapper for Poly-1305 2018-08-17 00:30:04 +00:00
xform_blf.c Break up opencrypto/xform.c so it can be reused piecemeal 2015-12-30 22:43:07 +00:00
xform_cast5.c Break up opencrypto/xform.c so it can be reused piecemeal 2015-12-30 22:43:07 +00:00
xform_cml.c Break up opencrypto/xform.c so it can be reused piecemeal 2015-12-30 22:43:07 +00:00
xform_comp.h Break up opencrypto/xform.c so it can be reused piecemeal 2015-12-30 22:43:07 +00:00
xform_deflate.c Break up opencrypto/xform.c so it can be reused piecemeal 2015-12-30 22:43:07 +00:00
xform_des1.c Break up opencrypto/xform.c so it can be reused piecemeal 2015-12-30 22:43:07 +00:00
xform_des3.c Break up opencrypto/xform.c so it can be reused piecemeal 2015-12-30 22:43:07 +00:00
xform_enc.h opencrypto: Integrate Chacha20 algorithm into OCF 2018-03-29 04:02:50 +00:00
xform_gmac.c Break up opencrypto/xform.c so it can be reused piecemeal 2015-12-30 22:43:07 +00:00
xform_md5.c Remove "HMAC" from <HASH>_HMAC_BLOCK_LEN macro names 2018-07-09 07:21:37 +00:00
xform_null.c opencrypto: Use C99 initializers for auth_hash instances 2017-09-26 17:52:52 +00:00
xform_poly1305.c Add xform-conforming auth_hash wrapper for Poly-1305 2018-08-17 00:30:04 +00:00
xform_poly1305.h Add xform-conforming auth_hash wrapper for Poly-1305 2018-08-17 00:30:04 +00:00
xform_rijndael.c Break up opencrypto/xform.c so it can be reused piecemeal 2015-12-30 22:43:07 +00:00
xform_rmd160.c Remove "HMAC" from <HASH>_HMAC_BLOCK_LEN macro names 2018-07-09 07:21:37 +00:00
xform_sha1.c OCF: Add plain hash modes 2018-07-09 07:28:13 +00:00
xform_sha2.c OCF: Add plain hash modes 2018-07-09 07:28:13 +00:00
xform_skipjack.c Break up opencrypto/xform.c so it can be reused piecemeal 2015-12-30 22:43:07 +00:00
xform_userland.h We don't need both _STAND and _STANDALONE. There's more places that 2017-12-02 00:07:09 +00:00