os/security/cryptoservices/certificateandkeymgmt/tpkcs12intgrtn/testdatainput/cb002/safebag_cb002.txt
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
sl@0
     1
// SafeContents
sl@0
     2
// PARAM1: salt
sl@0
     3
// PARAM2: iteration count
sl@0
     4
// PARAM3: cipher_oid
sl@0
     5
// PARAM4: cipher
sl@0
     6
// PARAM5: key
sl@0
     7
// PARAM6: iv
sl@0
     8
// PARAM7: The filename of the DER encoded keyfile
sl@0
     9
// PARAM8: The name of the certificate file
sl@0
    10
// PARAM9: The 'friendly' name of the certificate
sl@0
    11
// SafeBag
sl@0
    12
sl@0
    13
//  key bag
sl@0
    14
sl@0
    15
SEQUENCE
sl@0
    16
	OID=PKCS12_BAGTYPES_KEYBAG
sl@0
    17
	EXPLICIT
sl@0
    18
		INCLUDE_BINARY_FILE=$7
sl@0
    19
	END
sl@0
    20
	// Attributes
sl@0
    21
	SET
sl@0
    22
		SEQUENCE
sl@0
    23
			OID=PKCS9_LOCAL_KEYID
sl@0
    24
			SET
sl@0
    25
				OUTPUT_BINARY_FILE=localkeyid.der,1		
sl@0
    26
					OCTETSTRING
sl@0
    27
						HASH=sha1
sl@0
    28
							INCLUDE_BINARY_FILE=$8
sl@0
    29
						END
sl@0
    30
					END
sl@0
    31
				END
sl@0
    32
			END
sl@0
    33
		END 
sl@0
    34
		SEQUENCE
sl@0
    35
			OID=PKCS9_FRIENDLY_NAME
sl@0
    36
			SET
sl@0
    37
				OUTPUT_BINARY_FILE=friendlyname.der,1
sl@0
    38
					BMPSTRING=symbian
sl@0
    39
				END
sl@0
    40
			END
sl@0
    41
		END	
sl@0
    42
	END
sl@0
    43
END
sl@0
    44
sl@0
    45
sl@0
    46
sl@0
    47
// certbag
sl@0
    48
SEQUENCE
sl@0
    49
	OID=PKCS12_BAGTYPES_CERTBAG
sl@0
    50
	EXPLICIT
sl@0
    51
		// CertBag
sl@0
    52
		SEQUENCE
sl@0
    53
			OID=PKCS9_CERTTYPES_PKCS12_X509
sl@0
    54
			EXPLICIT
sl@0
    55
				OCTETSTRING
sl@0
    56
					INCLUDE_BINARY_FILE=$8
sl@0
    57
				END
sl@0
    58
			END
sl@0
    59
		END
sl@0
    60
	END
sl@0
    61
	// Attributes
sl@0
    62
	SET
sl@0
    63
		SEQUENCE
sl@0
    64
			OID=PKCS9_LOCAL_KEYID
sl@0
    65
			SET
sl@0
    66
				OUTPUT_BINARY_FILE=localkeyid.der,1		
sl@0
    67
					OCTETSTRING
sl@0
    68
						HASH=sha1
sl@0
    69
							INCLUDE_BINARY_FILE=$8
sl@0
    70
						END
sl@0
    71
					END
sl@0
    72
				END
sl@0
    73
			END
sl@0
    74
		END 
sl@0
    75
		SEQUENCE
sl@0
    76
			OID=PKCS9_FRIENDLY_NAME
sl@0
    77
			SET
sl@0
    78
				OUTPUT_BINARY_FILE=friendlyname.der,1
sl@0
    79
					BMPSTRING=symbian
sl@0
    80
				END
sl@0
    81
			END
sl@0
    82
		END	
sl@0
    83
	END
sl@0
    84
END
sl@0
    85
sl@0
    86
// Shrouded Key bag
sl@0
    87
SEQUENCE
sl@0
    88
	OID=PKCS12_BAGTYPES_PKCS8SHROUDEDKEYBAG
sl@0
    89
	EXPLICIT
sl@0
    90
		OUTPUT_BINARY_FILE=safebag_shrouded_cb002_1.der,1
sl@0
    91
			// KeyBag
sl@0
    92
			SEQUENCE
sl@0
    93
				SEQUENCE
sl@0
    94
					OID=$3
sl@0
    95
					SEQUENCE
sl@0
    96
						OCTETSTRING
sl@0
    97
							RAW=$1
sl@0
    98
						END
sl@0
    99
						INTEGER=$2
sl@0
   100
					END
sl@0
   101
				END
sl@0
   102
				OCTETSTRING
sl@0
   103
					ENCRYPT=$4,$5,$6
sl@0
   104
						INCLUDE_BINARY_FILE=$7
sl@0
   105
					END	
sl@0
   106
				END
sl@0
   107
			END
sl@0
   108
		END
sl@0
   109
	END
sl@0
   110
	// Attributes
sl@0
   111
	SET
sl@0
   112
		SEQUENCE
sl@0
   113
			OID=PKCS9_LOCAL_KEYID
sl@0
   114
			SET	
sl@0
   115
				OUTPUT_BINARY_FILE=localkeyid.der,1		
sl@0
   116
					OCTETSTRING
sl@0
   117
						HASH=sha1
sl@0
   118
							INCLUDE_BINARY_FILE=$8
sl@0
   119
						END
sl@0
   120
					END
sl@0
   121
				END
sl@0
   122
			END
sl@0
   123
		END 
sl@0
   124
		SEQUENCE
sl@0
   125
			OID=PKCS9_FRIENDLY_NAME
sl@0
   126
			SET
sl@0
   127
				OUTPUT_BINARY_FILE=friendlyname.der,1
sl@0
   128
					BMPSTRING=symbian
sl@0
   129
				END
sl@0
   130
			END
sl@0
   131
		END	
sl@0
   132
	END
sl@0
   133
END
sl@0
   134
sl@0
   135
sl@0
   136
sl@0
   137
sl@0
   138
sl@0
   139