9b6b2f8608
- 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 |
||
---|---|---|
.. | ||
blake2_cryptodev.c | ||
blake2_kfreebsd.h | ||
blake2-sw.c | ||
blake2b-avx.c | ||
blake2b-sse2.c | ||
blake2b-sse41.c | ||
blake2b-ssse3.c | ||
blake2b-xop.c | ||
blake2s-avx.c | ||
blake2s-sse2.c | ||
blake2s-sse41.c | ||
blake2s-ssse3.c | ||
blake2s-xop.c | ||
config.h | ||
stddef.h | ||
stdint.h | ||
stdio.h | ||
stdlib.h | ||
string.h |