mirror of
https://github.com/wader/fq.git
synced 2024-12-23 13:22:58 +03:00
asn1_ber,goreleaser: Convert CRLF to LF in asn1 xml tests, hopefully fixes goreleaer workspace dirty error
This commit is contained in:
parent
1d369bcfab
commit
0326eeb697
38
format/asn1/testdata/tc1.xml
vendored
38
format/asn1/testdata/tc1.xml
vendored
@ -1,19 +1,19 @@
|
||||
<?xml version="1.0"?>
|
||||
<ASN1_TYPE>
|
||||
<identification_block>
|
||||
<warnings>
|
||||
<warning>Tag too long, represented as hex-coded</warning>
|
||||
</warnings>
|
||||
<tag_class>CONTEXT_SPECIFIC</tag_class>
|
||||
<is_constructed>false</is_constructed>
|
||||
<value_hex>7F 7F 7F 7F 7F 7F 7F 7F 7F 7F</value_hex>
|
||||
</identification_block>
|
||||
<length_block>
|
||||
<is_indefinite_form>false</is_indefinite_form>
|
||||
<long_form_used>false</long_form_used>
|
||||
<length>1</length>
|
||||
</length_block>
|
||||
<value_block>
|
||||
<value_hex>40</value_hex>
|
||||
</value_block>
|
||||
</ASN1_TYPE>
|
||||
<?xml version="1.0"?>
|
||||
<ASN1_TYPE>
|
||||
<identification_block>
|
||||
<warnings>
|
||||
<warning>Tag too long, represented as hex-coded</warning>
|
||||
</warnings>
|
||||
<tag_class>CONTEXT_SPECIFIC</tag_class>
|
||||
<is_constructed>false</is_constructed>
|
||||
<value_hex>7F 7F 7F 7F 7F 7F 7F 7F 7F 7F</value_hex>
|
||||
</identification_block>
|
||||
<length_block>
|
||||
<is_indefinite_form>false</is_indefinite_form>
|
||||
<long_form_used>false</long_form_used>
|
||||
<length>1</length>
|
||||
</length_block>
|
||||
<value_block>
|
||||
<value_hex>40</value_hex>
|
||||
</value_block>
|
||||
</ASN1_TYPE>
|
||||
|
68
format/asn1/testdata/tc10.xml
vendored
68
format/asn1/testdata/tc10.xml
vendored
@ -1,34 +1,34 @@
|
||||
<?xml version="1.0"?>
|
||||
<REAL>
|
||||
<identification_block>
|
||||
<tag_class>UNIVERSAL</tag_class>
|
||||
<is_constructed>false</is_constructed>
|
||||
<value_dec>9</value_dec>
|
||||
</identification_block>
|
||||
<length_block>
|
||||
<is_indefinite_form>false</is_indefinite_form>
|
||||
<long_form_used>false</long_form_used>
|
||||
<length>7</length>
|
||||
</length_block>
|
||||
<value_block>
|
||||
<information_block>
|
||||
<is_special_value>false</is_special_value>
|
||||
<base>2</base>
|
||||
<scaling_factor>0</scaling_factor>
|
||||
<is_negative>false</is_negative>
|
||||
<exponent_format>4</exponent_format>
|
||||
</information_block>
|
||||
<exponent_block>
|
||||
<warnings>
|
||||
<warning>Needlessly long format</warning>
|
||||
</warnings>
|
||||
<is_hex_only>false</is_hex_only>
|
||||
<value_dec>-5</value_dec>
|
||||
</exponent_block>
|
||||
<mantissa_block>
|
||||
<is_hex_only>false</is_hex_only>
|
||||
<value_dec>5</value_dec>
|
||||
</mantissa_block>
|
||||
<value_dec>0.156250</value_dec>
|
||||
</value_block>
|
||||
</REAL>
|
||||
<?xml version="1.0"?>
|
||||
<REAL>
|
||||
<identification_block>
|
||||
<tag_class>UNIVERSAL</tag_class>
|
||||
<is_constructed>false</is_constructed>
|
||||
<value_dec>9</value_dec>
|
||||
</identification_block>
|
||||
<length_block>
|
||||
<is_indefinite_form>false</is_indefinite_form>
|
||||
<long_form_used>false</long_form_used>
|
||||
<length>7</length>
|
||||
</length_block>
|
||||
<value_block>
|
||||
<information_block>
|
||||
<is_special_value>false</is_special_value>
|
||||
<base>2</base>
|
||||
<scaling_factor>0</scaling_factor>
|
||||
<is_negative>false</is_negative>
|
||||
<exponent_format>4</exponent_format>
|
||||
</information_block>
|
||||
<exponent_block>
|
||||
<warnings>
|
||||
<warning>Needlessly long format</warning>
|
||||
</warnings>
|
||||
<is_hex_only>false</is_hex_only>
|
||||
<value_dec>-5</value_dec>
|
||||
</exponent_block>
|
||||
<mantissa_block>
|
||||
<is_hex_only>false</is_hex_only>
|
||||
<value_dec>5</value_dec>
|
||||
</mantissa_block>
|
||||
<value_dec>0.156250</value_dec>
|
||||
</value_block>
|
||||
</REAL>
|
||||
|
40
format/asn1/testdata/tc11.xml
vendored
40
format/asn1/testdata/tc11.xml
vendored
@ -1,20 +1,20 @@
|
||||
<?xml version="1.0"?>
|
||||
<REAL>
|
||||
<error>Wrong NR form</error>
|
||||
<identification_block>
|
||||
<tag_class>UNIVERSAL</tag_class>
|
||||
<is_constructed>false</is_constructed>
|
||||
<value_dec>9</value_dec>
|
||||
</identification_block>
|
||||
<length_block>
|
||||
<is_indefinite_form>false</is_indefinite_form>
|
||||
<long_form_used>false</long_form_used>
|
||||
<length>9</length>
|
||||
</length_block>
|
||||
<value_block>
|
||||
<error>Wrong NR form</error>
|
||||
<information_block>
|
||||
<error>Wrong NR form</error>
|
||||
</information_block>
|
||||
</value_block>
|
||||
</REAL>
|
||||
<?xml version="1.0"?>
|
||||
<REAL>
|
||||
<error>Wrong NR form</error>
|
||||
<identification_block>
|
||||
<tag_class>UNIVERSAL</tag_class>
|
||||
<is_constructed>false</is_constructed>
|
||||
<value_dec>9</value_dec>
|
||||
</identification_block>
|
||||
<length_block>
|
||||
<is_indefinite_form>false</is_indefinite_form>
|
||||
<long_form_used>false</long_form_used>
|
||||
<length>9</length>
|
||||
</length_block>
|
||||
<value_block>
|
||||
<error>Wrong NR form</error>
|
||||
<information_block>
|
||||
<error>Wrong NR form</error>
|
||||
</information_block>
|
||||
</value_block>
|
||||
</REAL>
|
||||
|
40
format/asn1/testdata/tc12.xml
vendored
40
format/asn1/testdata/tc12.xml
vendored
@ -1,20 +1,20 @@
|
||||
<?xml version="1.0"?>
|
||||
<REAL>
|
||||
<error>Unknown special REAL value</error>
|
||||
<identification_block>
|
||||
<tag_class>UNIVERSAL</tag_class>
|
||||
<is_constructed>false</is_constructed>
|
||||
<value_dec>9</value_dec>
|
||||
</identification_block>
|
||||
<length_block>
|
||||
<is_indefinite_form>false</is_indefinite_form>
|
||||
<long_form_used>false</long_form_used>
|
||||
<length>1</length>
|
||||
</length_block>
|
||||
<value_block>
|
||||
<error>Unknown special REAL value</error>
|
||||
<information_block>
|
||||
<error>Unknown special REAL value</error>
|
||||
</information_block>
|
||||
</value_block>
|
||||
</REAL>
|
||||
<?xml version="1.0"?>
|
||||
<REAL>
|
||||
<error>Unknown special REAL value</error>
|
||||
<identification_block>
|
||||
<tag_class>UNIVERSAL</tag_class>
|
||||
<is_constructed>false</is_constructed>
|
||||
<value_dec>9</value_dec>
|
||||
</identification_block>
|
||||
<length_block>
|
||||
<is_indefinite_form>false</is_indefinite_form>
|
||||
<long_form_used>false</long_form_used>
|
||||
<length>1</length>
|
||||
</length_block>
|
||||
<value_block>
|
||||
<error>Unknown special REAL value</error>
|
||||
<information_block>
|
||||
<error>Unknown special REAL value</error>
|
||||
</information_block>
|
||||
</value_block>
|
||||
</REAL>
|
||||
|
76
format/asn1/testdata/tc13.xml
vendored
76
format/asn1/testdata/tc13.xml
vendored
@ -1,38 +1,38 @@
|
||||
<?xml version="1.0"?>
|
||||
<REAL>
|
||||
<error>End of input reached before message was fully decoded</error>
|
||||
<identification_block>
|
||||
<tag_class>UNIVERSAL</tag_class>
|
||||
<is_constructed>false</is_constructed>
|
||||
<value_dec>9</value_dec>
|
||||
</identification_block>
|
||||
<length_block>
|
||||
<warnings>
|
||||
<warning>Needlessly long encoded length</warning>
|
||||
<warning>Unneccesary usage of long length form</warning>
|
||||
</warnings>
|
||||
<is_indefinite_form>false</is_indefinite_form>
|
||||
<long_form_used>true</long_form_used>
|
||||
<length>7</length>
|
||||
</length_block>
|
||||
<value_block>
|
||||
<error>End of input reached before message was fully decoded</error>
|
||||
<information_block>
|
||||
<is_special_value>false</is_special_value>
|
||||
<base>2</base>
|
||||
<scaling_factor>0</scaling_factor>
|
||||
<is_negative>false</is_negative>
|
||||
<exponent_format>4</exponent_format>
|
||||
</information_block>
|
||||
<exponent_block>
|
||||
<warnings>
|
||||
<warning>Needlessly long format</warning>
|
||||
</warnings>
|
||||
<is_hex_only>false</is_hex_only>
|
||||
<value_dec>-5</value_dec>
|
||||
</exponent_block>
|
||||
<mantissa_block>
|
||||
<error>End of input reached before message was fully decoded</error>
|
||||
</mantissa_block>
|
||||
</value_block>
|
||||
</REAL>
|
||||
<?xml version="1.0"?>
|
||||
<REAL>
|
||||
<error>End of input reached before message was fully decoded</error>
|
||||
<identification_block>
|
||||
<tag_class>UNIVERSAL</tag_class>
|
||||
<is_constructed>false</is_constructed>
|
||||
<value_dec>9</value_dec>
|
||||
</identification_block>
|
||||
<length_block>
|
||||
<warnings>
|
||||
<warning>Needlessly long encoded length</warning>
|
||||
<warning>Unneccesary usage of long length form</warning>
|
||||
</warnings>
|
||||
<is_indefinite_form>false</is_indefinite_form>
|
||||
<long_form_used>true</long_form_used>
|
||||
<length>7</length>
|
||||
</length_block>
|
||||
<value_block>
|
||||
<error>End of input reached before message was fully decoded</error>
|
||||
<information_block>
|
||||
<is_special_value>false</is_special_value>
|
||||
<base>2</base>
|
||||
<scaling_factor>0</scaling_factor>
|
||||
<is_negative>false</is_negative>
|
||||
<exponent_format>4</exponent_format>
|
||||
</information_block>
|
||||
<exponent_block>
|
||||
<warnings>
|
||||
<warning>Needlessly long format</warning>
|
||||
</warnings>
|
||||
<is_hex_only>false</is_hex_only>
|
||||
<value_dec>-5</value_dec>
|
||||
</exponent_block>
|
||||
<mantissa_block>
|
||||
<error>End of input reached before message was fully decoded</error>
|
||||
</mantissa_block>
|
||||
</value_block>
|
||||
</REAL>
|
||||
|
62
format/asn1/testdata/tc14.xml
vendored
62
format/asn1/testdata/tc14.xml
vendored
@ -1,31 +1,31 @@
|
||||
<?xml version="1.0"?>
|
||||
<REAL>
|
||||
<error>End of input reached before message was fully decoded</error>
|
||||
<identification_block>
|
||||
<tag_class>UNIVERSAL</tag_class>
|
||||
<is_constructed>false</is_constructed>
|
||||
<value_dec>9</value_dec>
|
||||
</identification_block>
|
||||
<length_block>
|
||||
<warnings>
|
||||
<warning>Needlessly long encoded length</warning>
|
||||
<warning>Unneccesary usage of long length form</warning>
|
||||
</warnings>
|
||||
<is_indefinite_form>false</is_indefinite_form>
|
||||
<long_form_used>true</long_form_used>
|
||||
<length>7</length>
|
||||
</length_block>
|
||||
<value_block>
|
||||
<error>End of input reached before message was fully decoded</error>
|
||||
<information_block>
|
||||
<is_special_value>false</is_special_value>
|
||||
<base>2</base>
|
||||
<scaling_factor>0</scaling_factor>
|
||||
<is_negative>false</is_negative>
|
||||
<exponent_format>4</exponent_format>
|
||||
</information_block>
|
||||
<exponent_block>
|
||||
<error>End of input reached before message was fully decoded</error>
|
||||
</exponent_block>
|
||||
</value_block>
|
||||
</REAL>
|
||||
<?xml version="1.0"?>
|
||||
<REAL>
|
||||
<error>End of input reached before message was fully decoded</error>
|
||||
<identification_block>
|
||||
<tag_class>UNIVERSAL</tag_class>
|
||||
<is_constructed>false</is_constructed>
|
||||
<value_dec>9</value_dec>
|
||||
</identification_block>
|
||||
<length_block>
|
||||
<warnings>
|
||||
<warning>Needlessly long encoded length</warning>
|
||||
<warning>Unneccesary usage of long length form</warning>
|
||||
</warnings>
|
||||
<is_indefinite_form>false</is_indefinite_form>
|
||||
<long_form_used>true</long_form_used>
|
||||
<length>7</length>
|
||||
</length_block>
|
||||
<value_block>
|
||||
<error>End of input reached before message was fully decoded</error>
|
||||
<information_block>
|
||||
<is_special_value>false</is_special_value>
|
||||
<base>2</base>
|
||||
<scaling_factor>0</scaling_factor>
|
||||
<is_negative>false</is_negative>
|
||||
<exponent_format>4</exponent_format>
|
||||
</information_block>
|
||||
<exponent_block>
|
||||
<error>End of input reached before message was fully decoded</error>
|
||||
</exponent_block>
|
||||
</value_block>
|
||||
</REAL>
|
||||
|
68
format/asn1/testdata/tc15.xml
vendored
68
format/asn1/testdata/tc15.xml
vendored
@ -1,34 +1,34 @@
|
||||
<?xml version="1.0"?>
|
||||
<REAL>
|
||||
<identification_block>
|
||||
<tag_class>UNIVERSAL</tag_class>
|
||||
<is_constructed>false</is_constructed>
|
||||
<value_dec>9</value_dec>
|
||||
</identification_block>
|
||||
<length_block>
|
||||
<is_indefinite_form>false</is_indefinite_form>
|
||||
<long_form_used>false</long_form_used>
|
||||
<length>12</length>
|
||||
</length_block>
|
||||
<value_block>
|
||||
<information_block>
|
||||
<is_special_value>false</is_special_value>
|
||||
<base>2</base>
|
||||
<scaling_factor>0</scaling_factor>
|
||||
<is_negative>false</is_negative>
|
||||
<exponent_format>4</exponent_format>
|
||||
</information_block>
|
||||
<exponent_block>
|
||||
<warnings>
|
||||
<warning>Too big REAL exponent block for decoding, hex only</warning>
|
||||
</warnings>
|
||||
<is_hex_only>true</is_hex_only>
|
||||
<value_hex>09 7F FF FF FF FF FF FF FF FB</value_hex>
|
||||
</exponent_block>
|
||||
<mantissa_block>
|
||||
<is_hex_only>false</is_hex_only>
|
||||
<value_dec>5</value_dec>
|
||||
</mantissa_block>
|
||||
<value_hex>5 * 2^{09 7F FF FF FF FF FF FF FF FB}</value_hex>
|
||||
</value_block>
|
||||
</REAL>
|
||||
<?xml version="1.0"?>
|
||||
<REAL>
|
||||
<identification_block>
|
||||
<tag_class>UNIVERSAL</tag_class>
|
||||
<is_constructed>false</is_constructed>
|
||||
<value_dec>9</value_dec>
|
||||
</identification_block>
|
||||
<length_block>
|
||||
<is_indefinite_form>false</is_indefinite_form>
|
||||
<long_form_used>false</long_form_used>
|
||||
<length>12</length>
|
||||
</length_block>
|
||||
<value_block>
|
||||
<information_block>
|
||||
<is_special_value>false</is_special_value>
|
||||
<base>2</base>
|
||||
<scaling_factor>0</scaling_factor>
|
||||
<is_negative>false</is_negative>
|
||||
<exponent_format>4</exponent_format>
|
||||
</information_block>
|
||||
<exponent_block>
|
||||
<warnings>
|
||||
<warning>Too big REAL exponent block for decoding, hex only</warning>
|
||||
</warnings>
|
||||
<is_hex_only>true</is_hex_only>
|
||||
<value_hex>09 7F FF FF FF FF FF FF FF FB</value_hex>
|
||||
</exponent_block>
|
||||
<mantissa_block>
|
||||
<is_hex_only>false</is_hex_only>
|
||||
<value_dec>5</value_dec>
|
||||
</mantissa_block>
|
||||
<value_hex>5 * 2^{09 7F FF FF FF FF FF FF FF FB}</value_hex>
|
||||
</value_block>
|
||||
</REAL>
|
||||
|
68
format/asn1/testdata/tc16.xml
vendored
68
format/asn1/testdata/tc16.xml
vendored
@ -1,34 +1,34 @@
|
||||
<?xml version="1.0"?>
|
||||
<REAL>
|
||||
<identification_block>
|
||||
<tag_class>UNIVERSAL</tag_class>
|
||||
<is_constructed>false</is_constructed>
|
||||
<value_dec>9</value_dec>
|
||||
</identification_block>
|
||||
<length_block>
|
||||
<is_indefinite_form>false</is_indefinite_form>
|
||||
<long_form_used>false</long_form_used>
|
||||
<length>12</length>
|
||||
</length_block>
|
||||
<value_block>
|
||||
<information_block>
|
||||
<is_special_value>false</is_special_value>
|
||||
<base>2</base>
|
||||
<scaling_factor>0</scaling_factor>
|
||||
<is_negative>false</is_negative>
|
||||
<exponent_format>1</exponent_format>
|
||||
</information_block>
|
||||
<exponent_block>
|
||||
<is_hex_only>false</is_hex_only>
|
||||
<value_dec>-5</value_dec>
|
||||
</exponent_block>
|
||||
<mantissa_block>
|
||||
<warnings>
|
||||
<warning>Too big REAL mantissa for decoding, hex only</warning>
|
||||
</warnings>
|
||||
<is_hex_only>true</is_hex_only>
|
||||
<value_hex>05 05 05 05 05 05 05 05 05 05</value_hex>
|
||||
</mantissa_block>
|
||||
<value_hex>{05 05 05 05 05 05 05 05 05 05} * 2^-5</value_hex>
|
||||
</value_block>
|
||||
</REAL>
|
||||
<?xml version="1.0"?>
|
||||
<REAL>
|
||||
<identification_block>
|
||||
<tag_class>UNIVERSAL</tag_class>
|
||||
<is_constructed>false</is_constructed>
|
||||
<value_dec>9</value_dec>
|
||||
</identification_block>
|
||||
<length_block>
|
||||
<is_indefinite_form>false</is_indefinite_form>
|
||||
<long_form_used>false</long_form_used>
|
||||
<length>12</length>
|
||||
</length_block>
|
||||
<value_block>
|
||||
<information_block>
|
||||
<is_special_value>false</is_special_value>
|
||||
<base>2</base>
|
||||
<scaling_factor>0</scaling_factor>
|
||||
<is_negative>false</is_negative>
|
||||
<exponent_format>1</exponent_format>
|
||||
</information_block>
|
||||
<exponent_block>
|
||||
<is_hex_only>false</is_hex_only>
|
||||
<value_dec>-5</value_dec>
|
||||
</exponent_block>
|
||||
<mantissa_block>
|
||||
<warnings>
|
||||
<warning>Too big REAL mantissa for decoding, hex only</warning>
|
||||
</warnings>
|
||||
<is_hex_only>true</is_hex_only>
|
||||
<value_hex>05 05 05 05 05 05 05 05 05 05</value_hex>
|
||||
</mantissa_block>
|
||||
<value_hex>{05 05 05 05 05 05 05 05 05 05} * 2^-5</value_hex>
|
||||
</value_block>
|
||||
</REAL>
|
||||
|
74
format/asn1/testdata/tc17.xml
vendored
74
format/asn1/testdata/tc17.xml
vendored
@ -1,37 +1,37 @@
|
||||
<?xml version="1.0"?>
|
||||
<REAL>
|
||||
<identification_block>
|
||||
<tag_class>UNIVERSAL</tag_class>
|
||||
<is_constructed>false</is_constructed>
|
||||
<value_dec>9</value_dec>
|
||||
</identification_block>
|
||||
<length_block>
|
||||
<is_indefinite_form>false</is_indefinite_form>
|
||||
<long_form_used>false</long_form_used>
|
||||
<length>20</length>
|
||||
</length_block>
|
||||
<value_block>
|
||||
<information_block>
|
||||
<is_special_value>false</is_special_value>
|
||||
<base>16</base>
|
||||
<scaling_factor>3</scaling_factor>
|
||||
<is_negative>false</is_negative>
|
||||
<exponent_format>4</exponent_format>
|
||||
</information_block>
|
||||
<exponent_block>
|
||||
<warnings>
|
||||
<warning>Too big REAL exponent block for decoding, hex only</warning>
|
||||
</warnings>
|
||||
<is_hex_only>true</is_hex_only>
|
||||
<value_hex>09 FE FF FF FF FF FF FF FF FF</value_hex>
|
||||
</exponent_block>
|
||||
<mantissa_block>
|
||||
<warnings>
|
||||
<warning>Too big REAL mantissa for decoding, hex only</warning>
|
||||
</warnings>
|
||||
<is_hex_only>true</is_hex_only>
|
||||
<value_hex>05 05 05 05 05 05 05 05 05</value_hex>
|
||||
</mantissa_block>
|
||||
<value_hex>{05 05 05 05 05 05 05 05 05} * 16^{09 FE FF FF FF FF FF FF FF FF} * 2^3</value_hex>
|
||||
</value_block>
|
||||
</REAL>
|
||||
<?xml version="1.0"?>
|
||||
<REAL>
|
||||
<identification_block>
|
||||
<tag_class>UNIVERSAL</tag_class>
|
||||
<is_constructed>false</is_constructed>
|
||||
<value_dec>9</value_dec>
|
||||
</identification_block>
|
||||
<length_block>
|
||||
<is_indefinite_form>false</is_indefinite_form>
|
||||
<long_form_used>false</long_form_used>
|
||||
<length>20</length>
|
||||
</length_block>
|
||||
<value_block>
|
||||
<information_block>
|
||||
<is_special_value>false</is_special_value>
|
||||
<base>16</base>
|
||||
<scaling_factor>3</scaling_factor>
|
||||
<is_negative>false</is_negative>
|
||||
<exponent_format>4</exponent_format>
|
||||
</information_block>
|
||||
<exponent_block>
|
||||
<warnings>
|
||||
<warning>Too big REAL exponent block for decoding, hex only</warning>
|
||||
</warnings>
|
||||
<is_hex_only>true</is_hex_only>
|
||||
<value_hex>09 FE FF FF FF FF FF FF FF FF</value_hex>
|
||||
</exponent_block>
|
||||
<mantissa_block>
|
||||
<warnings>
|
||||
<warning>Too big REAL mantissa for decoding, hex only</warning>
|
||||
</warnings>
|
||||
<is_hex_only>true</is_hex_only>
|
||||
<value_hex>05 05 05 05 05 05 05 05 05</value_hex>
|
||||
</mantissa_block>
|
||||
<value_hex>{05 05 05 05 05 05 05 05 05} * 16^{09 FE FF FF FF FF FF FF FF FF} * 2^3</value_hex>
|
||||
</value_block>
|
||||
</REAL>
|
||||
|
38
format/asn1/testdata/tc18.xml
vendored
38
format/asn1/testdata/tc18.xml
vendored
@ -1,19 +1,19 @@
|
||||
<?xml version="1.0"?>
|
||||
<INTEGER>
|
||||
<identification_block>
|
||||
<tag_class>UNIVERSAL</tag_class>
|
||||
<is_constructed>false</is_constructed>
|
||||
<value_dec>2</value_dec>
|
||||
</identification_block>
|
||||
<length_block>
|
||||
<is_indefinite_form>false</is_indefinite_form>
|
||||
<long_form_used>false</long_form_used>
|
||||
<length>3</length>
|
||||
</length_block>
|
||||
<value_block>
|
||||
<warnings>
|
||||
<warning>Needlessly long format</warning>
|
||||
</warnings>
|
||||
<value_dec>-4095</value_dec>
|
||||
</value_block>
|
||||
</INTEGER>
|
||||
<?xml version="1.0"?>
|
||||
<INTEGER>
|
||||
<identification_block>
|
||||
<tag_class>UNIVERSAL</tag_class>
|
||||
<is_constructed>false</is_constructed>
|
||||
<value_dec>2</value_dec>
|
||||
</identification_block>
|
||||
<length_block>
|
||||
<is_indefinite_form>false</is_indefinite_form>
|
||||
<long_form_used>false</long_form_used>
|
||||
<length>3</length>
|
||||
</length_block>
|
||||
<value_block>
|
||||
<warnings>
|
||||
<warning>Needlessly long format</warning>
|
||||
</warnings>
|
||||
<value_dec>-4095</value_dec>
|
||||
</value_block>
|
||||
</INTEGER>
|
||||
|
34
format/asn1/testdata/tc19.xml
vendored
34
format/asn1/testdata/tc19.xml
vendored
@ -1,17 +1,17 @@
|
||||
<?xml version="1.0"?>
|
||||
<INTEGER>
|
||||
<error>End of input reached before message was fully decoded</error>
|
||||
<identification_block>
|
||||
<tag_class>UNIVERSAL</tag_class>
|
||||
<is_constructed>false</is_constructed>
|
||||
<value_dec>2</value_dec>
|
||||
</identification_block>
|
||||
<length_block>
|
||||
<is_indefinite_form>false</is_indefinite_form>
|
||||
<long_form_used>false</long_form_used>
|
||||
<length>1</length>
|
||||
</length_block>
|
||||
<value_block>
|
||||
<error>End of input reached before message was fully decoded</error>
|
||||
</value_block>
|
||||
</INTEGER>
|
||||
<?xml version="1.0"?>
|
||||
<INTEGER>
|
||||
<error>End of input reached before message was fully decoded</error>
|
||||
<identification_block>
|
||||
<tag_class>UNIVERSAL</tag_class>
|
||||
<is_constructed>false</is_constructed>
|
||||
<value_dec>2</value_dec>
|
||||
</identification_block>
|
||||
<length_block>
|
||||
<is_indefinite_form>false</is_indefinite_form>
|
||||
<long_form_used>false</long_form_used>
|
||||
<length>1</length>
|
||||
</length_block>
|
||||
<value_block>
|
||||
<error>End of input reached before message was fully decoded</error>
|
||||
</value_block>
|
||||
</INTEGER>
|
||||
|
14
format/asn1/testdata/tc2.xml
vendored
14
format/asn1/testdata/tc2.xml
vendored
@ -1,7 +1,7 @@
|
||||
<?xml version="1.0"?>
|
||||
<ASN1_TYPE>
|
||||
<error>End of input reached before message was fully decoded</error>
|
||||
<identification_block>
|
||||
<error>End of input reached before message was fully decoded</error>
|
||||
</identification_block>
|
||||
</ASN1_TYPE>
|
||||
<?xml version="1.0"?>
|
||||
<ASN1_TYPE>
|
||||
<error>End of input reached before message was fully decoded</error>
|
||||
<identification_block>
|
||||
<error>End of input reached before message was fully decoded</error>
|
||||
</identification_block>
|
||||
</ASN1_TYPE>
|
||||
|
38
format/asn1/testdata/tc20.xml
vendored
38
format/asn1/testdata/tc20.xml
vendored
@ -1,19 +1,19 @@
|
||||
<?xml version="1.0"?>
|
||||
<INTEGER>
|
||||
<identification_block>
|
||||
<tag_class>UNIVERSAL</tag_class>
|
||||
<is_constructed>false</is_constructed>
|
||||
<value_dec>2</value_dec>
|
||||
</identification_block>
|
||||
<length_block>
|
||||
<is_indefinite_form>false</is_indefinite_form>
|
||||
<long_form_used>false</long_form_used>
|
||||
<length>9</length>
|
||||
</length_block>
|
||||
<value_block>
|
||||
<warnings>
|
||||
<warning>Too big REAL for decoding, hex only</warning>
|
||||
</warnings>
|
||||
<value_hex>80 00 01 01 01 01 01 01 01</value_hex>
|
||||
</value_block>
|
||||
</INTEGER>
|
||||
<?xml version="1.0"?>
|
||||
<INTEGER>
|
||||
<identification_block>
|
||||
<tag_class>UNIVERSAL</tag_class>
|
||||
<is_constructed>false</is_constructed>
|
||||
<value_dec>2</value_dec>
|
||||
</identification_block>
|
||||
<length_block>
|
||||
<is_indefinite_form>false</is_indefinite_form>
|
||||
<long_form_used>false</long_form_used>
|
||||
<length>9</length>
|
||||
</length_block>
|
||||
<value_block>
|
||||
<warnings>
|
||||
<warning>Too big REAL for decoding, hex only</warning>
|
||||
</warnings>
|
||||
<value_hex>80 00 01 01 01 01 01 01 01</value_hex>
|
||||
</value_block>
|
||||
</INTEGER>
|
||||
|
70
format/asn1/testdata/tc21.xml
vendored
70
format/asn1/testdata/tc21.xml
vendored
@ -1,35 +1,35 @@
|
||||
<?xml version="1.0"?>
|
||||
<OBJECT_IDENTIFIER>
|
||||
<identification_block>
|
||||
<tag_class>UNIVERSAL</tag_class>
|
||||
<is_constructed>false</is_constructed>
|
||||
<value_dec>6</value_dec>
|
||||
</identification_block>
|
||||
<length_block>
|
||||
<is_indefinite_form>false</is_indefinite_form>
|
||||
<long_form_used>false</long_form_used>
|
||||
<length>6</length>
|
||||
</length_block>
|
||||
<value_block>
|
||||
<sid_blocks>
|
||||
<sid_block>
|
||||
<warnings>
|
||||
<warning>Needlessly long format of SID encoding</warning>
|
||||
</warnings>
|
||||
<is_first_sid>true</is_first_sid>
|
||||
<is_hex_only>false</is_hex_only>
|
||||
<value_dec>81</value_dec>
|
||||
</sid_block>
|
||||
<sid_block>
|
||||
<warnings>
|
||||
<warning>Needlessly long format of SID encoding</warning>
|
||||
</warnings>
|
||||
<is_first_sid>false</is_first_sid>
|
||||
<is_hex_only>false</is_hex_only>
|
||||
<value_dec>1</value_dec>
|
||||
</sid_block>
|
||||
</sid_blocks>
|
||||
<is_hex_only>false</is_hex_only>
|
||||
<value_dec>2.1.1</value_dec>
|
||||
</value_block>
|
||||
</OBJECT_IDENTIFIER>
|
||||
<?xml version="1.0"?>
|
||||
<OBJECT_IDENTIFIER>
|
||||
<identification_block>
|
||||
<tag_class>UNIVERSAL</tag_class>
|
||||
<is_constructed>false</is_constructed>
|
||||
<value_dec>6</value_dec>
|
||||
</identification_block>
|
||||
<length_block>
|
||||
<is_indefinite_form>false</is_indefinite_form>
|
||||
<long_form_used>false</long_form_used>
|
||||
<length>6</length>
|
||||
</length_block>
|
||||
<value_block>
|
||||
<sid_blocks>
|
||||
<sid_block>
|
||||
<warnings>
|
||||
<warning>Needlessly long format of SID encoding</warning>
|
||||
</warnings>
|
||||
<is_first_sid>true</is_first_sid>
|
||||
<is_hex_only>false</is_hex_only>
|
||||
<value_dec>81</value_dec>
|
||||
</sid_block>
|
||||
<sid_block>
|
||||
<warnings>
|
||||
<warning>Needlessly long format of SID encoding</warning>
|
||||
</warnings>
|
||||
<is_first_sid>false</is_first_sid>
|
||||
<is_hex_only>false</is_hex_only>
|
||||
<value_dec>1</value_dec>
|
||||
</sid_block>
|
||||
</sid_blocks>
|
||||
<is_hex_only>false</is_hex_only>
|
||||
<value_dec>2.1.1</value_dec>
|
||||
</value_block>
|
||||
</OBJECT_IDENTIFIER>
|
||||
|
94
format/asn1/testdata/tc22.xml
vendored
94
format/asn1/testdata/tc22.xml
vendored
@ -1,47 +1,47 @@
|
||||
<?xml version="1.0"?>
|
||||
<OBJECT_IDENTIFIER>
|
||||
<identification_block>
|
||||
<tag_class>UNIVERSAL</tag_class>
|
||||
<is_constructed>false</is_constructed>
|
||||
<value_dec>6</value_dec>
|
||||
</identification_block>
|
||||
<length_block>
|
||||
<is_indefinite_form>false</is_indefinite_form>
|
||||
<long_form_used>false</long_form_used>
|
||||
<length>16</length>
|
||||
</length_block>
|
||||
<value_block>
|
||||
<sid_blocks>
|
||||
<sid_block>
|
||||
<warnings>
|
||||
<warning>Too big SID for decoding, hex only</warning>
|
||||
</warnings>
|
||||
<is_first_sid>true</is_first_sid>
|
||||
<is_hex_only>true</is_hex_only>
|
||||
<value_hex>7F 7F 7F 7F 7F 7F 7F 7F 7F 7F 0F</value_hex>
|
||||
</sid_block>
|
||||
<sid_block>
|
||||
<is_first_sid>false</is_first_sid>
|
||||
<is_hex_only>false</is_hex_only>
|
||||
<value_dec>643</value_dec>
|
||||
</sid_block>
|
||||
<sid_block>
|
||||
<is_first_sid>false</is_first_sid>
|
||||
<is_hex_only>false</is_hex_only>
|
||||
<value_dec>2</value_dec>
|
||||
</sid_block>
|
||||
<sid_block>
|
||||
<is_first_sid>false</is_first_sid>
|
||||
<is_hex_only>false</is_hex_only>
|
||||
<value_dec>2</value_dec>
|
||||
</sid_block>
|
||||
<sid_block>
|
||||
<is_first_sid>false</is_first_sid>
|
||||
<is_hex_only>false</is_hex_only>
|
||||
<value_dec>3</value_dec>
|
||||
</sid_block>
|
||||
</sid_blocks>
|
||||
<is_hex_only>true</is_hex_only>
|
||||
<value_dec>2.{{7F 7F 7F 7F 7F 7F 7F 7F 7F 7F 0F} - 80}.643.2.2.3</value_dec>
|
||||
</value_block>
|
||||
</OBJECT_IDENTIFIER>
|
||||
<?xml version="1.0"?>
|
||||
<OBJECT_IDENTIFIER>
|
||||
<identification_block>
|
||||
<tag_class>UNIVERSAL</tag_class>
|
||||
<is_constructed>false</is_constructed>
|
||||
<value_dec>6</value_dec>
|
||||
</identification_block>
|
||||
<length_block>
|
||||
<is_indefinite_form>false</is_indefinite_form>
|
||||
<long_form_used>false</long_form_used>
|
||||
<length>16</length>
|
||||
</length_block>
|
||||
<value_block>
|
||||
<sid_blocks>
|
||||
<sid_block>
|
||||
<warnings>
|
||||
<warning>Too big SID for decoding, hex only</warning>
|
||||
</warnings>
|
||||
<is_first_sid>true</is_first_sid>
|
||||
<is_hex_only>true</is_hex_only>
|
||||
<value_hex>7F 7F 7F 7F 7F 7F 7F 7F 7F 7F 0F</value_hex>
|
||||
</sid_block>
|
||||
<sid_block>
|
||||
<is_first_sid>false</is_first_sid>
|
||||
<is_hex_only>false</is_hex_only>
|
||||
<value_dec>643</value_dec>
|
||||
</sid_block>
|
||||
<sid_block>
|
||||
<is_first_sid>false</is_first_sid>
|
||||
<is_hex_only>false</is_hex_only>
|
||||
<value_dec>2</value_dec>
|
||||
</sid_block>
|
||||
<sid_block>
|
||||
<is_first_sid>false</is_first_sid>
|
||||
<is_hex_only>false</is_hex_only>
|
||||
<value_dec>2</value_dec>
|
||||
</sid_block>
|
||||
<sid_block>
|
||||
<is_first_sid>false</is_first_sid>
|
||||
<is_hex_only>false</is_hex_only>
|
||||
<value_dec>3</value_dec>
|
||||
</sid_block>
|
||||
</sid_blocks>
|
||||
<is_hex_only>true</is_hex_only>
|
||||
<value_dec>2.{{7F 7F 7F 7F 7F 7F 7F 7F 7F 7F 0F} - 80}.643.2.2.3</value_dec>
|
||||
</value_block>
|
||||
</OBJECT_IDENTIFIER>
|
||||
|
34
format/asn1/testdata/tc23.xml
vendored
34
format/asn1/testdata/tc23.xml
vendored
@ -1,17 +1,17 @@
|
||||
<?xml version="1.0"?>
|
||||
<OBJECT_IDENTIFIER>
|
||||
<error>End of input reached before message was fully decoded</error>
|
||||
<identification_block>
|
||||
<tag_class>UNIVERSAL</tag_class>
|
||||
<is_constructed>false</is_constructed>
|
||||
<value_dec>6</value_dec>
|
||||
</identification_block>
|
||||
<length_block>
|
||||
<is_indefinite_form>false</is_indefinite_form>
|
||||
<long_form_used>false</long_form_used>
|
||||
<length>17</length>
|
||||
</length_block>
|
||||
<value_block>
|
||||
<error>End of input reached before message was fully decoded</error>
|
||||
</value_block>
|
||||
</OBJECT_IDENTIFIER>
|
||||
<?xml version="1.0"?>
|
||||
<OBJECT_IDENTIFIER>
|
||||
<error>End of input reached before message was fully decoded</error>
|
||||
<identification_block>
|
||||
<tag_class>UNIVERSAL</tag_class>
|
||||
<is_constructed>false</is_constructed>
|
||||
<value_dec>6</value_dec>
|
||||
</identification_block>
|
||||
<length_block>
|
||||
<is_indefinite_form>false</is_indefinite_form>
|
||||
<long_form_used>false</long_form_used>
|
||||
<length>17</length>
|
||||
</length_block>
|
||||
<value_block>
|
||||
<error>End of input reached before message was fully decoded</error>
|
||||
</value_block>
|
||||
</OBJECT_IDENTIFIER>
|
||||
|
128
format/asn1/testdata/tc24.xml
vendored
128
format/asn1/testdata/tc24.xml
vendored
@ -1,64 +1,64 @@
|
||||
<?xml version="1.0"?>
|
||||
<OBJECT_IDENTIFIER>
|
||||
<identification_block>
|
||||
<tag_class>UNIVERSAL</tag_class>
|
||||
<is_constructed>false</is_constructed>
|
||||
<value_dec>6</value_dec>
|
||||
</identification_block>
|
||||
<length_block>
|
||||
<is_indefinite_form>false</is_indefinite_form>
|
||||
<long_form_used>false</long_form_used>
|
||||
<length>21</length>
|
||||
</length_block>
|
||||
<value_block>
|
||||
<sid_blocks>
|
||||
<sid_block>
|
||||
<is_first_sid>true</is_first_sid>
|
||||
<is_hex_only>false</is_hex_only>
|
||||
<value_dec>10080</value_dec>
|
||||
</sid_block>
|
||||
<sid_block>
|
||||
<is_first_sid>false</is_first_sid>
|
||||
<is_hex_only>false</is_hex_only>
|
||||
<value_dec>840</value_dec>
|
||||
</sid_block>
|
||||
<sid_block>
|
||||
<is_first_sid>false</is_first_sid>
|
||||
<is_hex_only>false</is_hex_only>
|
||||
<value_dec>135119</value_dec>
|
||||
</sid_block>
|
||||
<sid_block>
|
||||
<is_first_sid>false</is_first_sid>
|
||||
<is_hex_only>false</is_hex_only>
|
||||
<value_dec>9</value_dec>
|
||||
</sid_block>
|
||||
<sid_block>
|
||||
<is_first_sid>false</is_first_sid>
|
||||
<is_hex_only>false</is_hex_only>
|
||||
<value_dec>2</value_dec>
|
||||
</sid_block>
|
||||
<sid_block>
|
||||
<is_first_sid>false</is_first_sid>
|
||||
<is_hex_only>false</is_hex_only>
|
||||
<value_dec>12301002</value_dec>
|
||||
</sid_block>
|
||||
<sid_block>
|
||||
<is_first_sid>false</is_first_sid>
|
||||
<is_hex_only>false</is_hex_only>
|
||||
<value_dec>12132323</value_dec>
|
||||
</sid_block>
|
||||
<sid_block>
|
||||
<is_first_sid>false</is_first_sid>
|
||||
<is_hex_only>false</is_hex_only>
|
||||
<value_dec>191919</value_dec>
|
||||
</sid_block>
|
||||
<sid_block>
|
||||
<is_first_sid>false</is_first_sid>
|
||||
<is_hex_only>false</is_hex_only>
|
||||
<value_dec>2</value_dec>
|
||||
</sid_block>
|
||||
</sid_blocks>
|
||||
<is_hex_only>false</is_hex_only>
|
||||
<value_dec>2.10000.840.135119.9.2.12301002.12132323.191919.2</value_dec>
|
||||
</value_block>
|
||||
</OBJECT_IDENTIFIER>
|
||||
<?xml version="1.0"?>
|
||||
<OBJECT_IDENTIFIER>
|
||||
<identification_block>
|
||||
<tag_class>UNIVERSAL</tag_class>
|
||||
<is_constructed>false</is_constructed>
|
||||
<value_dec>6</value_dec>
|
||||
</identification_block>
|
||||
<length_block>
|
||||
<is_indefinite_form>false</is_indefinite_form>
|
||||
<long_form_used>false</long_form_used>
|
||||
<length>21</length>
|
||||
</length_block>
|
||||
<value_block>
|
||||
<sid_blocks>
|
||||
<sid_block>
|
||||
<is_first_sid>true</is_first_sid>
|
||||
<is_hex_only>false</is_hex_only>
|
||||
<value_dec>10080</value_dec>
|
||||
</sid_block>
|
||||
<sid_block>
|
||||
<is_first_sid>false</is_first_sid>
|
||||
<is_hex_only>false</is_hex_only>
|
||||
<value_dec>840</value_dec>
|
||||
</sid_block>
|
||||
<sid_block>
|
||||
<is_first_sid>false</is_first_sid>
|
||||
<is_hex_only>false</is_hex_only>
|
||||
<value_dec>135119</value_dec>
|
||||
</sid_block>
|
||||
<sid_block>
|
||||
<is_first_sid>false</is_first_sid>
|
||||
<is_hex_only>false</is_hex_only>
|
||||
<value_dec>9</value_dec>
|
||||
</sid_block>
|
||||
<sid_block>
|
||||
<is_first_sid>false</is_first_sid>
|
||||
<is_hex_only>false</is_hex_only>
|
||||
<value_dec>2</value_dec>
|
||||
</sid_block>
|
||||
<sid_block>
|
||||
<is_first_sid>false</is_first_sid>
|
||||
<is_hex_only>false</is_hex_only>
|
||||
<value_dec>12301002</value_dec>
|
||||
</sid_block>
|
||||
<sid_block>
|
||||
<is_first_sid>false</is_first_sid>
|
||||
<is_hex_only>false</is_hex_only>
|
||||
<value_dec>12132323</value_dec>
|
||||
</sid_block>
|
||||
<sid_block>
|
||||
<is_first_sid>false</is_first_sid>
|
||||
<is_hex_only>false</is_hex_only>
|
||||
<value_dec>191919</value_dec>
|
||||
</sid_block>
|
||||
<sid_block>
|
||||
<is_first_sid>false</is_first_sid>
|
||||
<is_hex_only>false</is_hex_only>
|
||||
<value_dec>2</value_dec>
|
||||
</sid_block>
|
||||
</sid_blocks>
|
||||
<is_hex_only>false</is_hex_only>
|
||||
<value_dec>2.10000.840.135119.9.2.12301002.12132323.191919.2</value_dec>
|
||||
</value_block>
|
||||
</OBJECT_IDENTIFIER>
|
||||
|
40
format/asn1/testdata/tc25.xml
vendored
40
format/asn1/testdata/tc25.xml
vendored
@ -1,20 +1,20 @@
|
||||
<?xml version="1.0"?>
|
||||
<BOOLEAN>
|
||||
<identification_block>
|
||||
<tag_class>UNIVERSAL</tag_class>
|
||||
<is_constructed>false</is_constructed>
|
||||
<value_dec>1</value_dec>
|
||||
</identification_block>
|
||||
<length_block>
|
||||
<is_indefinite_form>false</is_indefinite_form>
|
||||
<long_form_used>false</long_form_used>
|
||||
<length>3</length>
|
||||
</length_block>
|
||||
<value_block>
|
||||
<warnings>
|
||||
<warning>Needlessly long format</warning>
|
||||
<warning>BOOLEAN value encoded in more then 1 octet</warning>
|
||||
</warnings>
|
||||
<value_hex>00 00 00</value_hex>
|
||||
</value_block>
|
||||
</BOOLEAN>
|
||||
<?xml version="1.0"?>
|
||||
<BOOLEAN>
|
||||
<identification_block>
|
||||
<tag_class>UNIVERSAL</tag_class>
|
||||
<is_constructed>false</is_constructed>
|
||||
<value_dec>1</value_dec>
|
||||
</identification_block>
|
||||
<length_block>
|
||||
<is_indefinite_form>false</is_indefinite_form>
|
||||
<long_form_used>false</long_form_used>
|
||||
<length>3</length>
|
||||
</length_block>
|
||||
<value_block>
|
||||
<warnings>
|
||||
<warning>Needlessly long format</warning>
|
||||
<warning>BOOLEAN value encoded in more then 1 octet</warning>
|
||||
</warnings>
|
||||
<value_hex>00 00 00</value_hex>
|
||||
</value_block>
|
||||
</BOOLEAN>
|
||||
|
40
format/asn1/testdata/tc26.xml
vendored
40
format/asn1/testdata/tc26.xml
vendored
@ -1,20 +1,20 @@
|
||||
<?xml version="1.0"?>
|
||||
<BOOLEAN>
|
||||
<identification_block>
|
||||
<tag_class>UNIVERSAL</tag_class>
|
||||
<is_constructed>false</is_constructed>
|
||||
<value_dec>1</value_dec>
|
||||
</identification_block>
|
||||
<length_block>
|
||||
<is_indefinite_form>false</is_indefinite_form>
|
||||
<long_form_used>false</long_form_used>
|
||||
<length>3</length>
|
||||
</length_block>
|
||||
<value_block>
|
||||
<warnings>
|
||||
<warning>Needlessly long format</warning>
|
||||
<warning>BOOLEAN value encoded in more then 1 octet</warning>
|
||||
</warnings>
|
||||
<value_hex>00 00 01</value_hex>
|
||||
</value_block>
|
||||
</BOOLEAN>
|
||||
<?xml version="1.0"?>
|
||||
<BOOLEAN>
|
||||
<identification_block>
|
||||
<tag_class>UNIVERSAL</tag_class>
|
||||
<is_constructed>false</is_constructed>
|
||||
<value_dec>1</value_dec>
|
||||
</identification_block>
|
||||
<length_block>
|
||||
<is_indefinite_form>false</is_indefinite_form>
|
||||
<long_form_used>false</long_form_used>
|
||||
<length>3</length>
|
||||
</length_block>
|
||||
<value_block>
|
||||
<warnings>
|
||||
<warning>Needlessly long format</warning>
|
||||
<warning>BOOLEAN value encoded in more then 1 octet</warning>
|
||||
</warnings>
|
||||
<value_hex>00 00 01</value_hex>
|
||||
</value_block>
|
||||
</BOOLEAN>
|
||||
|
34
format/asn1/testdata/tc27.xml
vendored
34
format/asn1/testdata/tc27.xml
vendored
@ -1,17 +1,17 @@
|
||||
<?xml version="1.0"?>
|
||||
<BOOLEAN>
|
||||
<error>End of input reached before message was fully decoded</error>
|
||||
<identification_block>
|
||||
<tag_class>UNIVERSAL</tag_class>
|
||||
<is_constructed>false</is_constructed>
|
||||
<value_dec>1</value_dec>
|
||||
</identification_block>
|
||||
<length_block>
|
||||
<is_indefinite_form>false</is_indefinite_form>
|
||||
<long_form_used>false</long_form_used>
|
||||
<length>3</length>
|
||||
</length_block>
|
||||
<value_block>
|
||||
<error>End of input reached before message was fully decoded</error>
|
||||
</value_block>
|
||||
</BOOLEAN>
|
||||
<?xml version="1.0"?>
|
||||
<BOOLEAN>
|
||||
<error>End of input reached before message was fully decoded</error>
|
||||
<identification_block>
|
||||
<tag_class>UNIVERSAL</tag_class>
|
||||
<is_constructed>false</is_constructed>
|
||||
<value_dec>1</value_dec>
|
||||
</identification_block>
|
||||
<length_block>
|
||||
<is_indefinite_form>false</is_indefinite_form>
|
||||
<long_form_used>false</long_form_used>
|
||||
<length>3</length>
|
||||
</length_block>
|
||||
<value_block>
|
||||
<error>End of input reached before message was fully decoded</error>
|
||||
</value_block>
|
||||
</BOOLEAN>
|
||||
|
32
format/asn1/testdata/tc28.xml
vendored
32
format/asn1/testdata/tc28.xml
vendored
@ -1,16 +1,16 @@
|
||||
<?xml version="1.0"?>
|
||||
<BOOLEAN>
|
||||
<identification_block>
|
||||
<tag_class>UNIVERSAL</tag_class>
|
||||
<is_constructed>false</is_constructed>
|
||||
<value_dec>1</value_dec>
|
||||
</identification_block>
|
||||
<length_block>
|
||||
<is_indefinite_form>false</is_indefinite_form>
|
||||
<long_form_used>false</long_form_used>
|
||||
<length>1</length>
|
||||
</length_block>
|
||||
<value_block>
|
||||
<value_hex>FF</value_hex>
|
||||
</value_block>
|
||||
</BOOLEAN>
|
||||
<?xml version="1.0"?>
|
||||
<BOOLEAN>
|
||||
<identification_block>
|
||||
<tag_class>UNIVERSAL</tag_class>
|
||||
<is_constructed>false</is_constructed>
|
||||
<value_dec>1</value_dec>
|
||||
</identification_block>
|
||||
<length_block>
|
||||
<is_indefinite_form>false</is_indefinite_form>
|
||||
<long_form_used>false</long_form_used>
|
||||
<length>1</length>
|
||||
</length_block>
|
||||
<value_block>
|
||||
<value_hex>FF</value_hex>
|
||||
</value_block>
|
||||
</BOOLEAN>
|
||||
|
32
format/asn1/testdata/tc29.xml
vendored
32
format/asn1/testdata/tc29.xml
vendored
@ -1,16 +1,16 @@
|
||||
<?xml version="1.0"?>
|
||||
<BOOLEAN>
|
||||
<identification_block>
|
||||
<tag_class>UNIVERSAL</tag_class>
|
||||
<is_constructed>false</is_constructed>
|
||||
<value_dec>1</value_dec>
|
||||
</identification_block>
|
||||
<length_block>
|
||||
<is_indefinite_form>false</is_indefinite_form>
|
||||
<long_form_used>false</long_form_used>
|
||||
<length>1</length>
|
||||
</length_block>
|
||||
<value_block>
|
||||
<value_hex>00</value_hex>
|
||||
</value_block>
|
||||
</BOOLEAN>
|
||||
<?xml version="1.0"?>
|
||||
<BOOLEAN>
|
||||
<identification_block>
|
||||
<tag_class>UNIVERSAL</tag_class>
|
||||
<is_constructed>false</is_constructed>
|
||||
<value_dec>1</value_dec>
|
||||
</identification_block>
|
||||
<length_block>
|
||||
<is_indefinite_form>false</is_indefinite_form>
|
||||
<long_form_used>false</long_form_used>
|
||||
<length>1</length>
|
||||
</length_block>
|
||||
<value_block>
|
||||
<value_hex>00</value_hex>
|
||||
</value_block>
|
||||
</BOOLEAN>
|
||||
|
30
format/asn1/testdata/tc3.xml
vendored
30
format/asn1/testdata/tc3.xml
vendored
@ -1,15 +1,15 @@
|
||||
<?xml version="1.0"?>
|
||||
<ASN1_TYPE>
|
||||
<error>No length block encoded</error>
|
||||
<identification_block>
|
||||
<warnings>
|
||||
<warning>Tag too long, represented as hex-coded</warning>
|
||||
</warnings>
|
||||
<tag_class>CONTEXT_SPECIFIC</tag_class>
|
||||
<is_constructed>false</is_constructed>
|
||||
<value_hex>7F 7F 7F 7F 7F 7F 7F 7F 7F</value_hex>
|
||||
</identification_block>
|
||||
<length_block>
|
||||
<error>No length block encoded</error>
|
||||
</length_block>
|
||||
</ASN1_TYPE>
|
||||
<?xml version="1.0"?>
|
||||
<ASN1_TYPE>
|
||||
<error>No length block encoded</error>
|
||||
<identification_block>
|
||||
<warnings>
|
||||
<warning>Tag too long, represented as hex-coded</warning>
|
||||
</warnings>
|
||||
<tag_class>CONTEXT_SPECIFIC</tag_class>
|
||||
<is_constructed>false</is_constructed>
|
||||
<value_hex>7F 7F 7F 7F 7F 7F 7F 7F 7F</value_hex>
|
||||
</identification_block>
|
||||
<length_block>
|
||||
<error>No length block encoded</error>
|
||||
</length_block>
|
||||
</ASN1_TYPE>
|
||||
|
36
format/asn1/testdata/tc30.xml
vendored
36
format/asn1/testdata/tc30.xml
vendored
@ -1,18 +1,18 @@
|
||||
<?xml version="1.0"?>
|
||||
<NULL>
|
||||
<identification_block>
|
||||
<tag_class>UNIVERSAL</tag_class>
|
||||
<is_constructed>false</is_constructed>
|
||||
<value_dec>5</value_dec>
|
||||
</identification_block>
|
||||
<length_block>
|
||||
<is_indefinite_form>false</is_indefinite_form>
|
||||
<long_form_used>false</long_form_used>
|
||||
<length>3</length>
|
||||
</length_block>
|
||||
<value_block>
|
||||
<warnings>
|
||||
<warning>Non-zero length of value block for NULL type</warning>
|
||||
</warnings>
|
||||
</value_block>
|
||||
</NULL>
|
||||
<?xml version="1.0"?>
|
||||
<NULL>
|
||||
<identification_block>
|
||||
<tag_class>UNIVERSAL</tag_class>
|
||||
<is_constructed>false</is_constructed>
|
||||
<value_dec>5</value_dec>
|
||||
</identification_block>
|
||||
<length_block>
|
||||
<is_indefinite_form>false</is_indefinite_form>
|
||||
<long_form_used>false</long_form_used>
|
||||
<length>3</length>
|
||||
</length_block>
|
||||
<value_block>
|
||||
<warnings>
|
||||
<warning>Non-zero length of value block for NULL type</warning>
|
||||
</warnings>
|
||||
</value_block>
|
||||
</NULL>
|
||||
|
40
format/asn1/testdata/tc31.xml
vendored
40
format/asn1/testdata/tc31.xml
vendored
@ -1,20 +1,20 @@
|
||||
<?xml version="1.0"?>
|
||||
<NULL>
|
||||
<error>End of input reached before message was fully decoded</error>
|
||||
<identification_block>
|
||||
<tag_class>UNIVERSAL</tag_class>
|
||||
<is_constructed>false</is_constructed>
|
||||
<value_dec>5</value_dec>
|
||||
</identification_block>
|
||||
<length_block>
|
||||
<is_indefinite_form>false</is_indefinite_form>
|
||||
<long_form_used>false</long_form_used>
|
||||
<length>3</length>
|
||||
</length_block>
|
||||
<value_block>
|
||||
<warnings>
|
||||
<warning>Non-zero length of value block for NULL type</warning>
|
||||
</warnings>
|
||||
<error>End of input reached before message was fully decoded</error>
|
||||
</value_block>
|
||||
</NULL>
|
||||
<?xml version="1.0"?>
|
||||
<NULL>
|
||||
<error>End of input reached before message was fully decoded</error>
|
||||
<identification_block>
|
||||
<tag_class>UNIVERSAL</tag_class>
|
||||
<is_constructed>false</is_constructed>
|
||||
<value_dec>5</value_dec>
|
||||
</identification_block>
|
||||
<length_block>
|
||||
<is_indefinite_form>false</is_indefinite_form>
|
||||
<long_form_used>false</long_form_used>
|
||||
<length>3</length>
|
||||
</length_block>
|
||||
<value_block>
|
||||
<warnings>
|
||||
<warning>Non-zero length of value block for NULL type</warning>
|
||||
</warnings>
|
||||
<error>End of input reached before message was fully decoded</error>
|
||||
</value_block>
|
||||
</NULL>
|
||||
|
28
format/asn1/testdata/tc32.xml
vendored
28
format/asn1/testdata/tc32.xml
vendored
@ -1,14 +1,14 @@
|
||||
<?xml version="1.0"?>
|
||||
<NULL>
|
||||
<identification_block>
|
||||
<tag_class>UNIVERSAL</tag_class>
|
||||
<is_constructed>false</is_constructed>
|
||||
<value_dec>5</value_dec>
|
||||
</identification_block>
|
||||
<length_block>
|
||||
<is_indefinite_form>false</is_indefinite_form>
|
||||
<long_form_used>false</long_form_used>
|
||||
<length>0</length>
|
||||
</length_block>
|
||||
<value_block></value_block>
|
||||
</NULL>
|
||||
<?xml version="1.0"?>
|
||||
<NULL>
|
||||
<identification_block>
|
||||
<tag_class>UNIVERSAL</tag_class>
|
||||
<is_constructed>false</is_constructed>
|
||||
<value_dec>5</value_dec>
|
||||
</identification_block>
|
||||
<length_block>
|
||||
<is_indefinite_form>false</is_indefinite_form>
|
||||
<long_form_used>false</long_form_used>
|
||||
<length>0</length>
|
||||
</length_block>
|
||||
<value_block></value_block>
|
||||
</NULL>
|
||||
|
34
format/asn1/testdata/tc33.xml
vendored
34
format/asn1/testdata/tc33.xml
vendored
@ -1,17 +1,17 @@
|
||||
<?xml version="1.0"?>
|
||||
<BIT_STRING>
|
||||
<error>Unused bits for BITSTRING must be in range 0-7</error>
|
||||
<identification_block>
|
||||
<tag_class>UNIVERSAL</tag_class>
|
||||
<is_constructed>false</is_constructed>
|
||||
<value_dec>3</value_dec>
|
||||
</identification_block>
|
||||
<length_block>
|
||||
<is_indefinite_form>false</is_indefinite_form>
|
||||
<long_form_used>false</long_form_used>
|
||||
<length>2</length>
|
||||
</length_block>
|
||||
<value_block>
|
||||
<error>Unused bits for BITSTRING must be in range 0-7</error>
|
||||
</value_block>
|
||||
</BIT_STRING>
|
||||
<?xml version="1.0"?>
|
||||
<BIT_STRING>
|
||||
<error>Unused bits for BITSTRING must be in range 0-7</error>
|
||||
<identification_block>
|
||||
<tag_class>UNIVERSAL</tag_class>
|
||||
<is_constructed>false</is_constructed>
|
||||
<value_dec>3</value_dec>
|
||||
</identification_block>
|
||||
<length_block>
|
||||
<is_indefinite_form>false</is_indefinite_form>
|
||||
<long_form_used>false</long_form_used>
|
||||
<length>2</length>
|
||||
</length_block>
|
||||
<value_block>
|
||||
<error>Unused bits for BITSTRING must be in range 0-7</error>
|
||||
</value_block>
|
||||
</BIT_STRING>
|
||||
|
34
format/asn1/testdata/tc34.xml
vendored
34
format/asn1/testdata/tc34.xml
vendored
@ -1,17 +1,17 @@
|
||||
<?xml version="1.0"?>
|
||||
<BIT_STRING>
|
||||
<error>End of input reached before message was fully decoded</error>
|
||||
<identification_block>
|
||||
<tag_class>UNIVERSAL</tag_class>
|
||||
<is_constructed>false</is_constructed>
|
||||
<value_dec>3</value_dec>
|
||||
</identification_block>
|
||||
<length_block>
|
||||
<is_indefinite_form>false</is_indefinite_form>
|
||||
<long_form_used>false</long_form_used>
|
||||
<length>2</length>
|
||||
</length_block>
|
||||
<value_block>
|
||||
<error>End of input reached before message was fully decoded</error>
|
||||
</value_block>
|
||||
</BIT_STRING>
|
||||
<?xml version="1.0"?>
|
||||
<BIT_STRING>
|
||||
<error>End of input reached before message was fully decoded</error>
|
||||
<identification_block>
|
||||
<tag_class>UNIVERSAL</tag_class>
|
||||
<is_constructed>false</is_constructed>
|
||||
<value_dec>3</value_dec>
|
||||
</identification_block>
|
||||
<length_block>
|
||||
<is_indefinite_form>false</is_indefinite_form>
|
||||
<long_form_used>false</long_form_used>
|
||||
<length>2</length>
|
||||
</length_block>
|
||||
<value_block>
|
||||
<error>End of input reached before message was fully decoded</error>
|
||||
</value_block>
|
||||
</BIT_STRING>
|
||||
|
34
format/asn1/testdata/tc35.xml
vendored
34
format/asn1/testdata/tc35.xml
vendored
@ -1,17 +1,17 @@
|
||||
<?xml version="1.0"?>
|
||||
<BIT_STRING>
|
||||
<error>BIT STRING may consists of BIT STRINGs only</error>
|
||||
<identification_block>
|
||||
<tag_class>UNIVERSAL</tag_class>
|
||||
<is_constructed>true</is_constructed>
|
||||
<value_dec>3</value_dec>
|
||||
</identification_block>
|
||||
<length_block>
|
||||
<is_indefinite_form>true</is_indefinite_form>
|
||||
<long_form_used>false</long_form_used>
|
||||
<length>0</length>
|
||||
</length_block>
|
||||
<value_block>
|
||||
<error>BIT STRING may consists of BIT STRINGs only</error>
|
||||
</value_block>
|
||||
</BIT_STRING>
|
||||
<?xml version="1.0"?>
|
||||
<BIT_STRING>
|
||||
<error>BIT STRING may consists of BIT STRINGs only</error>
|
||||
<identification_block>
|
||||
<tag_class>UNIVERSAL</tag_class>
|
||||
<is_constructed>true</is_constructed>
|
||||
<value_dec>3</value_dec>
|
||||
</identification_block>
|
||||
<length_block>
|
||||
<is_indefinite_form>true</is_indefinite_form>
|
||||
<long_form_used>false</long_form_used>
|
||||
<length>0</length>
|
||||
</length_block>
|
||||
<value_block>
|
||||
<error>BIT STRING may consists of BIT STRINGs only</error>
|
||||
</value_block>
|
||||
</BIT_STRING>
|
||||
|
34
format/asn1/testdata/tc36.xml
vendored
34
format/asn1/testdata/tc36.xml
vendored
@ -1,17 +1,17 @@
|
||||
<?xml version="1.0"?>
|
||||
<BIT_STRING>
|
||||
<error>Usign of "unused bits" inside constructive BIT STRING allowed for least one only</error>
|
||||
<identification_block>
|
||||
<tag_class>UNIVERSAL</tag_class>
|
||||
<is_constructed>true</is_constructed>
|
||||
<value_dec>3</value_dec>
|
||||
</identification_block>
|
||||
<length_block>
|
||||
<is_indefinite_form>true</is_indefinite_form>
|
||||
<long_form_used>false</long_form_used>
|
||||
<length>0</length>
|
||||
</length_block>
|
||||
<value_block>
|
||||
<error>Usign of "unused bits" inside constructive BIT STRING allowed for least one only</error>
|
||||
</value_block>
|
||||
</BIT_STRING>
|
||||
<?xml version="1.0"?>
|
||||
<BIT_STRING>
|
||||
<error>Usign of "unused bits" inside constructive BIT STRING allowed for least one only</error>
|
||||
<identification_block>
|
||||
<tag_class>UNIVERSAL</tag_class>
|
||||
<is_constructed>true</is_constructed>
|
||||
<value_dec>3</value_dec>
|
||||
</identification_block>
|
||||
<length_block>
|
||||
<is_indefinite_form>true</is_indefinite_form>
|
||||
<long_form_used>false</long_form_used>
|
||||
<length>0</length>
|
||||
</length_block>
|
||||
<value_block>
|
||||
<error>Usign of "unused bits" inside constructive BIT STRING allowed for least one only</error>
|
||||
</value_block>
|
||||
</BIT_STRING>
|
||||
|
126
format/asn1/testdata/tc37.xml
vendored
126
format/asn1/testdata/tc37.xml
vendored
@ -1,63 +1,63 @@
|
||||
<?xml version="1.0"?>
|
||||
<BIT_STRING>
|
||||
<identification_block>
|
||||
<tag_class>UNIVERSAL</tag_class>
|
||||
<is_constructed>true</is_constructed>
|
||||
<value_dec>3</value_dec>
|
||||
</identification_block>
|
||||
<length_block>
|
||||
<is_indefinite_form>false</is_indefinite_form>
|
||||
<long_form_used>false</long_form_used>
|
||||
<length>12</length>
|
||||
</length_block>
|
||||
<value_block>
|
||||
<BIT_STRING>
|
||||
<identification_block>
|
||||
<tag_class>UNIVERSAL</tag_class>
|
||||
<is_constructed>false</is_constructed>
|
||||
<value_dec>3</value_dec>
|
||||
</identification_block>
|
||||
<length_block>
|
||||
<is_indefinite_form>false</is_indefinite_form>
|
||||
<long_form_used>false</long_form_used>
|
||||
<length>2</length>
|
||||
</length_block>
|
||||
<value_block>
|
||||
<unused_bits>0</unused_bits>
|
||||
<value_hex>0000 0001</value_hex>
|
||||
</value_block>
|
||||
</BIT_STRING>
|
||||
<BIT_STRING>
|
||||
<identification_block>
|
||||
<tag_class>UNIVERSAL</tag_class>
|
||||
<is_constructed>false</is_constructed>
|
||||
<value_dec>3</value_dec>
|
||||
</identification_block>
|
||||
<length_block>
|
||||
<is_indefinite_form>false</is_indefinite_form>
|
||||
<long_form_used>false</long_form_used>
|
||||
<length>2</length>
|
||||
</length_block>
|
||||
<value_block>
|
||||
<unused_bits>0</unused_bits>
|
||||
<value_hex>0000 0001</value_hex>
|
||||
</value_block>
|
||||
</BIT_STRING>
|
||||
<BIT_STRING>
|
||||
<identification_block>
|
||||
<tag_class>UNIVERSAL</tag_class>
|
||||
<is_constructed>false</is_constructed>
|
||||
<value_dec>3</value_dec>
|
||||
</identification_block>
|
||||
<length_block>
|
||||
<is_indefinite_form>false</is_indefinite_form>
|
||||
<long_form_used>false</long_form_used>
|
||||
<length>2</length>
|
||||
</length_block>
|
||||
<value_block>
|
||||
<unused_bits>4</unused_bits>
|
||||
<value_hex>0000 1111</value_hex>
|
||||
</value_block>
|
||||
</BIT_STRING>
|
||||
</value_block>
|
||||
</BIT_STRING>
|
||||
<?xml version="1.0"?>
|
||||
<BIT_STRING>
|
||||
<identification_block>
|
||||
<tag_class>UNIVERSAL</tag_class>
|
||||
<is_constructed>true</is_constructed>
|
||||
<value_dec>3</value_dec>
|
||||
</identification_block>
|
||||
<length_block>
|
||||
<is_indefinite_form>false</is_indefinite_form>
|
||||
<long_form_used>false</long_form_used>
|
||||
<length>12</length>
|
||||
</length_block>
|
||||
<value_block>
|
||||
<BIT_STRING>
|
||||
<identification_block>
|
||||
<tag_class>UNIVERSAL</tag_class>
|
||||
<is_constructed>false</is_constructed>
|
||||
<value_dec>3</value_dec>
|
||||
</identification_block>
|
||||
<length_block>
|
||||
<is_indefinite_form>false</is_indefinite_form>
|
||||
<long_form_used>false</long_form_used>
|
||||
<length>2</length>
|
||||
</length_block>
|
||||
<value_block>
|
||||
<unused_bits>0</unused_bits>
|
||||
<value_hex>0000 0001</value_hex>
|
||||
</value_block>
|
||||
</BIT_STRING>
|
||||
<BIT_STRING>
|
||||
<identification_block>
|
||||
<tag_class>UNIVERSAL</tag_class>
|
||||
<is_constructed>false</is_constructed>
|
||||
<value_dec>3</value_dec>
|
||||
</identification_block>
|
||||
<length_block>
|
||||
<is_indefinite_form>false</is_indefinite_form>
|
||||
<long_form_used>false</long_form_used>
|
||||
<length>2</length>
|
||||
</length_block>
|
||||
<value_block>
|
||||
<unused_bits>0</unused_bits>
|
||||
<value_hex>0000 0001</value_hex>
|
||||
</value_block>
|
||||
</BIT_STRING>
|
||||
<BIT_STRING>
|
||||
<identification_block>
|
||||
<tag_class>UNIVERSAL</tag_class>
|
||||
<is_constructed>false</is_constructed>
|
||||
<value_dec>3</value_dec>
|
||||
</identification_block>
|
||||
<length_block>
|
||||
<is_indefinite_form>false</is_indefinite_form>
|
||||
<long_form_used>false</long_form_used>
|
||||
<length>2</length>
|
||||
</length_block>
|
||||
<value_block>
|
||||
<unused_bits>4</unused_bits>
|
||||
<value_hex>0000 1111</value_hex>
|
||||
</value_block>
|
||||
</BIT_STRING>
|
||||
</value_block>
|
||||
</BIT_STRING>
|
||||
|
94
format/asn1/testdata/tc38.xml
vendored
94
format/asn1/testdata/tc38.xml
vendored
@ -1,47 +1,47 @@
|
||||
<?xml version="1.0"?>
|
||||
<BIT_STRING>
|
||||
<identification_block>
|
||||
<tag_class>UNIVERSAL</tag_class>
|
||||
<is_constructed>true</is_constructed>
|
||||
<value_dec>3</value_dec>
|
||||
</identification_block>
|
||||
<length_block>
|
||||
<is_indefinite_form>true</is_indefinite_form>
|
||||
<long_form_used>false</long_form_used>
|
||||
<length>0</length>
|
||||
</length_block>
|
||||
<value_block>
|
||||
<BIT_STRING>
|
||||
<identification_block>
|
||||
<tag_class>UNIVERSAL</tag_class>
|
||||
<is_constructed>false</is_constructed>
|
||||
<value_dec>3</value_dec>
|
||||
</identification_block>
|
||||
<length_block>
|
||||
<is_indefinite_form>false</is_indefinite_form>
|
||||
<long_form_used>false</long_form_used>
|
||||
<length>3</length>
|
||||
</length_block>
|
||||
<value_block>
|
||||
<unused_bits>0</unused_bits>
|
||||
<value_hex>0000 1010 0011 1011</value_hex>
|
||||
</value_block>
|
||||
</BIT_STRING>
|
||||
<BIT_STRING>
|
||||
<identification_block>
|
||||
<tag_class>UNIVERSAL</tag_class>
|
||||
<is_constructed>false</is_constructed>
|
||||
<value_dec>3</value_dec>
|
||||
</identification_block>
|
||||
<length_block>
|
||||
<is_indefinite_form>false</is_indefinite_form>
|
||||
<long_form_used>false</long_form_used>
|
||||
<length>5</length>
|
||||
</length_block>
|
||||
<value_block>
|
||||
<unused_bits>4</unused_bits>
|
||||
<value_hex>0101 1111 0010 1001 0001 1100 1101 0000</value_hex>
|
||||
</value_block>
|
||||
</BIT_STRING>
|
||||
</value_block>
|
||||
</BIT_STRING>
|
||||
<?xml version="1.0"?>
|
||||
<BIT_STRING>
|
||||
<identification_block>
|
||||
<tag_class>UNIVERSAL</tag_class>
|
||||
<is_constructed>true</is_constructed>
|
||||
<value_dec>3</value_dec>
|
||||
</identification_block>
|
||||
<length_block>
|
||||
<is_indefinite_form>true</is_indefinite_form>
|
||||
<long_form_used>false</long_form_used>
|
||||
<length>0</length>
|
||||
</length_block>
|
||||
<value_block>
|
||||
<BIT_STRING>
|
||||
<identification_block>
|
||||
<tag_class>UNIVERSAL</tag_class>
|
||||
<is_constructed>false</is_constructed>
|
||||
<value_dec>3</value_dec>
|
||||
</identification_block>
|
||||
<length_block>
|
||||
<is_indefinite_form>false</is_indefinite_form>
|
||||
<long_form_used>false</long_form_used>
|
||||
<length>3</length>
|
||||
</length_block>
|
||||
<value_block>
|
||||
<unused_bits>0</unused_bits>
|
||||
<value_hex>0000 1010 0011 1011</value_hex>
|
||||
</value_block>
|
||||
</BIT_STRING>
|
||||
<BIT_STRING>
|
||||
<identification_block>
|
||||
<tag_class>UNIVERSAL</tag_class>
|
||||
<is_constructed>false</is_constructed>
|
||||
<value_dec>3</value_dec>
|
||||
</identification_block>
|
||||
<length_block>
|
||||
<is_indefinite_form>false</is_indefinite_form>
|
||||
<long_form_used>false</long_form_used>
|
||||
<length>5</length>
|
||||
</length_block>
|
||||
<value_block>
|
||||
<unused_bits>4</unused_bits>
|
||||
<value_hex>0101 1111 0010 1001 0001 1100 1101 0000</value_hex>
|
||||
</value_block>
|
||||
</BIT_STRING>
|
||||
</value_block>
|
||||
</BIT_STRING>
|
||||
|
28
format/asn1/testdata/tc39.xml
vendored
28
format/asn1/testdata/tc39.xml
vendored
@ -1,14 +1,14 @@
|
||||
<?xml version="1.0"?>
|
||||
<BIT_STRING>
|
||||
<identification_block>
|
||||
<tag_class>UNIVERSAL</tag_class>
|
||||
<is_constructed>true</is_constructed>
|
||||
<value_dec>3</value_dec>
|
||||
</identification_block>
|
||||
<length_block>
|
||||
<is_indefinite_form>false</is_indefinite_form>
|
||||
<long_form_used>false</long_form_used>
|
||||
<length>0</length>
|
||||
</length_block>
|
||||
<value_block></value_block>
|
||||
</BIT_STRING>
|
||||
<?xml version="1.0"?>
|
||||
<BIT_STRING>
|
||||
<identification_block>
|
||||
<tag_class>UNIVERSAL</tag_class>
|
||||
<is_constructed>true</is_constructed>
|
||||
<value_dec>3</value_dec>
|
||||
</identification_block>
|
||||
<length_block>
|
||||
<is_indefinite_form>false</is_indefinite_form>
|
||||
<long_form_used>false</long_form_used>
|
||||
<length>0</length>
|
||||
</length_block>
|
||||
<value_block></value_block>
|
||||
</BIT_STRING>
|
||||
|
30
format/asn1/testdata/tc4.xml
vendored
30
format/asn1/testdata/tc4.xml
vendored
@ -1,15 +1,15 @@
|
||||
<?xml version="1.0"?>
|
||||
<ASN1_TYPE>
|
||||
<error>Length block 0xFF is reserved by standard</error>
|
||||
<identification_block>
|
||||
<warnings>
|
||||
<warning>Tag too long, represented as hex-coded</warning>
|
||||
</warnings>
|
||||
<tag_class>CONTEXT_SPECIFIC</tag_class>
|
||||
<is_constructed>false</is_constructed>
|
||||
<value_hex>7F 7F 7F 7F 7F 7F 7F 7F 7F</value_hex>
|
||||
</identification_block>
|
||||
<length_block>
|
||||
<error>Length block 0xFF is reserved by standard</error>
|
||||
</length_block>
|
||||
</ASN1_TYPE>
|
||||
<?xml version="1.0"?>
|
||||
<ASN1_TYPE>
|
||||
<error>Length block 0xFF is reserved by standard</error>
|
||||
<identification_block>
|
||||
<warnings>
|
||||
<warning>Tag too long, represented as hex-coded</warning>
|
||||
</warnings>
|
||||
<tag_class>CONTEXT_SPECIFIC</tag_class>
|
||||
<is_constructed>false</is_constructed>
|
||||
<value_hex>7F 7F 7F 7F 7F 7F 7F 7F 7F</value_hex>
|
||||
</identification_block>
|
||||
<length_block>
|
||||
<error>Length block 0xFF is reserved by standard</error>
|
||||
</length_block>
|
||||
</ASN1_TYPE>
|
||||
|
28
format/asn1/testdata/tc40.xml
vendored
28
format/asn1/testdata/tc40.xml
vendored
@ -1,14 +1,14 @@
|
||||
<?xml version="1.0"?>
|
||||
<BIT_STRING>
|
||||
<identification_block>
|
||||
<tag_class>UNIVERSAL</tag_class>
|
||||
<is_constructed>false</is_constructed>
|
||||
<value_dec>3</value_dec>
|
||||
</identification_block>
|
||||
<length_block>
|
||||
<is_indefinite_form>false</is_indefinite_form>
|
||||
<long_form_used>false</long_form_used>
|
||||
<length>0</length>
|
||||
</length_block>
|
||||
<value_block></value_block>
|
||||
</BIT_STRING>
|
||||
<?xml version="1.0"?>
|
||||
<BIT_STRING>
|
||||
<identification_block>
|
||||
<tag_class>UNIVERSAL</tag_class>
|
||||
<is_constructed>false</is_constructed>
|
||||
<value_dec>3</value_dec>
|
||||
</identification_block>
|
||||
<length_block>
|
||||
<is_indefinite_form>false</is_indefinite_form>
|
||||
<long_form_used>false</long_form_used>
|
||||
<length>0</length>
|
||||
</length_block>
|
||||
<value_block></value_block>
|
||||
</BIT_STRING>
|
||||
|
34
format/asn1/testdata/tc41.xml
vendored
34
format/asn1/testdata/tc41.xml
vendored
@ -1,17 +1,17 @@
|
||||
<?xml version="1.0"?>
|
||||
<OCTET_STRING>
|
||||
<error>OCTET STRING may consists of OCTET STRINGs only</error>
|
||||
<identification_block>
|
||||
<tag_class>UNIVERSAL</tag_class>
|
||||
<is_constructed>true</is_constructed>
|
||||
<value_dec>4</value_dec>
|
||||
</identification_block>
|
||||
<length_block>
|
||||
<is_indefinite_form>true</is_indefinite_form>
|
||||
<long_form_used>false</long_form_used>
|
||||
<length>0</length>
|
||||
</length_block>
|
||||
<value_block>
|
||||
<error>OCTET STRING may consists of OCTET STRINGs only</error>
|
||||
</value_block>
|
||||
</OCTET_STRING>
|
||||
<?xml version="1.0"?>
|
||||
<OCTET_STRING>
|
||||
<error>OCTET STRING may consists of OCTET STRINGs only</error>
|
||||
<identification_block>
|
||||
<tag_class>UNIVERSAL</tag_class>
|
||||
<is_constructed>true</is_constructed>
|
||||
<value_dec>4</value_dec>
|
||||
</identification_block>
|
||||
<length_block>
|
||||
<is_indefinite_form>true</is_indefinite_form>
|
||||
<long_form_used>false</long_form_used>
|
||||
<length>0</length>
|
||||
</length_block>
|
||||
<value_block>
|
||||
<error>OCTET STRING may consists of OCTET STRINGs only</error>
|
||||
</value_block>
|
||||
</OCTET_STRING>
|
||||
|
34
format/asn1/testdata/tc42.xml
vendored
34
format/asn1/testdata/tc42.xml
vendored
@ -1,17 +1,17 @@
|
||||
<?xml version="1.0"?>
|
||||
<OCTET_STRING>
|
||||
<error>End of input reached before message was fully decoded</error>
|
||||
<identification_block>
|
||||
<tag_class>UNIVERSAL</tag_class>
|
||||
<is_constructed>true</is_constructed>
|
||||
<value_dec>4</value_dec>
|
||||
</identification_block>
|
||||
<length_block>
|
||||
<is_indefinite_form>true</is_indefinite_form>
|
||||
<long_form_used>false</long_form_used>
|
||||
<length>0</length>
|
||||
</length_block>
|
||||
<value_block>
|
||||
<error>End of input reached before message was fully decoded</error>
|
||||
</value_block>
|
||||
</OCTET_STRING>
|
||||
<?xml version="1.0"?>
|
||||
<OCTET_STRING>
|
||||
<error>End of input reached before message was fully decoded</error>
|
||||
<identification_block>
|
||||
<tag_class>UNIVERSAL</tag_class>
|
||||
<is_constructed>true</is_constructed>
|
||||
<value_dec>4</value_dec>
|
||||
</identification_block>
|
||||
<length_block>
|
||||
<is_indefinite_form>true</is_indefinite_form>
|
||||
<long_form_used>false</long_form_used>
|
||||
<length>0</length>
|
||||
</length_block>
|
||||
<value_block>
|
||||
<error>End of input reached before message was fully decoded</error>
|
||||
</value_block>
|
||||
</OCTET_STRING>
|
||||
|
34
format/asn1/testdata/tc43.xml
vendored
34
format/asn1/testdata/tc43.xml
vendored
@ -1,17 +1,17 @@
|
||||
<?xml version="1.0"?>
|
||||
<OCTET_STRING>
|
||||
<error>End of input reached before message was fully decoded</error>
|
||||
<identification_block>
|
||||
<tag_class>UNIVERSAL</tag_class>
|
||||
<is_constructed>true</is_constructed>
|
||||
<value_dec>4</value_dec>
|
||||
</identification_block>
|
||||
<length_block>
|
||||
<is_indefinite_form>false</is_indefinite_form>
|
||||
<long_form_used>false</long_form_used>
|
||||
<length>3</length>
|
||||
</length_block>
|
||||
<value_block>
|
||||
<error>End of input reached before message was fully decoded</error>
|
||||
</value_block>
|
||||
</OCTET_STRING>
|
||||
<?xml version="1.0"?>
|
||||
<OCTET_STRING>
|
||||
<error>End of input reached before message was fully decoded</error>
|
||||
<identification_block>
|
||||
<tag_class>UNIVERSAL</tag_class>
|
||||
<is_constructed>true</is_constructed>
|
||||
<value_dec>4</value_dec>
|
||||
</identification_block>
|
||||
<length_block>
|
||||
<is_indefinite_form>false</is_indefinite_form>
|
||||
<long_form_used>false</long_form_used>
|
||||
<length>3</length>
|
||||
</length_block>
|
||||
<value_block>
|
||||
<error>End of input reached before message was fully decoded</error>
|
||||
</value_block>
|
||||
</OCTET_STRING>
|
||||
|
28
format/asn1/testdata/tc44.xml
vendored
28
format/asn1/testdata/tc44.xml
vendored
@ -1,14 +1,14 @@
|
||||
<?xml version="1.0"?>
|
||||
<OCTET_STRING>
|
||||
<identification_block>
|
||||
<tag_class>UNIVERSAL</tag_class>
|
||||
<is_constructed>false</is_constructed>
|
||||
<value_dec>4</value_dec>
|
||||
</identification_block>
|
||||
<length_block>
|
||||
<is_indefinite_form>false</is_indefinite_form>
|
||||
<long_form_used>false</long_form_used>
|
||||
<length>0</length>
|
||||
</length_block>
|
||||
<value_block></value_block>
|
||||
</OCTET_STRING>
|
||||
<?xml version="1.0"?>
|
||||
<OCTET_STRING>
|
||||
<identification_block>
|
||||
<tag_class>UNIVERSAL</tag_class>
|
||||
<is_constructed>false</is_constructed>
|
||||
<value_dec>4</value_dec>
|
||||
</identification_block>
|
||||
<length_block>
|
||||
<is_indefinite_form>false</is_indefinite_form>
|
||||
<long_form_used>false</long_form_used>
|
||||
<length>0</length>
|
||||
</length_block>
|
||||
<value_block></value_block>
|
||||
</OCTET_STRING>
|
||||
|
28
format/asn1/testdata/tc45.xml
vendored
28
format/asn1/testdata/tc45.xml
vendored
@ -1,14 +1,14 @@
|
||||
<?xml version="1.0"?>
|
||||
<OCTET_STRING>
|
||||
<identification_block>
|
||||
<tag_class>UNIVERSAL</tag_class>
|
||||
<is_constructed>true</is_constructed>
|
||||
<value_dec>4</value_dec>
|
||||
</identification_block>
|
||||
<length_block>
|
||||
<is_indefinite_form>false</is_indefinite_form>
|
||||
<long_form_used>false</long_form_used>
|
||||
<length>0</length>
|
||||
</length_block>
|
||||
<value_block></value_block>
|
||||
</OCTET_STRING>
|
||||
<?xml version="1.0"?>
|
||||
<OCTET_STRING>
|
||||
<identification_block>
|
||||
<tag_class>UNIVERSAL</tag_class>
|
||||
<is_constructed>true</is_constructed>
|
||||
<value_dec>4</value_dec>
|
||||
</identification_block>
|
||||
<length_block>
|
||||
<is_indefinite_form>false</is_indefinite_form>
|
||||
<long_form_used>false</long_form_used>
|
||||
<length>0</length>
|
||||
</length_block>
|
||||
<value_block></value_block>
|
||||
</OCTET_STRING>
|
||||
|
28
format/asn1/testdata/tc46.xml
vendored
28
format/asn1/testdata/tc46.xml
vendored
@ -1,14 +1,14 @@
|
||||
<?xml version="1.0"?>
|
||||
<ASN1_TYPE>
|
||||
<error>Indefinite length form used for primitive encoding form</error>
|
||||
<identification_block>
|
||||
<tag_class>UNIVERSAL</tag_class>
|
||||
<is_constructed>false</is_constructed>
|
||||
<value_dec>3</value_dec>
|
||||
</identification_block>
|
||||
<length_block>
|
||||
<is_indefinite_form>true</is_indefinite_form>
|
||||
<long_form_used>false</long_form_used>
|
||||
<length>0</length>
|
||||
</length_block>
|
||||
</ASN1_TYPE>
|
||||
<?xml version="1.0"?>
|
||||
<ASN1_TYPE>
|
||||
<error>Indefinite length form used for primitive encoding form</error>
|
||||
<identification_block>
|
||||
<tag_class>UNIVERSAL</tag_class>
|
||||
<is_constructed>false</is_constructed>
|
||||
<value_dec>3</value_dec>
|
||||
</identification_block>
|
||||
<length_block>
|
||||
<is_indefinite_form>true</is_indefinite_form>
|
||||
<long_form_used>false</long_form_used>
|
||||
<length>0</length>
|
||||
</length_block>
|
||||
</ASN1_TYPE>
|
||||
|
34
format/asn1/testdata/tc47.xml
vendored
34
format/asn1/testdata/tc47.xml
vendored
@ -1,17 +1,17 @@
|
||||
<?xml version="1.0"?>
|
||||
<BIT_STRING>
|
||||
<error>EOC is unexpected, BIT STRING may consists of BIT STRINGs only</error>
|
||||
<identification_block>
|
||||
<tag_class>UNIVERSAL</tag_class>
|
||||
<is_constructed>true</is_constructed>
|
||||
<value_dec>3</value_dec>
|
||||
</identification_block>
|
||||
<length_block>
|
||||
<is_indefinite_form>false</is_indefinite_form>
|
||||
<long_form_used>false</long_form_used>
|
||||
<length>14</length>
|
||||
</length_block>
|
||||
<value_block>
|
||||
<error>EOC is unexpected, BIT STRING may consists of BIT STRINGs only</error>
|
||||
</value_block>
|
||||
</BIT_STRING>
|
||||
<?xml version="1.0"?>
|
||||
<BIT_STRING>
|
||||
<error>EOC is unexpected, BIT STRING may consists of BIT STRINGs only</error>
|
||||
<identification_block>
|
||||
<tag_class>UNIVERSAL</tag_class>
|
||||
<is_constructed>true</is_constructed>
|
||||
<value_dec>3</value_dec>
|
||||
</identification_block>
|
||||
<length_block>
|
||||
<is_indefinite_form>false</is_indefinite_form>
|
||||
<long_form_used>false</long_form_used>
|
||||
<length>14</length>
|
||||
</length_block>
|
||||
<value_block>
|
||||
<error>EOC is unexpected, BIT STRING may consists of BIT STRINGs only</error>
|
||||
</value_block>
|
||||
</BIT_STRING>
|
||||
|
34
format/asn1/testdata/tc48.xml
vendored
34
format/asn1/testdata/tc48.xml
vendored
@ -1,17 +1,17 @@
|
||||
<?xml version="1.0"?>
|
||||
<BIT_STRING>
|
||||
<error>Unused bits for BITSTRING must be in range 0-7</error>
|
||||
<identification_block>
|
||||
<tag_class>UNIVERSAL</tag_class>
|
||||
<is_constructed>true</is_constructed>
|
||||
<value_dec>3</value_dec>
|
||||
</identification_block>
|
||||
<length_block>
|
||||
<is_indefinite_form>true</is_indefinite_form>
|
||||
<long_form_used>false</long_form_used>
|
||||
<length>0</length>
|
||||
</length_block>
|
||||
<value_block>
|
||||
<error>Unused bits for BITSTRING must be in range 0-7</error>
|
||||
</value_block>
|
||||
</BIT_STRING>
|
||||
<?xml version="1.0"?>
|
||||
<BIT_STRING>
|
||||
<error>Unused bits for BITSTRING must be in range 0-7</error>
|
||||
<identification_block>
|
||||
<tag_class>UNIVERSAL</tag_class>
|
||||
<is_constructed>true</is_constructed>
|
||||
<value_dec>3</value_dec>
|
||||
</identification_block>
|
||||
<length_block>
|
||||
<is_indefinite_form>true</is_indefinite_form>
|
||||
<long_form_used>false</long_form_used>
|
||||
<length>0</length>
|
||||
</length_block>
|
||||
<value_block>
|
||||
<error>Unused bits for BITSTRING must be in range 0-7</error>
|
||||
</value_block>
|
||||
</BIT_STRING>
|
||||
|
44
format/asn1/testdata/tc5.xml
vendored
44
format/asn1/testdata/tc5.xml
vendored
@ -1,22 +1,22 @@
|
||||
<?xml version="1.0"?>
|
||||
<ASN1_TYPE>
|
||||
<identification_block>
|
||||
<warnings>
|
||||
<warning>Tag too long, represented as hex-coded</warning>
|
||||
</warnings>
|
||||
<tag_class>CONTEXT_SPECIFIC</tag_class>
|
||||
<is_constructed>false</is_constructed>
|
||||
<value_hex>7F 7F 7F 7F 7F 7F 7F 7F 7F</value_hex>
|
||||
</identification_block>
|
||||
<length_block>
|
||||
<warnings>
|
||||
<warning>Unneccesary usage of long length form</warning>
|
||||
</warnings>
|
||||
<is_indefinite_form>false</is_indefinite_form>
|
||||
<long_form_used>true</long_form_used>
|
||||
<length>1</length>
|
||||
</length_block>
|
||||
<value_block>
|
||||
<value_hex>40</value_hex>
|
||||
</value_block>
|
||||
</ASN1_TYPE>
|
||||
<?xml version="1.0"?>
|
||||
<ASN1_TYPE>
|
||||
<identification_block>
|
||||
<warnings>
|
||||
<warning>Tag too long, represented as hex-coded</warning>
|
||||
</warnings>
|
||||
<tag_class>CONTEXT_SPECIFIC</tag_class>
|
||||
<is_constructed>false</is_constructed>
|
||||
<value_hex>7F 7F 7F 7F 7F 7F 7F 7F 7F</value_hex>
|
||||
</identification_block>
|
||||
<length_block>
|
||||
<warnings>
|
||||
<warning>Unneccesary usage of long length form</warning>
|
||||
</warnings>
|
||||
<is_indefinite_form>false</is_indefinite_form>
|
||||
<long_form_used>true</long_form_used>
|
||||
<length>1</length>
|
||||
</length_block>
|
||||
<value_block>
|
||||
<value_hex>40</value_hex>
|
||||
</value_block>
|
||||
</ASN1_TYPE>
|
||||
|
56
format/asn1/testdata/tc6.xml
vendored
56
format/asn1/testdata/tc6.xml
vendored
@ -1,28 +1,28 @@
|
||||
<?xml version="1.0"?>
|
||||
<REAL>
|
||||
<identification_block>
|
||||
<tag_class>UNIVERSAL</tag_class>
|
||||
<is_constructed>false</is_constructed>
|
||||
<value_dec>9</value_dec>
|
||||
</identification_block>
|
||||
<length_block>
|
||||
<is_indefinite_form>false</is_indefinite_form>
|
||||
<long_form_used>false</long_form_used>
|
||||
<length>7</length>
|
||||
</length_block>
|
||||
<value_block>
|
||||
<warnings>
|
||||
<warning>REAL values for +0 and -0 can not be encoded in decimal format</warning>
|
||||
</warnings>
|
||||
<information_block>
|
||||
<is_special_value>false</is_special_value>
|
||||
<base>10</base>
|
||||
<NR_form>3</NR_form>
|
||||
</information_block>
|
||||
<mantissa_block>
|
||||
<is_hex_only>true</is_hex_only>
|
||||
<value_hex>2B 2E 45 2D 35</value_hex>
|
||||
</mantissa_block>
|
||||
<value_hex>+.E-5</value_hex>
|
||||
</value_block>
|
||||
</REAL>
|
||||
<?xml version="1.0"?>
|
||||
<REAL>
|
||||
<identification_block>
|
||||
<tag_class>UNIVERSAL</tag_class>
|
||||
<is_constructed>false</is_constructed>
|
||||
<value_dec>9</value_dec>
|
||||
</identification_block>
|
||||
<length_block>
|
||||
<is_indefinite_form>false</is_indefinite_form>
|
||||
<long_form_used>false</long_form_used>
|
||||
<length>7</length>
|
||||
</length_block>
|
||||
<value_block>
|
||||
<warnings>
|
||||
<warning>REAL values for +0 and -0 can not be encoded in decimal format</warning>
|
||||
</warnings>
|
||||
<information_block>
|
||||
<is_special_value>false</is_special_value>
|
||||
<base>10</base>
|
||||
<NR_form>3</NR_form>
|
||||
</information_block>
|
||||
<mantissa_block>
|
||||
<is_hex_only>true</is_hex_only>
|
||||
<value_hex>2B 2E 45 2D 35</value_hex>
|
||||
</mantissa_block>
|
||||
<value_hex>+.E-5</value_hex>
|
||||
</value_block>
|
||||
</REAL>
|
||||
|
56
format/asn1/testdata/tc7.xml
vendored
56
format/asn1/testdata/tc7.xml
vendored
@ -1,28 +1,28 @@
|
||||
<?xml version="1.0"?>
|
||||
<REAL>
|
||||
<identification_block>
|
||||
<tag_class>UNIVERSAL</tag_class>
|
||||
<is_constructed>false</is_constructed>
|
||||
<value_dec>9</value_dec>
|
||||
</identification_block>
|
||||
<length_block>
|
||||
<is_indefinite_form>false</is_indefinite_form>
|
||||
<long_form_used>false</long_form_used>
|
||||
<length>7</length>
|
||||
</length_block>
|
||||
<value_block>
|
||||
<warnings>
|
||||
<warning>REAL values for +0 and -0 can not be encoded in decimal format</warning>
|
||||
</warnings>
|
||||
<information_block>
|
||||
<is_special_value>false</is_special_value>
|
||||
<base>10</base>
|
||||
<NR_form>3</NR_form>
|
||||
</information_block>
|
||||
<mantissa_block>
|
||||
<is_hex_only>true</is_hex_only>
|
||||
<value_hex>2D 2E 45 2D 35</value_hex>
|
||||
</mantissa_block>
|
||||
<value_hex>-.E-5</value_hex>
|
||||
</value_block>
|
||||
</REAL>
|
||||
<?xml version="1.0"?>
|
||||
<REAL>
|
||||
<identification_block>
|
||||
<tag_class>UNIVERSAL</tag_class>
|
||||
<is_constructed>false</is_constructed>
|
||||
<value_dec>9</value_dec>
|
||||
</identification_block>
|
||||
<length_block>
|
||||
<is_indefinite_form>false</is_indefinite_form>
|
||||
<long_form_used>false</long_form_used>
|
||||
<length>7</length>
|
||||
</length_block>
|
||||
<value_block>
|
||||
<warnings>
|
||||
<warning>REAL values for +0 and -0 can not be encoded in decimal format</warning>
|
||||
</warnings>
|
||||
<information_block>
|
||||
<is_special_value>false</is_special_value>
|
||||
<base>10</base>
|
||||
<NR_form>3</NR_form>
|
||||
</information_block>
|
||||
<mantissa_block>
|
||||
<is_hex_only>true</is_hex_only>
|
||||
<value_hex>2D 2E 45 2D 35</value_hex>
|
||||
</mantissa_block>
|
||||
<value_hex>-.E-5</value_hex>
|
||||
</value_block>
|
||||
</REAL>
|
||||
|
44
format/asn1/testdata/tc8.xml
vendored
44
format/asn1/testdata/tc8.xml
vendored
@ -1,22 +1,22 @@
|
||||
<?xml version="1.0"?>
|
||||
<REAL>
|
||||
<identification_block>
|
||||
<tag_class>UNIVERSAL</tag_class>
|
||||
<is_constructed>false</is_constructed>
|
||||
<value_dec>9</value_dec>
|
||||
</identification_block>
|
||||
<length_block>
|
||||
<is_indefinite_form>false</is_indefinite_form>
|
||||
<long_form_used>false</long_form_used>
|
||||
<length>3</length>
|
||||
</length_block>
|
||||
<value_block>
|
||||
<information_block>
|
||||
<warnings>
|
||||
<warning>Special REAL value should be encoded by 1 octet only</warning>
|
||||
</warnings>
|
||||
<is_special_value>true</is_special_value>
|
||||
<special_value>MINUS-INFINITY</special_value>
|
||||
</information_block>
|
||||
</value_block>
|
||||
</REAL>
|
||||
<?xml version="1.0"?>
|
||||
<REAL>
|
||||
<identification_block>
|
||||
<tag_class>UNIVERSAL</tag_class>
|
||||
<is_constructed>false</is_constructed>
|
||||
<value_dec>9</value_dec>
|
||||
</identification_block>
|
||||
<length_block>
|
||||
<is_indefinite_form>false</is_indefinite_form>
|
||||
<long_form_used>false</long_form_used>
|
||||
<length>3</length>
|
||||
</length_block>
|
||||
<value_block>
|
||||
<information_block>
|
||||
<warnings>
|
||||
<warning>Special REAL value should be encoded by 1 octet only</warning>
|
||||
</warnings>
|
||||
<is_special_value>true</is_special_value>
|
||||
<special_value>MINUS-INFINITY</special_value>
|
||||
</information_block>
|
||||
</value_block>
|
||||
</REAL>
|
||||
|
40
format/asn1/testdata/tc9.xml
vendored
40
format/asn1/testdata/tc9.xml
vendored
@ -1,20 +1,20 @@
|
||||
<?xml version="1.0"?>
|
||||
<REAL>
|
||||
<error>Encoded reserved value with BASE (11)</error>
|
||||
<identification_block>
|
||||
<tag_class>UNIVERSAL</tag_class>
|
||||
<is_constructed>false</is_constructed>
|
||||
<value_dec>9</value_dec>
|
||||
</identification_block>
|
||||
<length_block>
|
||||
<is_indefinite_form>false</is_indefinite_form>
|
||||
<long_form_used>false</long_form_used>
|
||||
<length>3</length>
|
||||
</length_block>
|
||||
<value_block>
|
||||
<error>Encoded reserved value with BASE (11)</error>
|
||||
<information_block>
|
||||
<error>Encoded reserved value with BASE (11)</error>
|
||||
</information_block>
|
||||
</value_block>
|
||||
</REAL>
|
||||
<?xml version="1.0"?>
|
||||
<REAL>
|
||||
<error>Encoded reserved value with BASE (11)</error>
|
||||
<identification_block>
|
||||
<tag_class>UNIVERSAL</tag_class>
|
||||
<is_constructed>false</is_constructed>
|
||||
<value_dec>9</value_dec>
|
||||
</identification_block>
|
||||
<length_block>
|
||||
<is_indefinite_form>false</is_indefinite_form>
|
||||
<long_form_used>false</long_form_used>
|
||||
<length>3</length>
|
||||
</length_block>
|
||||
<value_block>
|
||||
<error>Encoded reserved value with BASE (11)</error>
|
||||
<information_block>
|
||||
<error>Encoded reserved value with BASE (11)</error>
|
||||
</information_block>
|
||||
</value_block>
|
||||
</REAL>
|
||||
|
Loading…
Reference in New Issue
Block a user