Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
strcop.h
Go to the documentation of this file.
1 // $Id: strcop.h,v 1.3 2003/10/22 13:27:12 henriken Exp $
2 
3 // Streamcop meta-data configuration structs
4 
6  unsigned char csumsel : 3;
7  unsigned char ciphsel : 3;
8  unsigned char ciphconf : 2;
9  unsigned char hashsel : 3;
10  unsigned char hashconf : 1;
11  unsigned char hashmode : 1;
12  unsigned char decrypt : 1;
13  unsigned char dlkey : 1;
14  unsigned char cbcmode : 1;
15 };
16 
18  unsigned char dmasel : 3;
19  unsigned char sync : 1;
20  unsigned char res1 : 5;
21  unsigned char res2;
22 };
23 
24 // Source definitions
25 
26 enum {
27  src_none = 0,
28  src_dma = 1,
29  src_des = 2,
30  src_sha1 = 3,
31  src_csum = 4,
32  src_aes = 5,
33  src_md5 = 6,
34  src_res = 7
35 };
36 
37 // Cipher definitions
38 
39 enum {
40  ciph_des = 0,
41  ciph_3des = 1,
43 };
44 
45 // Hash definitions
46 
47 enum {
48  hash_sha1 = 0,
50 };
51 
52 enum {
53  hash_noiv = 0,
54  hash_iv = 1
55 };
56 
57