]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
crypto: Re-add encrypt/decrypt_multi hooks to enc_xform.
authorJohn Baldwin <jhb@FreeBSD.org>
Tue, 11 Jan 2022 22:17:41 +0000 (14:17 -0800)
committerJohn Baldwin <jhb@FreeBSD.org>
Tue, 11 Jan 2022 22:17:41 +0000 (14:17 -0800)
commitd7f0b3ce6dbde5b6810cda2c14acbbce5172f53c
tree851c534e1349e65bfb6cb9382af6e736a4f44e66
parent8f35841f1f35cce332e94f0a3a69f51e2eb5e762
crypto: Re-add encrypt/decrypt_multi hooks to enc_xform.

These callbacks allow multiple contiguous blocks to be manipulated in
a single call.  Note that any trailing partial block for a stream
cipher must still be passed to encrypt/decrypt_last.

While here, document the setkey and reinit hooks and reorder the hooks
in 'struct enc_xform' to better reflect the life cycle.

Reviewed by: markj
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D33529
sys/crypto/chacha20/chacha-sw.c
sys/opencrypto/xform_aes_cbc.c
sys/opencrypto/xform_aes_icm.c
sys/opencrypto/xform_aes_xts.c
sys/opencrypto/xform_chacha20_poly1305.c
sys/opencrypto/xform_cml.c
sys/opencrypto/xform_enc.h
sys/opencrypto/xform_null.c