MOXA linux-2.6.x / linux-2.6.9-uc0 from sdlinux-moxaart.tgz
[linux-2.6.9-moxart.git] / drivers / char / mxhwenp / include / mxhw_crypto.h
blob4a64146e2b2391005efc896d64cf80f0d7599e2f
1 #ifndef _H_MXHW_CRYPTO
2 #define _H_MXHW_CRYPTO
4 #ifdef DEBUG
5 #ifdef MODULE
6 #define DBG printk
7 #else
8 #define DBG printf
9 #endif
10 #else
11 #define DBG( a... )
12 #endif
14 #define MXCIPHER_TYPE_ENC 1
15 #define MXCIPHER_TYPE_DEC 0
17 #define MXCIPHER_MODE_ECB 0
18 #define MXCIPHER_MODE_CBC 1
19 #define MXCIPHER_MODE_OFB 2
20 #define MXCIPHER_MODE_CFB 3
21 #define MXCIPHER_MODE_CTR 4
22 #define MXCIPHER_MODE_END 5
24 #define MXCIPHER_ALGO_DES 0
25 #define MXCIPHER_ALGO_3DES 1
26 #define MXCIPHER_ALGO_AES128 2
27 #define MXCIPHER_ALGO_AES192 3
28 #define MXCIPHER_ALGO_AES256 4
29 #define MXCIPHER_ALGO_END 5
30 #define MXCIPHER_ALGO_AES 6
32 #define MAX_MXCIPHER_LEN_KEYS 32 /* DES (8), 3DES (24), AES (16,24,32) */
33 #define MAX_MXCIPHER_LEN_IVEC 16 /* DES (8), 3DES (8), AES (16) */
35 #define MAX_CIPHER_REQUESTS 16
36 #define MAX_CIPHER_CLIENTS 32 /* maximum # of processes the driver is willing to handle */
37 #define MAX_CIPHER_PACKET 4112 /* MAX_CIPHER_BUFFER+16 */
39 #endif