cryptoservices/certificateandkeymgmt/tpkcs12intgrtn/testdatainput/cb004/safebag_cb004.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 SEQUENCE
       
    15 	OID=PKCS12_BAGTYPES_KEYBAG
       
    16 	EXPLICIT
       
    17 		INCLUDE_BINARY_FILE=../root5ca_key.pk8
       
    18 	END
       
    19 	// Attributes
       
    20 	SET
       
    21 		SEQUENCE
       
    22 			OID=PKCS9_LOCAL_KEYID
       
    23 			SET
       
    24 				OUTPUT_BINARY_FILE=cb004_localkeyid_firstkey.der,1				
       
    25 					OCTETSTRING
       
    26 						HASH=sha1
       
    27 							INCLUDE_BINARY_FILE=../root5ca.der
       
    28 						END
       
    29 					END
       
    30 				END
       
    31 			END
       
    32 		END 
       
    33 		SEQUENCE
       
    34 			OID=PKCS9_FRIENDLY_NAME
       
    35 			SET
       
    36 				OUTPUT_BINARY_FILE=cb004_friendlyname_firstkey.der,1
       
    37 					BMPSTRING=symbian
       
    38 				END
       
    39 			END
       
    40 		END	
       
    41 	END
       
    42 END
       
    43 
       
    44 
       
    45 
       
    46 
       
    47 // cert bag
       
    48 
       
    49 
       
    50 SEQUENCE
       
    51 	OID=PKCS12_BAGTYPES_CERTBAG
       
    52 	EXPLICIT
       
    53 		// CertBag
       
    54 		SEQUENCE
       
    55 			OID=PKCS9_CERTTYPES_PKCS12_X509
       
    56 			EXPLICIT
       
    57 				OCTETSTRING
       
    58 					INCLUDE_BINARY_FILE=../root5ca.der
       
    59 				END
       
    60 			END
       
    61 		END
       
    62 	END
       
    63 	// Attributes
       
    64 	SET
       
    65 		SEQUENCE
       
    66 			OID=PKCS9_LOCAL_KEYID
       
    67 			SET
       
    68 				OUTPUT_BINARY_FILE=cb004_localkeyid_firstcert.der,1
       
    69 					OCTETSTRING
       
    70 						HASH=sha1
       
    71 							INCLUDE_BINARY_FILE=../root5ca.der
       
    72 						END
       
    73 					END
       
    74 				END
       
    75 			END
       
    76 		END 
       
    77 		SEQUENCE
       
    78 			OID=PKCS9_FRIENDLY_NAME
       
    79 			SET
       
    80 				OUTPUT_BINARY_FILE=cb004_friendlyname_firstcert.der,1
       
    81 					BMPSTRING=symbian
       
    82 				END
       
    83 			END
       
    84 		END	
       
    85 	END
       
    86 END
       
    87 
       
    88 
       
    89 // shrouded key bag
       
    90 SEQUENCE
       
    91 	OID=PKCS12_BAGTYPES_PKCS8SHROUDEDKEYBAG
       
    92 	EXPLICIT
       
    93 		OUTPUT_BINARY_FILE=safebag_shrouded_cb004_1.der,1
       
    94 			// KeyBag
       
    95 			SEQUENCE
       
    96 				SEQUENCE
       
    97 					OID=$3
       
    98 					SEQUENCE
       
    99 						OCTETSTRING
       
   100 							RAW=$1
       
   101 						END
       
   102 						INTEGER=$2
       
   103 					END
       
   104 				END
       
   105 				OCTETSTRING
       
   106 					ENCRYPT=$4,$5,$6
       
   107 						INCLUDE_BINARY_FILE=../root5ca_key.pk8
       
   108 					END	
       
   109 				END
       
   110 			END
       
   111 		END
       
   112 	END
       
   113 	// Attributes
       
   114 	SET
       
   115 		SEQUENCE
       
   116 			OID=PKCS9_LOCAL_KEYID
       
   117 			SET	
       
   118 				OUTPUT_BINARY_FILE=cb004_localkeyid_firstshrouded.der,1
       
   119 					OCTETSTRING
       
   120 						HASH=sha1
       
   121 							INCLUDE_BINARY_FILE=../root5ca.der
       
   122 						END
       
   123 					END
       
   124 				END
       
   125 			END
       
   126 		END 
       
   127 		SEQUENCE
       
   128 			OID=PKCS9_FRIENDLY_NAME
       
   129 			SET
       
   130 				OUTPUT_BINARY_FILE=cb004_friendlyname_firstshrouded.der,1
       
   131 					BMPSTRING=symbian
       
   132 				END
       
   133 			END
       
   134 		END	
       
   135 	END
       
   136 END
       
   137