From 6a9115d581e87c74d4086f45d9734a7c4f52fe7b Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Fri, 9 Nov 2001 03:11:39 +0000 Subject: be way more sure that software cannot be used --- share/man/man9/crypto.9 | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'share/man') diff --git a/share/man/man9/crypto.9 b/share/man/man9/crypto.9 index 46121cf9d64..834d64f4eeb 100644 --- a/share/man/man9/crypto.9 +++ b/share/man/man9/crypto.9 @@ -1,4 +1,4 @@ -.\" $OpenBSD: crypto.9,v 1.13 2001/08/03 15:21:17 mpech Exp $ +.\" $OpenBSD: crypto.9,v 1.14 2001/11/09 03:11:38 deraadt Exp $ .\" .\" The author of this man page is Angelos D. Keromytis (angelos@cis.upenn.edu) .\" @@ -24,7 +24,7 @@ .Sh SYNOPSIS .Fd #include .Ft int32_t -.Fn crypto_get_driverid "void" +.Fn crypto_get_driverid "u_int8_t" .Ft int .Fn crypto_register "u_int32_t" "int" "int (*)(u_int32_t *, struct cryptoini *)" "int (*)(u_int64_t)" "int (*)(struct cryptop *)" .Ft int @@ -45,8 +45,7 @@ #define EALG_MAX_BLOCK_LEN 8 -struct cryptoini -{ +struct cryptoini { int cri_alg; int cri_klen; int cri_rnd; @@ -55,8 +54,7 @@ struct cryptoini struct cryptoini *cri_next; }; -struct cryptodesc -{ +struct cryptodesc { int crd_skip; int crd_len; int crd_inject; @@ -65,8 +63,7 @@ struct cryptodesc struct cryptodesc *crd_next; }; -struct cryptop -{ +struct cryptop { u_int64_t crp_sid; int crp_ilen; int crp_olen; @@ -369,7 +366,10 @@ primitives to register and unregister with the kernel crypto services framework. Drivers must first use the .Fn crypto_get_driverid -function to acquire a driver identifier. +function to acquire a driver identifier, specifying the +.Fa cc_flags +as an argument (normally 0, but software-only drivers should specify +.Dv CRYPTOCAP_F_SOFTWARE Ns ). For each algorithm the driver supports, it must then call .Fn crypto_register . The first two arguments are the driver and algorithm identifiers. -- cgit v1.2.3