]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
crypto: Add crypto_cursor_segment() to fetch both base and length.
authorJohn Baldwin <jhb@FreeBSD.org>
Tue, 25 May 2021 23:59:19 +0000 (16:59 -0700)
committerJohn Baldwin <jhb@FreeBSD.org>
Tue, 25 May 2021 23:59:19 +0000 (16:59 -0700)
commitbeb817edfe22cdea91e19a60c42caabd9404da48
tree9ba951441b0a420aec8e44e9b256a072f331ae01
parent6b313a3a60453e87f0a224361dad6284550395de
crypto: Add crypto_cursor_segment() to fetch both base and length.

This function combines crypto_cursor_segbase() and
crypto_cursor_seglen() into a single function.  This is mostly
beneficial in the unmapped mbuf case where back to back calls of these
two functions have to iterate over the sub-components of unmapped
mbufs twice.

Bump __FreeBSD_version for crypto drivers in ports.

Suggested by: markj
Reviewed by: markj
Sponsored by: Netflix
Differential Revision: https://reviews.freebsd.org/D30445
share/man/man9/Makefile
share/man/man9/crypto_buffer.9
sys/opencrypto/criov.c
sys/opencrypto/cryptodev.h
sys/sys/param.h