Enter lengths as 16-bit values.

This is sss-specific, so probably should be out of generic header.
Add sketches for specced packet formats.