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