|
Posted by Dazza T on April 1, 2006, 7:11 am
If you were Registered and logged in, you could reply and use other advanced thread options
Can someone please confirm for me the correct way to encode an empty
IMPLICIT OPTIONAL tagged value.
As far as I know it should *always* be omitted under both BER and DER
encodings, but I can't lay my hands on something official that confirms it
(and so settle an argument).
In this example, `ThisOne' is empty:
Foo ::= SEQUENCE {
version INTEGER,
extra[0] IMPLICIT ThisOne OPTIONAL,
}
ThisOne ::= SET OF Bar
So should the encoding be
(A) 30 03 02 01 01
or
(B) 30 05 02 01 01 A0 00
Is (B) ever permissible?
|