sl@0: ; sl@0: ; tpkcs7.ini sl@0: ; sl@0: sl@0: sl@0: sl@0: [CORRUPT1] sl@0: ; An empty file sl@0: File = C:\tpkcs7\data\corrupt1 sl@0: RootCertificate = C:\tpkcs7\data\rootcertificate sl@0: Reason = -6 ; KErrArgument sl@0: sl@0: [CORRUPT2] sl@0: ; Clearly not a PKCS7 entity sl@0: File = C:\tpkcs7\data\corrupt2 sl@0: RootCertificate = C:\tpkcs7\data\rootcertificate sl@0: Reason = -6 ; KErrArgument sl@0: sl@0: [CORRUPT3] sl@0: ; A PKCS7 entity that is slightly truncated sl@0: File = C:\tpkcs7\data\corrupt3 sl@0: RootCertificate = C:\tpkcs7\data\rootcertificate sl@0: Reason = -6 ; KErrArgument sl@0: sl@0: [CORRUPT4] sl@0: ; A PKCS7 entity with an internal length field corrupted sl@0: File = C:\tpkcs7\data\corrupt4 sl@0: RootCertificate = C:\tpkcs7\data\rootcertificate sl@0: Reason = -6 ; KErrArgument sl@0: sl@0: [INVALID1] sl@0: ; This contains the signed data "The quick brown fox jumps over the lazy dog" but has expired sl@0: File = C:\tpkcs7\data\expired1 sl@0: RootCertificate = C:\tpkcs7\data\rootcertificate sl@0: IsValid = false sl@0: ContentType = 1 sl@0: ContentLength = 44 sl@0: ContentString = 54686520717569636b2062726f776e20666f78206a756d7073206f76657220746865206c617a7920646f670a sl@0: CertificateCount = 2 sl@0: SignerCount = 1 sl@0: sl@0: [INVALID2] sl@0: ; This contains the signed data "Hello world\n\n" but the sl@0: ; certificate chain root is not on the device sl@0: File = C:\tpkcs7\data\noroot1 sl@0: RootCertificate = C:\tpkcs7\data\rootcertificate sl@0: IsValid = false sl@0: ContentType = 1 sl@0: ContentLength = 13 sl@0: ContentString = 48656c6c6f20776f726c640a0a sl@0: CertificateCount = 2 sl@0: SignerCount = 1 sl@0: sl@0: [GOODFILE1] sl@0: ; This contains the signed data "Hello world\n\n" sl@0: File = C:\tpkcs7\data\valid1 sl@0: RootCertificate = C:\tpkcs7\data\rootcertificate sl@0: IsValid = true sl@0: ContentType = 1 sl@0: ContentLength = 13 sl@0: ContentString = 48656c6c6f20776f726c640a0a sl@0: CertificateCount = 2 sl@0: SignerCount = 1 sl@0: sl@0: [GOODFILE2] sl@0: ; This contains signed data of non-trivial length sl@0: File = C:\tpkcs7\data\valid2 sl@0: RootCertificate = C:\tpkcs7\data\rootcertificate sl@0: IsValid = true sl@0: ContentType = 1 sl@0: ContentLength = 126053 sl@0: CertificateCount = 2 sl@0: SignerCount = 1 sl@0: sl@0: [GOODFILE3] sl@0: ; This contains signed data of zero length sl@0: File = C:\tpkcs7\data\valid3 sl@0: RootCertificate = C:\tpkcs7\data\rootcertificate sl@0: IsValid = true sl@0: ContentType = 1 sl@0: ContentLength = 0 sl@0: CertificateCount = 2 sl@0: SignerCount = 1 sl@0: sl@0: [GOOD1_ENCRYPTEDDATA] sl@0: ; This contains ContentInfo which has Encrypted Data in it sl@0: ; Here Data is encrypted using one of the unsupported Algorithms sl@0: ; PBES1, pbeWithSHA1AndDES-CBC is used. sl@0: ; The test data generation is not automated in this case. sl@0: ; The test data is generated using the openssl. sl@0: File = C:\tpkcs7\data\sha1anddes-cbc sl@0: IsValid = false sl@0: Reason = -5 sl@0: ContentType = 1.2.840.113549.1.7.1 sl@0: ContentData = C:\tpkcs7\data\empty sl@0: Salt = C:\tpkcs7\data\empty sl@0: Iteration = 2048 sl@0: Algorithm = pbeWithSHA1AndDES-CBC sl@0: HashAlgorithmId = ESHA1 sl@0: Password = sl@0: sl@0: sl@0: [GOOD2_ENCRYPTEDDATA] sl@0: ; This contains ContentInfo which has Encrypted Data in it sl@0: ; pbe12 Algorithm, pbeWithSHA1And128BitRC4 is used. sl@0: File = C:\tpkcs7\data\sha1and128bitrc4.der sl@0: IsValid = true sl@0: Reason = 0 sl@0: ContentType = 1.2.840.113549.1.7.1 sl@0: ContentData = C:\tpkcs7\data\sha1and128bitrc4_encryptedcontent.der sl@0: Salt = C:\tpkcs7\data\sha1and128bitrc4_salt.der sl@0: Iteration = 2048 sl@0: Algorithm = pbeWithSHA1And128BitRC4 sl@0: HashAlgorithmId = ESHA1 sl@0: Password = symbian sl@0: sl@0: [GOOD3_ENCRYPTEDDATA] sl@0: ; This contains ContentInfo which has Encrypted Data in it sl@0: ; pbe12 Algorithm, pbeWithSHA1And40BitRC4 is used. sl@0: File = C:\tpkcs7\data\sha1and40bitrc4.der sl@0: IsValid = true sl@0: Reason = 0 sl@0: ContentType = 1.2.840.113549.1.7.1 sl@0: ContentData = C:\tpkcs7\data\sha1and40bitrc4_encryptedcontent.der sl@0: Salt = C:\tpkcs7\data\sha1and40bitrc4_salt.der sl@0: Iteration = 2048 sl@0: Algorithm = pbeWithSHA1And40BitRC4 sl@0: HashAlgorithmId = ESHA1 sl@0: Password = symbian sl@0: sl@0: [GOOD4_ENCRYPTEDDATA] sl@0: ; This contains ContentInfo which has Encrypted Data in it sl@0: ; pbewithSHAAnd128BitRC2CBC alg used sl@0: File = C:\tpkcs7\data\sha1and128bitrc2.der sl@0: IsValid = true sl@0: Reason = 0 sl@0: ContentType = 1.2.840.113549.1.7.1 sl@0: ContentData = C:\tpkcs7\data\sha1and128bitrc2_encryptedcontent.der sl@0: Salt = C:\tpkcs7\data\sha1and128bitrc2_salt.der sl@0: Iteration = 2048 sl@0: Algorithm = pbewithSHAAnd128BitRC2CBC sl@0: HashAlgorithmId = ESHA1 sl@0: Password = symbian sl@0: sl@0: [GOOD5_ENCRYPTEDDATA] sl@0: ; This contains ContentInfo which has Encrypted Data in it sl@0: ; pbeWithSHAAnd3_KeyTripleDES_CBC is used sl@0: File = C:\tpkcs7\data\sha1and3_keytripledes_cbc.der sl@0: IsValid = true sl@0: Reason = 0 sl@0: ContentType = 1.2.840.113549.1.7.1 sl@0: ContentData = C:\tpkcs7\data\sha1and3_keytripledes_cbc_encryptedcontent.der sl@0: Salt = C:\tpkcs7\data\sha1and3_keytripledes_cbc_salt.der sl@0: Iteration = 2048 sl@0: Algorithm = pbeWithSHAAnd3_KeyTripleDES_CBC sl@0: HashAlgorithmId = ESHA1 sl@0: Password = symbian sl@0: sl@0: [GOOD6_ENCRYPTEDDATA] sl@0: ; This contains ContentInfo which has Encrypted Data in it sl@0: ; pbeWithSHA1And40BitRC2_CBC is used sl@0: File = C:\tpkcs7\data\sha1and40bitrc2_cbc.der sl@0: IsValid = true sl@0: Reason = 0 sl@0: ContentType = 1.2.840.113549.1.7.1 sl@0: ContentData = C:\tpkcs7\data\sha1and40bitrc2_cbc_encryptedcontent.der sl@0: Salt = C:\tpkcs7\data\sha1and40bitrc2_cbc_salt.der sl@0: Iteration = 2048 sl@0: Algorithm = pbeWithSHA1And40BitRC2_CBC sl@0: HashAlgorithmId = ESHA1 sl@0: Password = symbian sl@0: sl@0: [GOOD8_ENCRYPTEDDATA] sl@0: ; This contains encrypted content data sl@0: ; pbeWithSHAAnd2-KeyTripleDES-CBC is used sl@0: File = C:\tpkcs7\data\sha1and2_keytripledes.der sl@0: IsValid = true sl@0: Reason = 0 sl@0: ContentType = 1.2.840.113549.1.7.1 sl@0: ContentData = C:\tpkcs7\data\sha1and2_keytripledes_encryptedcontent.der sl@0: Salt = C:\tpkcs7\data\sha1and2_keytripledes_salt.der sl@0: Iteration = 2048 sl@0: Algorithm = pbeWithSHAAnd2-KeyTripleDES-CBC sl@0: HashAlgorithmId = ESHA1 sl@0: Password = symbian sl@0: sl@0: [GOOD7_ENCRYPTEDDATA] sl@0: ; This contains ContentInfo which is not EncryptedData sl@0: File = C:\tpkcs7\data\notencrypteddata.der sl@0: Reason = -6 ; KErrNotSupported sl@0: IsValid = false sl@0: ContentType = 1.2.840.113549.1.7.1 sl@0: ContentData = C:\tpkcs7\data\empty sl@0: Salt = C:\tpkcs7\data\empty sl@0: Iteration = 2048 sl@0: Algorithm = pbeWithSHA1AndDES-CBC sl@0: HashAlgorithmId = ESHA1 sl@0: sl@0: sl@0: [GOOD9_ENCRYPTEDDATA] sl@0: ; This contains encrypted content data sl@0: ; It has no algorithm parameters sl@0: ; The Algorithm id is pkcs-12Pbe sl@0: File = C:\tpkcs7\data\encrypteddata_withoutsalt.der sl@0: Reason = -6 sl@0: IsValid = false sl@0: ContentType = 1.2.840.113549.1.7.1 sl@0: ContentData = C:\tpkcs7\data\encrypteddata_withoutsalt_content.der sl@0: Salt = C:\tpkcs7\data\empty sl@0: Iteration = 1 sl@0: Algorithm = pbeWithSHA1And40BitRC4 sl@0: HashAlgorithmId = ESHA1 sl@0: Password = symbian sl@0: sl@0: [GOOD10_ENCRYPTEDDATA] sl@0: ; This contains encrypted content data, here the version is not equal to 0 sl@0: File = C:\tpkcs7\data\pkcs7_encryptedneg_version.der sl@0: Reason = -6 ; KErrNotSupported sl@0: IsValid = false sl@0: ContentType = 1.2.840.113549.1.7.1 sl@0: ContentData = C:\tpkcs7\data\empty sl@0: Salt = C:\tpkcs7\data\empty sl@0: Iteration = 2048 sl@0: Algorithm = pbeWithSHA1And40BitRC2_CBC sl@0: HashAlgorithmId = ESHA1 sl@0: Password = symbian sl@0: sl@0: [GOOD11_ENCRYPTEDDATA] sl@0: ; This contains encrypted content data, here the content type within EncryptedContentInfo is not DATA sl@0: File = C:\tpkcs7\data\pkcs7_encryptedneg_contentType.der sl@0: Reason = -5 ; KErrNotSupported sl@0: IsValid = false sl@0: ContentType = 1.2.840.113549.1.7.1 sl@0: ContentData = C:\tpkcs7\data\empty sl@0: Salt = C:\tpkcs7\data\empty sl@0: Iteration = 2048 sl@0: Algorithm = pbeWithSHA1And40BitRC2_CBC sl@0: HashAlgorithmId = ESHA1 sl@0: Password = symbian sl@0: sl@0: [GOOD12_ENCRYPTEDDATA] sl@0: ; This contains ContentInfo which does not have EncryptedData sl@0: File = C:\tpkcs7\data\notencrypteddata.der sl@0: Reason = -6 ; sl@0: IsValid = false sl@0: ContentType = 1.2.840.113549.1.7.1 sl@0: ContentData = C:\tpkcs7\data\empty sl@0: Salt = C:\tpkcs7\data\empty sl@0: Iteration = 2048 sl@0: Algorithm = pbeWithSHA1And40BitRC2_CBC sl@0: HashAlgorithmId = ESHA1 sl@0: Password = symbian sl@0: sl@0: [GOOD13_ENCRYPTEDDATA] sl@0: ; This contains encrypted content data, here the Encryptedcontent is not present sl@0: File = C:\tpkcs7\data\pkcs7_encryptedneg_noencryptedcon.der sl@0: Reason = 0 ; KErrNotSupported sl@0: IsValid = true sl@0: ContentType = 1.2.840.113549.1.7.1 sl@0: ContentData = C:\tpkcs7\data\empty sl@0: Salt = C:\tpkcs7\data\pkcs7_encryptedneg_nocontsalt.der sl@0: Iteration = 2048 sl@0: Algorithm = pbeWithSHA1And40BitRC2_CBC sl@0: HashAlgorithmId = ESHA1 sl@0: Password = symbian sl@0: sl@0: [GOOD14_ENCRYPTEDDATA] sl@0: ; This contains encrypted content data, here the Version Tag is not an INTEGER sl@0: File = C:\tpkcs7\data\encrypteddata_versiontag.der sl@0: Reason = -6 ; sl@0: IsValid = false sl@0: ContentType = 1.2.840.113549.1.7.1 sl@0: ContentData = C:\tpkcs7\data\empty sl@0: Salt = C:\tpkcs7\data\empty sl@0: Iteration = 2048 sl@0: Algorithm = pbeWithSHA1And40BitRC2_CBC sl@0: HashAlgorithmId = ESHA1 sl@0: Password = symbian sl@0: sl@0: sl@0: [GOODFILE_ENCRYPTEDDATA_Corrupt2] sl@0: ; This contains ContentInfo which is corrupted by deleting some part of the sequence sl@0: File = C:\tpkcs7\data\pkcs7_encrypteddata_corrupt2 sl@0: Reason = -6 ; KErrArgument sl@0: ContentType = 1.2.840.113549.1.7.1 sl@0: ContentData = C:\tpkcs7\data\empty sl@0: Salt = C:\tpkcs7\data\empty sl@0: Iteration = 2048 sl@0: Algorithm = pbeWithSHA1AndDES-CBC sl@0: HashAlgorithmId = ESHA1 sl@0: sl@0: [GOODFILE_DIGESTINFO] sl@0: ; This contains Digest Info where the Digest Algorithm Id is SHA1 sl@0: File = C:\tpkcs7\data\digestinfo_sha1.der sl@0: DigestValue = C:\tpkcs7\data\digest_sha1.der sl@0: AlgorithmId = SHA1 sl@0: EncodedParams = C:\tpkcs7\data\empty sl@0: Reason = 0 sl@0: sl@0: sl@0: [GOODFILE_DIGESTINFO1] sl@0: ; This contains Digest Info where the Digest Algorithm Id is unsupported sl@0: File = C:\tpkcs7\data\digestinfo_unsupportedalg.der sl@0: Reason = -5 sl@0: sl@0: sl@0: [GOODFILE_DIGESTINFO2] sl@0: ; This contains Digest Info where the Digest Algorithm Id is MD5 sl@0: File = C:\tpkcs7\data\digestinfo_md5alg.der sl@0: DigestValue = C:\tpkcs7\data\pkcs7_digest_md5alg.der sl@0: AlgorithmId = MD5 sl@0: EncodedParams = C:\tpkcs7\data\empty sl@0: Reason = 0 sl@0: sl@0: sl@0: [GOODFILE_DIGESTINFO3] sl@0: ; This contains Digest Info where the Tags dont match sl@0: File = C:\tpkcs7\data\digestinfo_negalgtag.der sl@0: DigestValue = C:\tpkcs7\data\empty sl@0: AlgorithmId = SHA1 sl@0: EncodedParams = C:\tpkcs7\data\empty sl@0: Reason = -6 sl@0: sl@0: [GOODFILE_DIGESTINFO4] sl@0: ; This contains Digest Info where the Tags dont match sl@0: File = C:\tpkcs7\data\digestinfo_digest_notoctetstring.der sl@0: AlgorithmId = SHA1 sl@0: EncodedParams = C:\tpkcs7\data\empty sl@0: Reason = -6 sl@0: sl@0: sl@0: [GOODFILE_DIGESTINFO_CORRUPT] sl@0: ; This contains Digest Info which does not have digest in it. sl@0: File = C:\tpkcs7\data\digestinfo_nodigest.der sl@0: AlgorithmId = ESHA1 sl@0: EncodedParams = C:\tpkcs7\data\empty sl@0: Reason = -6 ; KErrArgument sl@0: sl@0: sl@0: ;CONTENTINFO sl@0: [OOMTEST1] sl@0: File = C:\tpkcs7\data\sha1and40bitrc2_cbc.der sl@0: Reason = -6 ; KErrArgument sl@0: OOMTestNo = 1 sl@0: sl@0: ;DIGESTINFO sl@0: [OOMTEST2] sl@0: File = C:\tpkcs7\data\digestinfo_sha1.der sl@0: Reason = -6 ; KErrArgument sl@0: OOMTestNo = 2 sl@0: sl@0: ; ENCRYPTED DATA sl@0: [OOMTEST3] sl@0: File = C:\tpkcs7\data\sha1and40bitrc2_cbc.der sl@0: Reason = -6 ; KErrArgument sl@0: OOMTestNo = 3 sl@0: sl@0: sl@0: sl@0: sl@0: sl@0: