cryptoservices/certificateandkeymgmt/tpkcs7/scripts/tpkcs7_v2.ini
changeset 0 2c201484c85f
child 8 35751d3474b7
equal deleted inserted replaced
-1:000000000000 0:2c201484c85f
       
     1 ;
       
     2 ; tpkcs7.ini
       
     3 ;
       
     4 
       
     5 
       
     6 
       
     7 [CORRUPT1]
       
     8 ; An empty file
       
     9 File = C:\tpkcs7\data\corrupt1
       
    10 RootCertificate = C:\tpkcs7\data\rootcertificate
       
    11 Reason = -6 ; KErrArgument
       
    12 
       
    13 [CORRUPT2]
       
    14 ; Clearly not a PKCS7 entity
       
    15 File = C:\tpkcs7\data\corrupt2
       
    16 RootCertificate = C:\tpkcs7\data\rootcertificate
       
    17 Reason = -6 ; KErrArgument
       
    18 
       
    19 [CORRUPT3]
       
    20 ; A PKCS7 entity that is slightly truncated
       
    21 File = C:\tpkcs7\data\corrupt3
       
    22 RootCertificate = C:\tpkcs7\data\rootcertificate
       
    23 Reason = -6 ; KErrArgument
       
    24 
       
    25 [CORRUPT4]
       
    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
       
    30 
       
    31 [INVALID1]
       
    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
       
    35 IsValid = false
       
    36 ContentType = 1
       
    37 ContentLength = 44
       
    38 ContentString = 54686520717569636b2062726f776e20666f78206a756d7073206f76657220746865206c617a7920646f670a
       
    39 CertificateCount = 2
       
    40 SignerCount = 1
       
    41 
       
    42 [INVALID2]
       
    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
       
    47 IsValid = false
       
    48 ContentType = 1
       
    49 ContentLength = 13
       
    50 ContentString = 48656c6c6f20776f726c640a0a
       
    51 CertificateCount = 2
       
    52 SignerCount = 1
       
    53 
       
    54 [GOODFILE1]
       
    55 ; This contains the signed data "Hello world\n\n"
       
    56 File = C:\tpkcs7\data\valid1
       
    57 RootCertificate = C:\tpkcs7\data\rootcertificate
       
    58 IsValid = true
       
    59 ContentType = 1
       
    60 ContentLength = 13
       
    61 ContentString = 48656c6c6f20776f726c640a0a
       
    62 CertificateCount = 2
       
    63 SignerCount = 1
       
    64 
       
    65 [GOODFILE2]
       
    66 ; This contains signed data of non-trivial length
       
    67 File = C:\tpkcs7\data\valid2
       
    68 RootCertificate = C:\tpkcs7\data\rootcertificate
       
    69 IsValid = true
       
    70 ContentType = 1
       
    71 ContentLength = 126053
       
    72 CertificateCount = 2
       
    73 SignerCount = 1
       
    74 
       
    75 [GOODFILE3]
       
    76 ; This contains signed data of zero length
       
    77 File = C:\tpkcs7\data\valid3
       
    78 RootCertificate = C:\tpkcs7\data\rootcertificate
       
    79 IsValid = true
       
    80 ContentType = 1
       
    81 ContentLength = 0
       
    82 CertificateCount = 2
       
    83 SignerCount = 1
       
    84 
       
    85 [GOOD1_ENCRYPTEDDATA]
       
    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
       
    92 IsValid = false
       
    93 Reason = -5
       
    94 ContentType = 1.2.840.113549.1.7.1
       
    95 ContentData = C:\tpkcs7\data\empty
       
    96 Salt = C:\tpkcs7\data\empty 
       
    97 Iteration = 2048
       
    98 Algorithm = pbeWithSHA1AndDES-CBC
       
    99 HashAlgorithmId = ESHA1
       
   100 Password =
       
   101 
       
   102 
       
   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
       
   107 IsValid = true
       
   108 Reason = 0
       
   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
       
   112 Iteration = 2048
       
   113 Algorithm = pbeWithSHA1And128BitRC4
       
   114 HashAlgorithmId = ESHA1
       
   115 Password = symbian
       
   116 
       
   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
       
   121 IsValid = true
       
   122 Reason = 0
       
   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
       
   126 Iteration = 2048
       
   127 Algorithm = pbeWithSHA1And40BitRC4
       
   128 HashAlgorithmId = ESHA1
       
   129 Password = symbian
       
   130 
       
   131 [GOOD4_ENCRYPTEDDATA]
       
   132 ; This contains ContentInfo which has Encrypted Data in it
       
   133 ; pbewithSHAAnd128BitRC2CBC alg used
       
   134 File = C:\tpkcs7\data\sha1and128bitrc2.der
       
   135 IsValid = true
       
   136 Reason = 0
       
   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
       
   140 Iteration = 2048
       
   141 Algorithm = pbewithSHAAnd128BitRC2CBC
       
   142 HashAlgorithmId = ESHA1
       
   143 Password = symbian
       
   144 
       
   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
       
   149 IsValid = true
       
   150 Reason = 0
       
   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
       
   154 Iteration = 2048
       
   155 Algorithm = pbeWithSHAAnd3_KeyTripleDES_CBC
       
   156 HashAlgorithmId = ESHA1
       
   157 Password = symbian
       
   158 
       
   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
       
   163 IsValid = true
       
   164 Reason = 0
       
   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
       
   168 Iteration = 2048
       
   169 Algorithm = pbeWithSHA1And40BitRC2_CBC
       
   170 HashAlgorithmId = ESHA1
       
   171 Password = symbian
       
   172 
       
   173 [GOOD8_ENCRYPTEDDATA]
       
   174 ; This contains encrypted content data
       
   175 ; pbeWithSHAAnd2-KeyTripleDES-CBC is used
       
   176 File = C:\tpkcs7\data\sha1and2_keytripledes.der
       
   177 IsValid = true
       
   178 Reason = 0
       
   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 
       
   182 Iteration = 2048
       
   183 Algorithm = pbeWithSHAAnd2-KeyTripleDES-CBC
       
   184 HashAlgorithmId = ESHA1
       
   185 Password = symbian
       
   186 
       
   187 [GOOD7_ENCRYPTEDDATA]
       
   188 ; This contains ContentInfo which is not EncryptedData
       
   189 File = C:\tpkcs7\data\notencrypteddata.der
       
   190 Reason = -6 ; KErrNotSupported
       
   191 IsValid = false
       
   192 ContentType = 1.2.840.113549.1.7.1
       
   193 ContentData = C:\tpkcs7\data\empty
       
   194 Salt = C:\tpkcs7\data\empty 
       
   195 Iteration = 2048
       
   196 Algorithm = pbeWithSHA1AndDES-CBC
       
   197 HashAlgorithmId = ESHA1
       
   198 
       
   199 
       
   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
       
   205 Reason = -6
       
   206 IsValid = false
       
   207 ContentType = 1.2.840.113549.1.7.1
       
   208 ContentData = C:\tpkcs7\data\encrypteddata_withoutsalt_content.der
       
   209 Salt = C:\tpkcs7\data\empty 
       
   210 Iteration = 1
       
   211 Algorithm = pbeWithSHA1And40BitRC4
       
   212 HashAlgorithmId = ESHA1
       
   213 Password = symbian
       
   214 
       
   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
       
   219 IsValid = false
       
   220 ContentType = 1.2.840.113549.1.7.1
       
   221 ContentData = C:\tpkcs7\data\empty
       
   222 Salt = C:\tpkcs7\data\empty
       
   223 Iteration = 2048
       
   224 Algorithm = pbeWithSHA1And40BitRC2_CBC
       
   225 HashAlgorithmId = ESHA1
       
   226 Password = symbian
       
   227 
       
   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
       
   232 IsValid = false
       
   233 ContentType = 1.2.840.113549.1.7.1
       
   234 ContentData = C:\tpkcs7\data\empty
       
   235 Salt = C:\tpkcs7\data\empty
       
   236 Iteration = 2048
       
   237 Algorithm = pbeWithSHA1And40BitRC2_CBC
       
   238 HashAlgorithmId = ESHA1
       
   239 Password = symbian
       
   240 
       
   241 [GOOD12_ENCRYPTEDDATA]
       
   242 ; This contains ContentInfo which does not have EncryptedData
       
   243 File = C:\tpkcs7\data\notencrypteddata.der
       
   244 Reason = -6 ; 
       
   245 IsValid = false
       
   246 ContentType = 1.2.840.113549.1.7.1
       
   247 ContentData = C:\tpkcs7\data\empty
       
   248 Salt = C:\tpkcs7\data\empty
       
   249 Iteration = 2048
       
   250 Algorithm = pbeWithSHA1And40BitRC2_CBC
       
   251 HashAlgorithmId = ESHA1
       
   252 Password = symbian
       
   253 
       
   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
       
   258 IsValid = true
       
   259 ContentType = 1.2.840.113549.1.7.1
       
   260 ContentData = C:\tpkcs7\data\empty
       
   261 Salt = C:\tpkcs7\data\pkcs7_encryptedneg_nocontsalt.der
       
   262 Iteration = 2048
       
   263 Algorithm = pbeWithSHA1And40BitRC2_CBC
       
   264 HashAlgorithmId = ESHA1
       
   265 Password = symbian
       
   266 
       
   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
       
   270 Reason = -6 ;
       
   271 IsValid = false
       
   272 ContentType = 1.2.840.113549.1.7.1
       
   273 ContentData = C:\tpkcs7\data\empty
       
   274 Salt = C:\tpkcs7\data\empty
       
   275 Iteration = 2048
       
   276 Algorithm = pbeWithSHA1And40BitRC2_CBC
       
   277 HashAlgorithmId = ESHA1
       
   278 Password = symbian
       
   279 
       
   280 
       
   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
       
   288 Iteration = 2048
       
   289 Algorithm = pbeWithSHA1AndDES-CBC
       
   290 HashAlgorithmId = ESHA1
       
   291 
       
   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
       
   296 AlgorithmId = SHA1
       
   297 EncodedParams = C:\tpkcs7\data\empty
       
   298 Reason = 0
       
   299 
       
   300 
       
   301 [GOODFILE_DIGESTINFO1]
       
   302 ; This contains Digest Info where the Digest Algorithm Id is unsupported
       
   303 File = C:\tpkcs7\data\digestinfo_unsupportedalg.der
       
   304 Reason = -5
       
   305 
       
   306 
       
   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
       
   311 AlgorithmId = MD5
       
   312 EncodedParams = C:\tpkcs7\data\empty
       
   313 Reason = 0
       
   314 
       
   315 
       
   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
       
   320 AlgorithmId = SHA1
       
   321 EncodedParams = C:\tpkcs7\data\empty
       
   322 Reason = -6
       
   323 
       
   324 [GOODFILE_DIGESTINFO4]
       
   325 ; This contains Digest Info where the Tags dont match
       
   326 File = C:\tpkcs7\data\digestinfo_digest_notoctetstring.der
       
   327 AlgorithmId = SHA1
       
   328 EncodedParams = C:\tpkcs7\data\empty
       
   329 Reason = -6
       
   330 
       
   331 
       
   332 [GOODFILE_DIGESTINFO_CORRUPT]
       
   333 ; This contains Digest Info which does not have digest in it.
       
   334 File = C:\tpkcs7\data\digestinfo_nodigest.der
       
   335 AlgorithmId = ESHA1
       
   336 EncodedParams = C:\tpkcs7\data\empty
       
   337 Reason = -6 ; KErrArgument
       
   338 
       
   339 
       
   340 ;CONTENTINFO
       
   341 [OOMTEST1]
       
   342 File 	 = C:\tpkcs7\data\sha1and40bitrc2_cbc.der
       
   343 Reason 	 = -6 ; KErrArgument
       
   344 OOMTestNo = 1
       
   345 
       
   346 ;DIGESTINFO
       
   347 [OOMTEST2]
       
   348 File 	 = C:\tpkcs7\data\digestinfo_sha1.der
       
   349 Reason 	 = -6 ; KErrArgument
       
   350 OOMTestNo = 2
       
   351 
       
   352 ; ENCRYPTED DATA
       
   353 [OOMTEST3]
       
   354 File 	 = C:\tpkcs7\data\sha1and40bitrc2_cbc.der
       
   355 Reason 	 = -6 ; KErrArgument
       
   356 OOMTestNo = 3
       
   357 
       
   358 
       
   359 
       
   360 
       
   361 
       
   362