HomeFreeBSD

opencrypto: Add a routine to copy a crypto buffer cursor

Description

opencrypto: Add a routine to copy a crypto buffer cursor

This was useful in converting armv8crypto to use buffer cursors. There
are some cases where one wants to make two passes over data, and this
provides a way to "reset" a cursor.

Reviewed by: jhb

(cherry picked from commit 09bfa5cf16a37509a136367431472f9169a173ad)

Details

Provenance
markjAuthored on Feb 16 2022, 2:45 AM
Parents
rG04df02b2f42e: armv8crypto: Factor out some duplicated GCM code
Branches
Unknown
Tags
Unknown