os/security/cryptoservices/certificateandkeymgmt/tpkcs7/testdatainput/2key_tripledes/safebag_shroudedkeybag.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
SEQUENCE
sl@0
    13
	OID=PKCS12_BAGTYPES_PKCS8SHROUDEDKEYBAG
sl@0
    14
	EXPLICIT
sl@0
    15
		// KeyBag
sl@0
    16
		SEQUENCE
sl@0
    17
			SEQUENCE
sl@0
    18
				OID=$3
sl@0
    19
				SEQUENCE
sl@0
    20
					OCTETSTRING
sl@0
    21
						RAW=$1
sl@0
    22
					END
sl@0
    23
					INTEGER=$2
sl@0
    24
				END
sl@0
    25
			END
sl@0
    26
			OCTETSTRING
sl@0
    27
				ENCRYPT=$4,$5,$6
sl@0
    28
					INCLUDE_BINARY_FILE=$7
sl@0
    29
				END	
sl@0
    30
			END
sl@0
    31
		END
sl@0
    32
	END
sl@0
    33
	// Attributes
sl@0
    34
	SET
sl@0
    35
		SEQUENCE
sl@0
    36
			OID=PKCS9_LOCAL_KEYID
sl@0
    37
			SET	
sl@0
    38
				OCTETSTRING
sl@0
    39
					HASH=sha1
sl@0
    40
						INCLUDE_BINARY_FILE=$8
sl@0
    41
					END
sl@0
    42
				END
sl@0
    43
			END
sl@0
    44
		END 
sl@0
    45
		SEQUENCE
sl@0
    46
			OID=PKCS9_FRIENDLY_NAME
sl@0
    47
			SET
sl@0
    48
				BMPSTRING=$9
sl@0
    49
			END
sl@0
    50
		END	
sl@0
    51
	END
sl@0
    52
END
sl@0
    53
sl@0
    54