Concerning the MHEG-5 ASN.1 syntax, if you can satisfy the following
points with SNACC, SNACC does produce DER bits:
1. Definite length encoding
2. Primitive octetstring encoding
3. TRUE to be 0xFF
4. Sequence component with default value not to be encoded
1 is quite easy unless you define USE_INDEF_LEN at the time of
compilation. 3 is also, since you can just put 0xFF for every Boolean
value if it's True.
4 is rather easy, too. What you need is just to check every component
if it is an optional and it has the default value. In that case, you
just omit the component and replace it with a NULL pointer in order to
produce DER compliant encoded data.
What I'm not sure is point 2. According to the doc, it seems SNACC
does primitive octetstring encoding. However, it's not so explicit.
Actually, I assume the point 2 and have made the encoder. But not
check it completely.
That's all I can give it to you, Guido.
Regards,
P.S. The decoder is no problem since BER decoder can decode DER.
** Wataru KAMEYAMA, Graphics Communication Laboratories, JAPAN
** TEL: +81 3 5351 0181
** FAX: +81 3 5351 0185
** wak@gctech.co.jp ($B55;3!!>D!w#G#C#L(B in KANJI)