MOXA linux-2.6.x / linux-2.6.9-uc0 from sdlinux-moxaart.tgz
[linux-2.6.9-moxart.git] / drivers / char / cipher / mxhw_crypto_io.h
blob0aed6467840fa7357e5ad319b5b03fdfb7b80429
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 */
17 u_int algo:8;
18 u_int mode:8;
19 u_int bits:8;
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];
23 } CIPHER;
25 #endif