cryptoservices/certificateandkeymgmt/tder/example/pkcs12_nested.txt
changeset 0 2c201484c85f
child 8 35751d3474b7
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/cryptoservices/certificateandkeymgmt/tder/example/pkcs12_nested.txt	Wed Jul 08 11:25:26 2009 +0100
@@ -0,0 +1,45 @@
+// PKCS#12 file that contains a single certificate inside a nested safecontents safebag.
+
+SEQUENCE
+	// Version
+	INTEGER=3
+
+	// authSafe - PFX
+	SEQUENCE
+		OID=PKCS7_DATA
+		EXPLICIT		
+			OCTETSTRING
+				OUTPUT_BINARY_FILE=authsafecontents.der,1					
+					// AuthenticatedSafe
+					SEQUENCE						
+						INCLUDE=contentinfo.txt,safecontents.txt,safebag_safecontents.txt,safebag_certbag.txt,root5ca.der,Root5 CA Certificate
+						INCLUDE=contentinfo.txt,safecontents.txt,safebag_shroudedkeybag.txt,51:23:F9:5A:56:31:F8:FC,1,PKCS12_PBEIDS_SHAAND3KEYTRIPLEDESCBC,des-ede3-cbc,e4d5e39b4a6d6f75befd95a094fe124a3abe938871d252e3,03fe9d449ca82e5d,root5ca_key.pk8,root5ca.der,Root5 CA Key
+					END
+				END
+			END
+		END
+	END
+
+	// macData
+	SEQUENCE
+		// DigestInfo
+		SEQUENCE
+			SEQUENCE
+				OID=SHA1
+				NULL
+			END
+			// DIGEST		
+			OCTETSTRING
+				HMAC=SHA1,15846aede455bf914245a79718ac1addb0b86ca3
+					INCLUDE_BINARY_FILE=authsafecontents.der
+				END
+			END		
+		END		
+		// macSalt
+		OCTETSTRING
+			RAW=95:5D:62:99:D3:31:50:57
+		END
+		// iterations
+		INTEGER=2048	
+	END
+END
\ No newline at end of file