os/security/cryptoservices/certificateandkeymgmt/tder/example/pkcs12_nomaciter.txt
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     1 // PKCS#12 file that contains a single certificate where the iteration
     2 // count is set to 1. The ASN.1 type is "INTEGER DEFAILT 1" so we omit this field
     3 
     4 SEQUENCE
     5 	// Version
     6 	INTEGER=3
     7 
     8 	// authSafe - PFX
     9 	SEQUENCE
    10 		OID=PKCS7_DATA
    11 		EXPLICIT		
    12 			OCTETSTRING
    13 				OUTPUT_BINARY_FILE=authsafecontents.der,1
    14 					// First PDU
    15 					SEQUENCE
    16 						INCLUDE=encrypted_contentinfo.txt,83:8C:73:5E:D5:8F:75:82,1,PKCS12_PBEIDS_SHAAND40BITRC2CBC,rc2-40-cbc,f249eb73d2,ad9c6049b06d1215,safecontents.txt,safebag_certbag.txt,root5ca.der,Root5 CA
    17 					END
    18 				END
    19 			END
    20 		END
    21 	END
    22 
    23 	// macData
    24 	SEQUENCE
    25 		// DigestInfo
    26 		SEQUENCE
    27 			SEQUENCE
    28 				OID=SHA1
    29 				NULL
    30 			END
    31 			// DIGEST		
    32 			OCTETSTRING
    33 				HMAC=SHA1,6b2957d55b7ce1fcf77406566418a43e4b387649
    34 					INCLUDE_BINARY_FILE=authsafecontents.der
    35 				END
    36 			END		
    37 		END		
    38 		// macSalt
    39 		OCTETSTRING
    40 			RAW=95:5D:62:99:D3:31:50:57
    41 		END
    42 		// iterations - default value of 1
    43 	END
    44 END