PER Encoding of BIT STRING greater than 64k
Go to github.com/vlm/asn1c for the latest version.
Brought to you by:
vlm
I've generated ASN.1 and C code to encode using it to test segmentation for sizes greater than 64k. The XER looks almost right (there is a spurious line break) but the PER looks nothing like what I would have expected (I'm checking this on the asn1.org mailing list).
ASN.1 Definitions
Generated C Encoding Program
Logged In: YES
user_id=1912759
Originator: YES
You'll need this as well.
File Added: generated.c
Logged In: YES
user_id=1912759
Originator: YES
Sorry I couldn't upload the complete file - it was too big for sourceforge but hopefully you can fill in missing lines.
Logged In: YES
user_id=1912759
Originator: YES
Here's the XER. Note that an extra octet is output on the last line. I'd have expected a new line.
File Added: generated.xml
Generated XER
Logged In: YES
user_id=1912759
Originator: YES
And here's the PER.
File Added: generated.per
Logged In: YES
user_id=1912759
Originator: YES
See http://lists.asn1.org/pipermail/asn1/2007-November/001081.html for the correct PER.
Logged In: YES
user_id=1312539
Originator: NO
This Tracker item was closed automatically by the system. It was
previously set to a Pending status, and the original submitter
did not respond within 14 days (the time period specified by
the administrator of this Tracker).
Logged In: YES
user_id=1912759
Originator: YES
Not really sure why this was closed.