HomeFreeBSD

/dev/crypto: Minimize cipher-specific logic.

Description

/dev/crypto: Minimize cipher-specific logic.

Rather than duplicating the switches in crypto_auth_hash() and
crypto_cipher(), copy the algorithm constants from the new session
ioctl into a csp directly which permits using the functions in
crypto.c.

Reviewed by: markj
Sponsored by: Chelsio Communications
Differential Revision: https://reviews.freebsd.org/D33613

Details

Provenance
jhbAuthored on Dec 30 2021, 1:50 AM
Reviewer
markj
Differential Revision
D33613: /dev/crypto: Minimize cipher-specific logic.
Parents
rGc3a688ef4dcb: OCF: Hook up plain RIPEMD160 in cryptosoft and /dev/crypto.
Branches
Unknown
Tags
Unknown