cryptoservices/certificateandkeymgmt/tpkcs12intgrtn/testdatainput/cb001/safebag_cb001.txt
changeset 0 2c201484c85f
child 8 35751d3474b7
equal deleted inserted replaced
-1:000000000000 0:2c201484c85f
       
     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 OUTPUT_BINARY_FILE=oomkeybag.der,1
       
    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=localkeyid.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 			
       
    37 					SET
       
    38 						OUTPUT_BINARY_FILE=friendlyname.der,1
       
    39 							BMPSTRING=symbian
       
    40 						END
       
    41 					END
       
    42 			END	
       
    43 		END
       
    44 	END
       
    45 END
       
    46 
       
    47 
       
    48 
       
    49 
       
    50 
       
    51 
       
    52 // certbag
       
    53 OUTPUT_BINARY_FILE=oomcertbag.der,1
       
    54 	SEQUENCE
       
    55 		OID=PKCS12_BAGTYPES_CERTBAG
       
    56 		EXPLICIT
       
    57 			// CertBag
       
    58 			SEQUENCE
       
    59 				OID=PKCS9_CERTTYPES_PKCS12_X509
       
    60 				EXPLICIT
       
    61 					OCTETSTRING
       
    62 						INCLUDE_BINARY_FILE=$8
       
    63 					END
       
    64 				END
       
    65 			END
       
    66 		END
       
    67 		// Attributes
       
    68 		SET
       
    69 			SEQUENCE
       
    70 				OID=PKCS9_LOCAL_KEYID
       
    71 			
       
    72 				SET	
       
    73 					OUTPUT_BINARY_FILE=localkeyid_cert.der,1
       
    74 						OCTETSTRING
       
    75 							HASH=sha1
       
    76 								INCLUDE_BINARY_FILE=$8
       
    77 							END
       
    78 						END
       
    79 					END
       
    80 				END
       
    81 			END 
       
    82 			SEQUENCE
       
    83 				OID=PKCS9_FRIENDLY_NAME
       
    84 			
       
    85 				SET
       
    86 					OUTPUT_BINARY_FILE=friendlyname.der,1
       
    87 						BMPSTRING=symbian
       
    88 					END
       
    89 				END
       
    90 			END	
       
    91 		END
       
    92 	END
       
    93 END
       
    94 
       
    95 
       
    96 OUTPUT_BINARY_FILE=oomsafecontentsbag.der,1
       
    97 	SEQUENCE
       
    98 		OID=PKCS12_BAGTYPES_SAFECONTENTSBAG
       
    99 		EXPLICIT=0
       
   100 			INCLUDE=../safecontents.txt,sample.txt,,,
       
   101 		END
       
   102 		// Attributes
       
   103 		SET
       
   104 			SEQUENCE
       
   105 				OID=PKCS9_FRIENDLY_NAME
       
   106 			
       
   107 				SET
       
   108 					BMPSTRING=symbian
       
   109 				END
       
   110 			END	
       
   111 		END
       
   112 	END
       
   113 END
       
   114 
       
   115 
       
   116 //ShroudedkeyBag
       
   117 OUTPUT_BINARY_FILE=oomshroudedkeybag.der,1
       
   118 	SEQUENCE
       
   119 		OID=PKCS12_BAGTYPES_PKCS8SHROUDEDKEYBAG
       
   120 		EXPLICIT
       
   121 			OUTPUT_BINARY_FILE=safebag_shrouded_cb001.der,1
       
   122 			// KeyBag
       
   123 				SEQUENCE
       
   124 					SEQUENCE
       
   125 						OID=$3
       
   126 						SEQUENCE
       
   127 							OCTETSTRING
       
   128 								RAW=$1
       
   129 							END
       
   130 							INTEGER=$2
       
   131 						END
       
   132 					END
       
   133 					OCTETSTRING
       
   134 						ENCRYPT=$4,$5,$6
       
   135 							INCLUDE_BINARY_FILE=$7
       
   136 						END	
       
   137 					END
       
   138 				END
       
   139 			END
       
   140 		END
       
   141 		// Attributes
       
   142 		SET
       
   143 			SEQUENCE
       
   144 				OID=PKCS9_LOCAL_KEYID
       
   145 				SET	
       
   146 					OUTPUT_BINARY_FILE=lockal_shrouded.der,1			
       
   147 						OCTETSTRING
       
   148 							HASH=sha1
       
   149 								INCLUDE_BINARY_FILE=$8
       
   150 							END
       
   151 						END
       
   152 					END
       
   153 				END
       
   154 			END 
       
   155 			SEQUENCE
       
   156 				OID=PKCS9_FRIENDLY_NAME
       
   157 				SET
       
   158 					OUTPUT_BINARY_FILE=friendlyname.der,1
       
   159 						BMPSTRING=$9
       
   160 					END
       
   161 				END
       
   162 			END	
       
   163 		END
       
   164 	END
       
   165 END
       
   166 
       
   167 
       
   168 
       
   169