os/security/cryptoservices/certificateandkeymgmt/tder/dergen_test.txt
author sl@SLION-WIN7.fritz.box
Fri, 15 Jun 2012 03:10:57 +0200
changeset 0 bde4ae8d615e
permissions -rw-r--r--
First public contribution.
     1 // Test file for dergen.pl that includes lots of different types
     2 SEQ
     3 	BOOLEAN=1
     4 	BOOL=t
     5 	BOOL=true
     6 	BOOL=0
     7 	BOOL=f
     8 	BOOL=false
     9 	UTCTIME=060112173242Z
    10 	SET	
    11 		BITSTRING=
    12 		BITSTRING=1
    13 		BITSTRING=1111111
    14 		BITSTRING=11111111
    15 		BITSTRING=011011100101110111
    16 	END
    17 	BITSTRING_WRAPPER
    18 		SEQ	
    19 			INTEGER=1
    20 			INTEGER=-1
    21 		END
    22 	END
    23 	BIGINTEGER {
    24 		00 9C F7 7E 42 2B C1 73 E3 CD 26 6A 5A 40 9F 50
    25 		20 8A 3E 7E C5 22 B6 1C B7 6D 41 99 CB 52 49 75
    26 		96 9D D8 00 40 C9 65 97 51 2D BF E4 E0 B6 0F C9
    27 		85 1B 55 B8 B6 7D 6D 16 5B 29 5D C3 F0 6E ED F2
    28 		33
    29 	}
    30 	SEQ
    31 		OID=PKCS7_DATA
    32 		OID=1.2.3.4
    33 	END
    34 	BMPSTRING=This is an ASCII string that will get coverted to a BMPSTRING.
    35 	IA5STRING=This is an ASCII string that will get coverted to an IA5STRING.
    36 	IA5STRING_FILE=dergen_test.txt
    37 	PRINTABLESTRING=This is an ASCII string that will get converted to a PRINTABLESTRING.
    38 	UTF8STRING=This is an ASCII string that will get coverted to a UTF8STRING.
    39 	UTF8STRING_FILE=dergen_test.txt
    40 
    41 	// Execute shell command
    42 	SHELL=DIR,>,dir.txt
    43 	UTF8STRING_FILE=dir.txt
    44 
    45 	// Check the tag number is encoded in an explicit 
    46 	EXPLICIT=
    47 		INTEGER=0
    48 	END
    49 	EXPLICIT=1,PRIVATE
    50 		INTEGER=1
    51 	END
    52 	EXPLICIT=2,CONTEXT-SPECIFIC
    53 		INTEGER=2
    54 	END
    55 	EXPLICIT=3,APPLICATION
    56 		INTEGER=3
    57 	END
    58 	EXPLICIT=4,UNIVERSAL
    59 		INTEGER=4
    60 	END
    61 
    62 	// Check encoding of implicitly tagged types
    63 	IMPLICIT=0
    64 		OCTETSTRING
    65 			INTEGER=1
    66 		END
    67 	END
    68 	IMPLICIT=1,PRIVATE
    69 		SEQ
    70 			INTEGER=1
    71 		END
    72 	END
    73 	IMPLICIT=2,APPLICATION
    74 		SET
    75 			INTEGER=2
    76 		END
    77 	END
    78 	IMPLICIT=3,UNIVERSAL
    79 		INTEGER=3
    80 	END
    81 	OCTETSTRING
    82 		RAW=00:0A:0B:0C
    83 		RAW=00 0a 0b 0c
    84 		RAW=00aabbccddeeff
    85 	END
    86 END