Changeset View
Changeset View
Standalone View
Standalone View
head/share/man/man9/crypto_driver.9
Show All 24 Lines | |||||
.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | .\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | ||||
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | ||||
.\" POSSIBILITY OF SUCH DAMAGE. | .\" POSSIBILITY OF SUCH DAMAGE. | ||||
.\" | .\" | ||||
.\" * Other names and brands may be claimed as the property of others. | .\" * Other names and brands may be claimed as the property of others. | ||||
.\" | .\" | ||||
.\" $FreeBSD$ | .\" $FreeBSD$ | ||||
.\" | .\" | ||||
.Dd May 25, 2020 | .Dd June 9, 2020 | ||||
.Dt CRYPTO_DRIVER 9 | .Dt CRYPTO_DRIVER 9 | ||||
.Os | .Os | ||||
.Sh NAME | .Sh NAME | ||||
.Nm crypto_driver | .Nm crypto_driver | ||||
.Nd interface for symmetric cryptographic drivers | .Nd interface for symmetric cryptographic drivers | ||||
.Sh SYNOPSIS | .Sh SYNOPSIS | ||||
.In opencrypto/cryptodev.h | .In opencrypto/cryptodev.h | ||||
.Ft void | .Ft void | ||||
▲ Show 20 Lines • Show All 66 Lines • ▼ Show 20 Lines | |||||
must be specified. | must be specified. | ||||
.Dv CRYPTOCAP_F_SOFTWARE | .Dv CRYPTOCAP_F_SOFTWARE | ||||
should be used for drivers which process requests using host CPUs. | should be used for drivers which process requests using host CPUs. | ||||
.Dv CRYPTOCAP_F_HARDWARE | .Dv CRYPTOCAP_F_HARDWARE | ||||
should be used for drivers which process requests on separate co-processors. | should be used for drivers which process requests on separate co-processors. | ||||
.Dv CRYPTOCAP_F_SYNC | .Dv CRYPTOCAP_F_SYNC | ||||
should be set for drivers which process requests synchronously in | should be set for drivers which process requests synchronously in | ||||
.Fn CRYPTODEV_PROCESS . | .Fn CRYPTODEV_PROCESS . | ||||
.Dv CRYPTOCAP_F_ACCEL_SOFTWARE | |||||
should be set for software drivers which use accelerated CPU instructions. | |||||
.Fn crypto_get_driverid | .Fn crypto_get_driverid | ||||
returns an opaque driver id. | returns an opaque driver id. | ||||
.Pp | .Pp | ||||
.Fn crypto_unregister_all | .Fn crypto_unregister_all | ||||
unregisters a driver from the cryptographic framework. | unregisters a driver from the cryptographic framework. | ||||
If there are any pending operations or open sessions, | If there are any pending operations or open sessions, | ||||
this function will sleep. | this function will sleep. | ||||
.Fa driverid | .Fa driverid | ||||
▲ Show 20 Lines • Show All 218 Lines • Show Last 20 Lines |