Update contrib.
9 File = C:\tpkcs7\data\corrupt1
10 RootCertificate = C:\tpkcs7\data\rootcertificate
11 Reason = -6 ; KErrArgument
14 ; Clearly not a PKCS7 entity
15 File = C:\tpkcs7\data\corrupt2
16 RootCertificate = C:\tpkcs7\data\rootcertificate
17 Reason = -6 ; KErrArgument
20 ; A PKCS7 entity that is slightly truncated
21 File = C:\tpkcs7\data\corrupt3
22 RootCertificate = C:\tpkcs7\data\rootcertificate
23 Reason = -6 ; KErrArgument
26 ; A PKCS7 entity with an internal length field corrupted
27 File = C:\tpkcs7\data\corrupt4
28 RootCertificate = C:\tpkcs7\data\rootcertificate
29 Reason = -6 ; KErrArgument
32 ; This contains the signed data "The quick brown fox jumps over the lazy dog" but has expired
33 File = C:\tpkcs7\data\expired1
34 RootCertificate = C:\tpkcs7\data\rootcertificate
38 ContentString = 54686520717569636b2062726f776e20666f78206a756d7073206f76657220746865206c617a7920646f670a
43 ; This contains the signed data "Hello world\n\n" but the
44 ; certificate chain root is not on the device
45 File = C:\tpkcs7\data\noroot1
46 RootCertificate = C:\tpkcs7\data\rootcertificate
50 ContentString = 48656c6c6f20776f726c640a0a
55 ; This contains the signed data "Hello world\n\n"
56 File = C:\tpkcs7\data\valid1
57 RootCertificate = C:\tpkcs7\data\rootcertificate
61 ContentString = 48656c6c6f20776f726c640a0a
66 ; This contains signed data of non-trivial length
67 File = C:\tpkcs7\data\valid2
68 RootCertificate = C:\tpkcs7\data\rootcertificate
71 ContentLength = 126053
76 ; This contains signed data of zero length
77 File = C:\tpkcs7\data\valid3
78 RootCertificate = C:\tpkcs7\data\rootcertificate
86 ; This contains ContentInfo which has Encrypted Data in it
87 ; Here Data is encrypted using one of the unsupported Algorithms
88 ; PBES1, pbeWithSHA1AndDES-CBC is used.
89 ; The test data generation is not automated in this case.
90 ; The test data is generated using the openssl.
91 File = C:\tpkcs7\data\sha1anddes-cbc
94 ContentType = 1.2.840.113549.1.7.1
95 ContentData = C:\tpkcs7\data\empty
96 Salt = C:\tpkcs7\data\empty
98 Algorithm = pbeWithSHA1AndDES-CBC
99 HashAlgorithmId = ESHA1
103 [GOOD2_ENCRYPTEDDATA]
104 ; This contains ContentInfo which has Encrypted Data in it
105 ; pbe12 Algorithm, pbeWithSHA1And128BitRC4 is used.
106 File = C:\tpkcs7\data\sha1and128bitrc4.der
109 ContentType = 1.2.840.113549.1.7.1
110 ContentData = C:\tpkcs7\data\sha1and128bitrc4_encryptedcontent.der
111 Salt = C:\tpkcs7\data\sha1and128bitrc4_salt.der
113 Algorithm = pbeWithSHA1And128BitRC4
114 HashAlgorithmId = ESHA1
117 [GOOD3_ENCRYPTEDDATA]
118 ; This contains ContentInfo which has Encrypted Data in it
119 ; pbe12 Algorithm, pbeWithSHA1And40BitRC4 is used.
120 File = C:\tpkcs7\data\sha1and40bitrc4.der
123 ContentType = 1.2.840.113549.1.7.1
124 ContentData = C:\tpkcs7\data\sha1and40bitrc4_encryptedcontent.der
125 Salt = C:\tpkcs7\data\sha1and40bitrc4_salt.der
127 Algorithm = pbeWithSHA1And40BitRC4
128 HashAlgorithmId = ESHA1
131 [GOOD4_ENCRYPTEDDATA]
132 ; This contains ContentInfo which has Encrypted Data in it
133 ; pbewithSHAAnd128BitRC2CBC alg used
134 File = C:\tpkcs7\data\sha1and128bitrc2.der
137 ContentType = 1.2.840.113549.1.7.1
138 ContentData = C:\tpkcs7\data\sha1and128bitrc2_encryptedcontent.der
139 Salt = C:\tpkcs7\data\sha1and128bitrc2_salt.der
141 Algorithm = pbewithSHAAnd128BitRC2CBC
142 HashAlgorithmId = ESHA1
145 [GOOD5_ENCRYPTEDDATA]
146 ; This contains ContentInfo which has Encrypted Data in it
147 ; pbeWithSHAAnd3_KeyTripleDES_CBC is used
148 File = C:\tpkcs7\data\sha1and3_keytripledes_cbc.der
151 ContentType = 1.2.840.113549.1.7.1
152 ContentData = C:\tpkcs7\data\sha1and3_keytripledes_cbc_encryptedcontent.der
153 Salt = C:\tpkcs7\data\sha1and3_keytripledes_cbc_salt.der
155 Algorithm = pbeWithSHAAnd3_KeyTripleDES_CBC
156 HashAlgorithmId = ESHA1
159 [GOOD6_ENCRYPTEDDATA]
160 ; This contains ContentInfo which has Encrypted Data in it
161 ; pbeWithSHA1And40BitRC2_CBC is used
162 File = C:\tpkcs7\data\sha1and40bitrc2_cbc.der
165 ContentType = 1.2.840.113549.1.7.1
166 ContentData = C:\tpkcs7\data\sha1and40bitrc2_cbc_encryptedcontent.der
167 Salt = C:\tpkcs7\data\sha1and40bitrc2_cbc_salt.der
169 Algorithm = pbeWithSHA1And40BitRC2_CBC
170 HashAlgorithmId = ESHA1
173 [GOOD8_ENCRYPTEDDATA]
174 ; This contains encrypted content data
175 ; pbeWithSHAAnd2-KeyTripleDES-CBC is used
176 File = C:\tpkcs7\data\sha1and2_keytripledes.der
179 ContentType = 1.2.840.113549.1.7.1
180 ContentData = C:\tpkcs7\data\sha1and2_keytripledes_encryptedcontent.der
181 Salt = C:\tpkcs7\data\sha1and2_keytripledes_salt.der
183 Algorithm = pbeWithSHAAnd2-KeyTripleDES-CBC
184 HashAlgorithmId = ESHA1
187 [GOOD7_ENCRYPTEDDATA]
188 ; This contains ContentInfo which is not EncryptedData
189 File = C:\tpkcs7\data\notencrypteddata.der
190 Reason = -6 ; KErrNotSupported
192 ContentType = 1.2.840.113549.1.7.1
193 ContentData = C:\tpkcs7\data\empty
194 Salt = C:\tpkcs7\data\empty
196 Algorithm = pbeWithSHA1AndDES-CBC
197 HashAlgorithmId = ESHA1
200 [GOOD9_ENCRYPTEDDATA]
201 ; This contains encrypted content data
202 ; It has no algorithm parameters
203 ; The Algorithm id is pkcs-12Pbe
204 File = C:\tpkcs7\data\encrypteddata_withoutsalt.der
207 ContentType = 1.2.840.113549.1.7.1
208 ContentData = C:\tpkcs7\data\encrypteddata_withoutsalt_content.der
209 Salt = C:\tpkcs7\data\empty
211 Algorithm = pbeWithSHA1And40BitRC4
212 HashAlgorithmId = ESHA1
215 [GOOD10_ENCRYPTEDDATA]
216 ; This contains encrypted content data, here the version is not equal to 0
217 File = C:\tpkcs7\data\pkcs7_encryptedneg_version.der
218 Reason = -6 ; KErrNotSupported
220 ContentType = 1.2.840.113549.1.7.1
221 ContentData = C:\tpkcs7\data\empty
222 Salt = C:\tpkcs7\data\empty
224 Algorithm = pbeWithSHA1And40BitRC2_CBC
225 HashAlgorithmId = ESHA1
228 [GOOD11_ENCRYPTEDDATA]
229 ; This contains encrypted content data, here the content type within EncryptedContentInfo is not DATA
230 File = C:\tpkcs7\data\pkcs7_encryptedneg_contentType.der
231 Reason = -5 ; KErrNotSupported
233 ContentType = 1.2.840.113549.1.7.1
234 ContentData = C:\tpkcs7\data\empty
235 Salt = C:\tpkcs7\data\empty
237 Algorithm = pbeWithSHA1And40BitRC2_CBC
238 HashAlgorithmId = ESHA1
241 [GOOD12_ENCRYPTEDDATA]
242 ; This contains ContentInfo which does not have EncryptedData
243 File = C:\tpkcs7\data\notencrypteddata.der
246 ContentType = 1.2.840.113549.1.7.1
247 ContentData = C:\tpkcs7\data\empty
248 Salt = C:\tpkcs7\data\empty
250 Algorithm = pbeWithSHA1And40BitRC2_CBC
251 HashAlgorithmId = ESHA1
254 [GOOD13_ENCRYPTEDDATA]
255 ; This contains encrypted content data, here the Encryptedcontent is not present
256 File = C:\tpkcs7\data\pkcs7_encryptedneg_noencryptedcon.der
257 Reason = 0 ; KErrNotSupported
259 ContentType = 1.2.840.113549.1.7.1
260 ContentData = C:\tpkcs7\data\empty
261 Salt = C:\tpkcs7\data\pkcs7_encryptedneg_nocontsalt.der
263 Algorithm = pbeWithSHA1And40BitRC2_CBC
264 HashAlgorithmId = ESHA1
267 [GOOD14_ENCRYPTEDDATA]
268 ; This contains encrypted content data, here the Version Tag is not an INTEGER
269 File = C:\tpkcs7\data\encrypteddata_versiontag.der
272 ContentType = 1.2.840.113549.1.7.1
273 ContentData = C:\tpkcs7\data\empty
274 Salt = C:\tpkcs7\data\empty
276 Algorithm = pbeWithSHA1And40BitRC2_CBC
277 HashAlgorithmId = ESHA1
281 [GOODFILE_ENCRYPTEDDATA_Corrupt2]
282 ; This contains ContentInfo which is corrupted by deleting some part of the sequence
283 File = C:\tpkcs7\data\pkcs7_encrypteddata_corrupt2
284 Reason = -6 ; KErrArgument
285 ContentType = 1.2.840.113549.1.7.1
286 ContentData = C:\tpkcs7\data\empty
287 Salt = C:\tpkcs7\data\empty
289 Algorithm = pbeWithSHA1AndDES-CBC
290 HashAlgorithmId = ESHA1
292 [GOODFILE_DIGESTINFO]
293 ; This contains Digest Info where the Digest Algorithm Id is SHA1
294 File = C:\tpkcs7\data\digestinfo_sha1.der
295 DigestValue = C:\tpkcs7\data\digest_sha1.der
297 EncodedParams = C:\tpkcs7\data\empty
301 [GOODFILE_DIGESTINFO1]
302 ; This contains Digest Info where the Digest Algorithm Id is unsupported
303 File = C:\tpkcs7\data\digestinfo_unsupportedalg.der
307 [GOODFILE_DIGESTINFO2]
308 ; This contains Digest Info where the Digest Algorithm Id is MD5
309 File = C:\tpkcs7\data\digestinfo_md5alg.der
310 DigestValue = C:\tpkcs7\data\pkcs7_digest_md5alg.der
312 EncodedParams = C:\tpkcs7\data\empty
316 [GOODFILE_DIGESTINFO3]
317 ; This contains Digest Info where the Tags dont match
318 File = C:\tpkcs7\data\digestinfo_negalgtag.der
319 DigestValue = C:\tpkcs7\data\empty
321 EncodedParams = C:\tpkcs7\data\empty
324 [GOODFILE_DIGESTINFO4]
325 ; This contains Digest Info where the Tags dont match
326 File = C:\tpkcs7\data\digestinfo_digest_notoctetstring.der
328 EncodedParams = C:\tpkcs7\data\empty
332 [GOODFILE_DIGESTINFO_CORRUPT]
333 ; This contains Digest Info which does not have digest in it.
334 File = C:\tpkcs7\data\digestinfo_nodigest.der
336 EncodedParams = C:\tpkcs7\data\empty
337 Reason = -6 ; KErrArgument
342 File = C:\tpkcs7\data\sha1and40bitrc2_cbc.der
343 Reason = -6 ; KErrArgument
348 File = C:\tpkcs7\data\digestinfo_sha1.der
349 Reason = -6 ; KErrArgument
354 File = C:\tpkcs7\data\sha1and40bitrc2_cbc.der
355 Reason = -6 ; KErrArgument