|
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=cb005_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=cb005_friendlyname_firstkey.der,1 |
|
38 BMPSTRING=symbian |
|
39 END |
|
40 END |
|
41 END |
|
42 END |
|
43 END |
|
44 |
|
45 |
|
46 |
|
47 |
|
48 // certbag |
|
49 SEQUENCE |
|
50 OID=PKCS12_BAGTYPES_CERTBAG |
|
51 EXPLICIT |
|
52 // CertBag |
|
53 SEQUENCE |
|
54 OID=PKCS9_CERTTYPES_PKCS12_X509 |
|
55 EXPLICIT |
|
56 OCTETSTRING |
|
57 INCLUDE_BINARY_FILE=$8 |
|
58 END |
|
59 END |
|
60 END |
|
61 END |
|
62 // Attributes |
|
63 SET |
|
64 SEQUENCE |
|
65 OID=PKCS9_LOCAL_KEYID |
|
66 SET |
|
67 OUTPUT_BINARY_FILE=cb005_localkeyid_firstcertbag.der,1 |
|
68 OCTETSTRING |
|
69 HASH=sha1 |
|
70 INCLUDE_BINARY_FILE=$8 |
|
71 END |
|
72 END |
|
73 END |
|
74 END |
|
75 END |
|
76 SEQUENCE |
|
77 OID=PKCS9_FRIENDLY_NAME |
|
78 SET |
|
79 OUTPUT_BINARY_FILE=cb005_friendlyname_firstcertbag.der,1 |
|
80 BMPSTRING=symbian |
|
81 END |
|
82 END |
|
83 END |
|
84 END |
|
85 END |
|
86 |
|
87 // Shrouded Key bag |
|
88 SEQUENCE |
|
89 OID=PKCS12_BAGTYPES_PKCS8SHROUDEDKEYBAG |
|
90 EXPLICIT |
|
91 OUTPUT_BINARY_FILE=safebag_shrouded_cb005_1.der,1 |
|
92 // KeyBag |
|
93 SEQUENCE |
|
94 SEQUENCE |
|
95 OID=$3 |
|
96 SEQUENCE |
|
97 OCTETSTRING |
|
98 RAW=$1 |
|
99 END |
|
100 INTEGER=$2 |
|
101 END |
|
102 END |
|
103 OCTETSTRING |
|
104 ENCRYPT=$4,$5,$6 |
|
105 INCLUDE_BINARY_FILE=$7 |
|
106 END |
|
107 END |
|
108 END |
|
109 END |
|
110 END |
|
111 // Attributes |
|
112 SET |
|
113 SEQUENCE |
|
114 OID=PKCS9_LOCAL_KEYID |
|
115 SET |
|
116 OUTPUT_BINARY_FILE=cb005_localkeyid_firstshrouded.der,1 |
|
117 OCTETSTRING |
|
118 HASH=sha1 |
|
119 INCLUDE_BINARY_FILE=$8 |
|
120 END |
|
121 END |
|
122 END |
|
123 END |
|
124 END |
|
125 SEQUENCE |
|
126 OID=PKCS9_FRIENDLY_NAME |
|
127 SET |
|
128 OUTPUT_BINARY_FILE=cb005_friendlyname_firstshrouded.der,1 |
|
129 BMPSTRING=symbian |
|
130 END |
|
131 END |
|
132 END |
|
133 END |
|
134 END |
|
135 |