OER encoding: encoding of empty 'SEQUENCE OF' data type
Created by: viktorTarasov
Empty 'SEQUENCE OF' is currently encoded as '00'O octet string. Imho it has to be encoded as '0100'O octet string.
From ISO/IEC 8825-7:2015 ch. 17.2: The quantity field shall be a non-negative integer value indicating the number of occurrences. This number shall be encoded as a length determinant followed by a variable-size unsigned number.
Test data type:
SequenceOfOctetString ::= SEQUENCE OF OCTET STRING (SIZE (2))
Result from log:
enc_OER_SequenceOfOctetString(): Encoding @TempA.SequenceOfOctetString: { } enc_OER_SequenceOfOctetString(): Stream after encoding: '00'O dec_OER_SequenceOfOctetString(): Stream before decoding: '0100'O dec_OER_SequenceOfOctetString(): Decoded @TempA.SequenceOfOctetString: { }