]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
cryptodev: Use 'csp' in the handlers for requests.
authorJohn Baldwin <jhb@FreeBSD.org>
Wed, 6 Oct 2021 21:08:46 +0000 (14:08 -0700)
committerJohn Baldwin <jhb@FreeBSD.org>
Thu, 21 Oct 2021 15:51:25 +0000 (08:51 -0700)
commit11db133ecad7930dd4f289815e2a1b531390f124
treeb807a03ac8c0f60bd389c7404fec96de3be548fd
parentd8b6a6559070a4d76f8c9e0660fff2ea5a573d65
cryptodev: Use 'csp' in the handlers for requests.

- Retire cse->mode and use csp->csp_mode instead.
- Use csp->csp_cipher_algorithm instead of the ivsize when checking
  for the fixup for the IV length for AES-XTS.

Reviewed by: markj
Sponsored by: Chelsio Communications, The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D32103

(cherry picked from commit b4e0a27c5be5090a9db16dd0ad417543b1fb0c4a)
sys/opencrypto/cryptodev.c