|
1 // SafeContents |
|
2 // PARAM1: salt |
|
3 // PARAM2: iteration count |
|
4 // PARAM3: cipher_oid |
|
5 // PARAM4: cipher |
|
6 // PARAM5: key |
|
7 // PARAM6: iv |
|
8 // PARAM7: The filename of the DER encoded keyfile |
|
9 // PARAM8: The name of the certificate file |
|
10 // PARAM9: The 'friendly' name of the certificate |
|
11 // SafeBag |
|
12 |
|
13 // key bag |
|
14 |
|
15 SEQUENCE |
|
16 OID=PKCS12_BAGTYPES_KEYBAG |
|
17 EXPLICIT |
|
18 INCLUDE_BINARY_FILE=$7 |
|
19 END |
|
20 // Attributes |
|
21 SET |
|
22 SEQUENCE |
|
23 OID=PKCS9_LOCAL_KEYID |
|
24 SET |
|
25 OUTPUT_BINARY_FILE=cb006_localkeyid_firstkey.der,1 |
|
26 OCTETSTRING |
|
27 HASH=sha1 |
|
28 INCLUDE_BINARY_FILE=$8 |
|
29 END |
|
30 END |
|
31 END |
|
32 END |
|
33 END |
|
34 SEQUENCE |
|
35 OID=PKCS9_FRIENDLY_NAME |
|
36 SET |
|
37 OUTPUT_BINARY_FILE=cb006_friendlyname_firstkey.der,1 |
|
38 BMPSTRING=symbian |
|
39 END |
|
40 END |
|
41 END |
|
42 END |
|
43 END |
|
44 |
|
45 |
|
46 |
|
47 // certbag |
|
48 SEQUENCE |
|
49 OID=PKCS12_BAGTYPES_CERTBAG |
|
50 EXPLICIT |
|
51 // CertBag |
|
52 SEQUENCE |
|
53 OID=PKCS9_CERTTYPES_PKCS12_X509 |
|
54 EXPLICIT |
|
55 OCTETSTRING |
|
56 INCLUDE_BINARY_FILE=$8 |
|
57 END |
|
58 END |
|
59 END |
|
60 END |
|
61 // Attributes |
|
62 SET |
|
63 SEQUENCE |
|
64 OID=PKCS9_LOCAL_KEYID |
|
65 SET |
|
66 OUTPUT_BINARY_FILE=cb006_localkeyid_firstcert.der,1 |
|
67 OCTETSTRING |
|
68 HASH=sha1 |
|
69 INCLUDE_BINARY_FILE=$8 |
|
70 END |
|
71 END |
|
72 END |
|
73 END |
|
74 END |
|
75 SEQUENCE |
|
76 OID=PKCS9_FRIENDLY_NAME |
|
77 SET |
|
78 OUTPUT_BINARY_FILE=cb006_friendlyname_firstcert.der,1 |
|
79 BMPSTRING=symbian |
|
80 END |
|
81 END |
|
82 END |
|
83 END |
|
84 END |
|
85 |
|
86 // Safe Contet bag |
|
87 |
|
88 SEQUENCE |
|
89 OID=PKCS12_BAGTYPES_SAFECONTENTSBAG |
|
90 EXPLICIT=0 |
|
91 INCLUDE=../safecontents.txt,safebag_CB006_1.txt,,,, |
|
92 END |
|
93 // Attributes |
|
94 SET |
|
95 SEQUENCE |
|
96 OID=PKCS9_FRIENDLY_NAME |
|
97 SET |
|
98 BMPSTRING=symbian |
|
99 END |
|
100 END |
|
101 END |
|
102 END |
|
103 |
|
104 // Shrouded Key bag |
|
105 SEQUENCE |
|
106 OID=PKCS12_BAGTYPES_PKCS8SHROUDEDKEYBAG |
|
107 EXPLICIT |
|
108 OUTPUT_BINARY_FILE=safebag_shrouded_cb006_1.der,1 |
|
109 // KeyBag |
|
110 SEQUENCE |
|
111 SEQUENCE |
|
112 OID=$3 |
|
113 SEQUENCE |
|
114 OCTETSTRING |
|
115 RAW=$1 |
|
116 END |
|
117 INTEGER=$2 |
|
118 END |
|
119 END |
|
120 OCTETSTRING |
|
121 ENCRYPT=$4,$5,$6 |
|
122 INCLUDE_BINARY_FILE=$7 |
|
123 END |
|
124 END |
|
125 END |
|
126 END |
|
127 END |
|
128 // Attributes |
|
129 SET |
|
130 SEQUENCE |
|
131 OID=PKCS9_LOCAL_KEYID |
|
132 SET |
|
133 OUTPUT_BINARY_FILE=cb006_localkeyid_firstshrouded.der,1 |
|
134 OCTETSTRING |
|
135 HASH=sha1 |
|
136 INCLUDE_BINARY_FILE=$8 |
|
137 END |
|
138 END |
|
139 END |
|
140 END |
|
141 END |
|
142 SEQUENCE |
|
143 OID=PKCS9_FRIENDLY_NAME |
|
144 SET |
|
145 OUTPUT_BINARY_FILE=cb006_friendlyname_firstshrouded.der,1 |
|
146 BMPSTRING=symbian |
|
147 END |
|
148 END |
|
149 END |
|
150 END |
|
151 END |
|
152 |
|
153 |