Ethereal-dev: Re: [ethereal-dev] Bits 'n' pieces

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Guy Harris <gharris@xxxxxxxxxxxx>
Date: Sun, 16 Jul 2000 20:22:40 -0700
On Fri, Jul 14, 2000 at 09:04:37AM -0500, Gilbert Ramirez wrote:
> Does anyone know if any other protocol needs this? What about the
> ASN.1-derived protocols?

They're more complicated - an OCTET STRING, encoded with the ASN.1 Basic
Encoding Rules, consists of

	an type code octet (which would be 0x04);

	one or more length octets - if the length is <= 127 octets, it's
	one octet with that value, otherwise it's 0x80 ORed with the
	length of the length, in octets, followed by that many octets
	worth of length value;

	zero or more octets of data.