diff options
-rw-r--r-- | sys/crypto/cryptodev.h | 37 |
1 files changed, 1 insertions, 36 deletions
diff --git a/sys/crypto/cryptodev.h b/sys/crypto/cryptodev.h index c64f74ff663..26ab363f245 100644 --- a/sys/crypto/cryptodev.h +++ b/sys/crypto/cryptodev.h @@ -1,4 +1,4 @@ -/* $OpenBSD: cryptodev.h,v 1.70 2017/02/07 17:25:46 patrick Exp $ */ +/* $OpenBSD: cryptodev.h,v 1.71 2017/08/10 18:57:20 tedu Exp $ */ /* * The author of this code is Angelos D. Keromytis (angelos@cis.upenn.edu) @@ -52,7 +52,6 @@ #ifndef _CRYPTO_CRYPTO_H_ #define _CRYPTO_CRYPTO_H_ -#include <sys/ioccom.h> #include <sys/task.h> /* Some initial values */ @@ -217,40 +216,7 @@ struct cryptocap { int (*cc_freesession) (u_int64_t); }; -/* - * ioctl parameter to request creation of a session. - */ -struct session_op { - u_int32_t cipher; /* ie. CRYPTO_AES_CBC */ - u_int32_t mac; /* ie. CRYPTO_MD5_HMAC */ - - u_int32_t keylen; /* cipher key */ - caddr_t key; - int mackeylen; /* mac key */ - caddr_t mackey; - - u_int32_t ses; /* returns: session # */ -}; - -/* - * ioctl parameter to request a crypt/decrypt operation against a session. - */ -struct crypt_op { - u_int32_t ses; - u_int16_t op; /* ie. COP_ENCRYPT */ -#define COP_ENCRYPT 1 -#define COP_DECRYPT 2 - u_int16_t flags; /* always 0 */ - - u_int len; - caddr_t src, dst; /* become iov[] inside kernel */ - caddr_t mac; /* must be big enough for chosen MAC */ - caddr_t iv; -}; - -#define CRYPTO_MAX_MAC_LEN 20 -#ifdef _KERNEL int crypto_newsession(u_int64_t *, struct cryptoini *, int); int crypto_freesession(u_int64_t); int crypto_dispatch(struct cryptop *); @@ -270,5 +236,4 @@ int cuio_apply(struct uio *, int, int, struct cryptop *crypto_getreq(int); void crypto_freereq(struct cryptop *); -#endif /* _KERNEL */ #endif /* _CRYPTO_CRYPTO_H_ */ |