|
1 /* |
|
2 * Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of the License "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 /** |
|
22 @file |
|
23 @publishedPartner |
|
24 @released |
|
25 */ |
|
26 |
|
27 #ifndef CMSDEFS_H |
|
28 #define CMSDEFS_H |
|
29 |
|
30 #include <e32base.h> |
|
31 |
|
32 /** CMS-1 data */ |
|
33 _LIT(KCmsDataOID, "1.2.840.113549.1.7.1"); |
|
34 |
|
35 /** CMS-2 SignedData */ |
|
36 _LIT(KCmsSignedDataOID, "1.2.840.113549.1.7.2"); |
|
37 |
|
38 /** CMS-3 EnvelopedData */ |
|
39 _LIT(KCmsEnvelopedDataOID, "1.2.840.113549.1.7.3"); |
|
40 |
|
41 /** CMS-5 DigestedData */ |
|
42 _LIT(KCmsDigestedDataOID, "1.2.840.113549.1.7.5"); |
|
43 |
|
44 /** CMS-6 EncryptedData */ |
|
45 _LIT(KCmsEncryptedDataOID, "1.2.840.113549.1.7.6"); |
|
46 |
|
47 /** CMS AuthenticatedData */ |
|
48 _LIT(KCmsAuthenticatedDataOID, "1.2.840.113549.1.9.16.1.2"); |
|
49 |
|
50 |
|
51 /** |
|
52 Cms Content Info Types |
|
53 */ |
|
54 enum TCmsContentInfoType |
|
55 { |
|
56 /** |
|
57 Data Type |
|
58 */ |
|
59 EContentTypeData = 1, |
|
60 /** |
|
61 Signed Data Type |
|
62 */ |
|
63 EContentTypeSignedData =2, |
|
64 /** |
|
65 Enveloped Data Type |
|
66 */ |
|
67 EContentTypeEnvelopedData = 3, |
|
68 /** |
|
69 Digested Data Type |
|
70 */ |
|
71 EContentTypeDigestedData = 5, |
|
72 /** |
|
73 Encrypted Data Type |
|
74 */ |
|
75 EContentTypeEncryptedData =6, |
|
76 /** |
|
77 Authenticated Data Type |
|
78 */ |
|
79 EContentTypeAuthenticatedData =7 |
|
80 }; |
|
81 |
|
82 /** |
|
83 CMS version definition |
|
84 */ |
|
85 enum TCmsVersion |
|
86 { |
|
87 /** |
|
88 CMS version 0 |
|
89 */ |
|
90 EVersion_0 = 0, |
|
91 /** |
|
92 CMS version 1 |
|
93 */ |
|
94 EVersion_1 = 1, |
|
95 /** |
|
96 CMS version 2 |
|
97 */ |
|
98 EVersion_2 = 2, |
|
99 /** |
|
100 CMS version 3 |
|
101 */ |
|
102 EVersion_3 = 3, |
|
103 /** |
|
104 CMS version 4 |
|
105 */ |
|
106 EVersion_4 = 4, |
|
107 }; |
|
108 |
|
109 |
|
110 #endif // CMSDEFS_H |