summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2002-03-02 23:00:30 +0000
committerderaadt <deraadt@openbsd.org>2002-03-02 23:00:30 +0000
commitc73069f1d0704f6cb1dae8af261676598cd6c2b6 (patch)
treed46ffe8ec6705489da2acbd39f3e924bd382f1db
parentA start for testing EVFILT_PROC, not done yet, but this is a good check point. (diff)
downloadwireguard-openbsd-c73069f1d0704f6cb1dae8af261676598cd6c2b6.tar.xz
wireguard-openbsd-c73069f1d0704f6cb1dae8af261676598cd6c2b6.zip
do some more renaming
-rw-r--r--sys/crypto/cryptodev.h30
1 files changed, 15 insertions, 15 deletions
diff --git a/sys/crypto/cryptodev.h b/sys/crypto/cryptodev.h
index bef8a588a8f..314148c4a50 100644
--- a/sys/crypto/cryptodev.h
+++ b/sys/crypto/cryptodev.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: cryptodev.h,v 1.20 2002/03/02 19:15:11 deraadt Exp $ */
+/* $OpenBSD: cryptodev.h,v 1.21 2002/03/02 23:00:30 deraadt Exp $ */
/*
* The author of this code is Angelos D. Keromytis (angelos@cis.upenn.edu)
@@ -235,20 +235,20 @@ struct crparam {
u_int crp_nbits;
};
-#define CRS_MAXPARAM 8
-struct crypt_sop {
- u_int crs_op; /* ie. CRS_RSA_MOD_EXP or other */
- u_int crs_iparams; /* # of input parameters */
- u_int crs_oparams; /* # of output parameters */
- u_int crs_status;
- struct crparam crs_param[CRS_MAXPARAM];
+#define CRK_MAXPARAM 8
+struct crypt_kop {
+ u_int crk_op; /* ie. CRK_RSA_MOD_EXP or other */
+ u_int crk_iparams; /* # of input parameters */
+ u_int crk_oparams; /* # of output parameters */
+ u_int crk_status;
+ struct crparam crk_param[CRK_MAXPARAM];
};
-#define CRS_RSA_MOD_EXP 0
-#define CRS_MOD_EXP 1
-#define CRS_RSA_MOD_EXP_CRT 2
-#define CRS_DSA_SIGN 3
-#define CRS_DSA_VERIFY 4
-#define CRS_DH_COMPUTE_KEY 5
+#define CRK_RSA_MOD_EXP 0
+#define CRK_MOD_EXP 1
+#define CRK_RSA_MOD_EXP_CRT 2
+#define CRK_DSA_SIGN 3
+#define CRK_DSA_VERIFY 4
+#define CRK_DH_COMPUTE_KEY 5
#define CRIOGET _IOWR('c', 100, u_int32_t)
@@ -259,7 +259,7 @@ struct crypt_sop {
#define COP_ENCRYPT 1
#define COP_DECRYPT 2
-#define CIOCSYMMETRIC _IOWR('c', 104, struct crypt_sop)
+#define CIOCKEY _IOWR('c', 104, struct crypt_kop)
#define CIOCSYMFEAT _IOR('c', 105, u_int32_t)
#define CRSFEAT_RSA 0x00000001 /* supports all basic RSA ops */