os/security/cryptoservices/certificateandkeymgmt/tder/example/signeddata.txt
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     1 // An signed PKCS#7 data object
     2 // PARAM1: The name of binary file to include as content
     3 // PARAM2: The filename of the signing certificate
     4 // PARAM3: The filename of the signing key
     5 EQUENCE
     6 	OID=PKCS7_SIGNEDDATA
     7 	EXPLICIT		
     8 		SEQUENCE
     9 			// version
    10 			INTEGER=1
    11 			// digestAlgorithms
    12 			SET	
    13 				// DigestAlgorithmIdentifer
    14 				SEQUENCE
    15 					OID=SHA1
    16 					NULL
    17 				END
    18 			END
    19 			// ContentInfo
    20 			INCLUDE=contentinfo.txt,eval.txt,INCLUDE_BINARY_FILE=root5ca.der
    21 			// Certificates
    22 			IMPLICIT=0
    23 				SET
    24 					INCLUDE_BINARY_FILE=$2
    25 				END
    26 			END
    27 			// SignerInfos
    28 			SET
    29 				// SignerInfo
    30 				SEQUENCE
    31 					INTEGER=1
    32 					// issuerAndSerialNumber
    33 					SEQUENCE
    34 						SEQUENCE
    35 							SET
    36 								SEQUENCE
    37 								 	// organizationName
    38 									OID=2.5.4.10
    39 									PRINTABLESTRING=Symbian Software Ltd
    40 								END	
    41 							END
    42 							SET
    43 								SEQUENCE
    44 									// commonName
    45 									OID=2.5.4.10
    46 									PRINTABLESTRING=Root5-RSA
    47 								END
    48 							END
    49 						END
    50 					END
    51 					// DigestAlgorithmIdentifier
    52 					SEQUENCE
    53 						OID=SHA1
    54 						NULL
    55 					END
    56 					
    57 				END
    58 			END
    59 		END
    60 	END	
    61 END
    62