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