1 #ifndef _H_MXHW_CRYPTO_IO
2 #define _H_MXHW_CRYPTO_IO
4 #include "mxhw_crypto.h"
6 #define IOCTLSET_MXCIPHER_INFO 0
7 #define IOCTLGET_MXCIPHER_INFO 1
8 #define IOCTLSET_MXCIPHER_IVEC 2
9 #define IOCTLGET_MXCIPHER_IVEC 3
10 #define IOCTLSET_MXCIPHER_SIZE 4
12 #define CIPHER MCIPHER /* in case some other has the same definition */
14 typedef struct _CIPHER
16 u_int type
:8; /* 0:decrypt or 1:encrypt */
20 u_int klen
:16; /* key lenght in bytes */
21 u_int blen
:16; /* block lenght in bytes */
22 u_char keys
[MAX_MXCIPHER_LEN_KEYS
];