os/security/cryptoservices/certificateandkeymgmt/tpkcs12intgrtn/testdatainput/pm004/safebag_shroudedkeybag.txt
author sl@SLION-WIN7.fritz.box
Fri, 15 Jun 2012 03:10:57 +0200
changeset 0 bde4ae8d615e
permissions -rw-r--r--
First public contribution.
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
SEQUENCE
sl@0
    13
	OID=PKCS12_BAGTYPES_PKCS8SHROUDEDKEYBAG
sl@0
    14
	EXPLICIT
sl@0
    15
		OUTPUT_BINARY_FILE=safebag_shrouded_pm004.der,1
sl@0
    16
			// KeyBag
sl@0
    17
			SEQUENCE
sl@0
    18
				SEQUENCE
sl@0
    19
					OID=$3
sl@0
    20
					SEQUENCE
sl@0
    21
						OCTETSTRING
sl@0
    22
							RAW=$1
sl@0
    23
						END
sl@0
    24
						INTEGER=$2
sl@0
    25
					END
sl@0
    26
				END
sl@0
    27
				OCTETSTRING
sl@0
    28
					ENCRYPT=$4,$5,$6
sl@0
    29
						INCLUDE_BINARY_FILE=$7
sl@0
    30
					END	
sl@0
    31
				END
sl@0
    32
			END
sl@0
    33
		END
sl@0
    34
	END
sl@0
    35
	// Attributes
sl@0
    36
	SET
sl@0
    37
		SEQUENCE
sl@0
    38
			OID=PKCS9_LOCAL_KEYID
sl@0
    39
			SET				
sl@0
    40
				OCTETSTRING
sl@0
    41
					HASH=sha1
sl@0
    42
						INCLUDE_BINARY_FILE=$8
sl@0
    43
					END
sl@0
    44
				END
sl@0
    45
			END
sl@0
    46
		END 
sl@0
    47
		SEQUENCE
sl@0
    48
			OID=PKCS9_FRIENDLY_NAME
sl@0
    49
			SET
sl@0
    50
				BMPSTRING=symbian
sl@0
    51
			END
sl@0
    52
		END	
sl@0
    53
	END
sl@0
    54
END
sl@0
    55
sl@0
    56