freebsd-dev/sys/crypto
John Baldwin 9b6b2f8608 Adjust crypto_apply function callbacks for OCF.
- crypto_apply() is only used for reading a buffer to compute a
  digest, so change the data pointer to a const pointer.

- To better match m_apply(), change the data pointer type to void *
  and the length from uint16_t to u_int.  The length field in
  particular matters as none of the apply logic was splitting requests
  larger than UINT16_MAX.

- Adjust the auth_xform Update callback to match the function
  prototype passed to crypto_apply() and crypto_apply_buf().  This
  removes the needs for casts when using the Update callback.

- Change the Reinit and Setkey callbacks to also use a u_int length
  instead of uint16_t.

- Update auth transforms for the changes.  While here, use C99
  initializers for auth_hash structures and avoid casts on callbacks.

Reviewed by:	cem
Sponsored by:	Chelsio Communications
Differential Revision:	https://reviews.freebsd.org/D25171
2020-06-10 21:18:19 +00:00
..
aesni Adjust crypto_apply function callbacks for OCF. 2020-06-10 21:18:19 +00:00
armv8 Add a crypto capability flag for accelerated software drivers. 2020-06-09 22:26:07 +00:00
blake2 Adjust crypto_apply function callbacks for OCF. 2020-06-10 21:18:19 +00:00
camellia
ccp Add support for optional separate output buffers to in-kernel crypto. 2020-05-25 22:12:04 +00:00
chacha20 Improve support for stream ciphers in the software encryption interface. 2020-05-22 16:29:09 +00:00
des Stop using des_cblock * for arguments to DES functions. 2019-08-26 17:25:07 +00:00
libsodium
rc4
rijndael
sha2
siphash
skein Rename skein_block_asm.s to .S and assemble using Clang IAS 2020-06-06 00:35:41 +00:00
via Adjust crypto_apply function callbacks for OCF. 2020-06-10 21:18:19 +00:00
intake.h
sha1.c
sha1.h