Re: (dictionary or not) Re: [dtn-security] 00 version of the Bundle Security Protocol Spec.

Michael Demmer <demmer@cs.berkeley.edu> Wed, 25 May 2005 16:39 UTC

Received: from pisco (pisco.CS.Berkeley.EDU [128.32.37.175]) by webbie.berkeley.intel-research.net (8.11.6/8.11.6) with ESMTP id j4PGdjV31203 for <dtn-security@mailman.dtnrg.org>; Wed, 25 May 2005 09:39:45 -0700
Received: from demmer by pisco with local (Exim 4.50) id 1Dayv3-000494-60; Wed, 25 May 2005 09:39:45 -0700
Date: Wed, 25 May 2005 09:39:45 -0700
From: Michael Demmer <demmer@cs.berkeley.edu>
To: dtn-security@mailman.dtnrg.org
Cc: "Susan F. Symington" <susan@mitre.org>, "'Howard Weiss'" <howard.weiss@sparta.com>
Subject: Re: (dictionary or not) Re: [dtn-security] 00 version of the Bundle Security Protocol Spec.
Message-ID: <20050525163945.GC14911@pisco.cs.berkeley.edu>
References: <200505241854.j4OIsx724035@smtp-bedford-dr.mitre.org> <42944BEF.7090007@cs.tcd.ie> <20050525152359.GB7633@pisco.cs.berkeley.edu> <42949AA1.5080108@cs.tcd.ie> <20050525153739.GA14911@pisco.cs.berkeley.edu> <42949E57.9000309@cs.tcd.ie>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <42949E57.9000309@cs.tcd.ie>
User-Agent: Mutt/1.4.2i
Sender: dtn-security-admin@mailman.dtnrg.org
Errors-To: dtn-security-admin@mailman.dtnrg.org
X-BeenThere: dtn-security@mailman.dtnrg.org
X-Mailman-Version: 2.0.13
Precedence: bulk
Reply-To: dtn-security@mailman.dtnrg.org
List-Unsubscribe: <http://mailman.dtnrg.org/mailman/listinfo/dtn-security>, <mailto:dtn-security-request@mailman.dtnrg.org?subject=unsubscribe>
List-Id: DTN Security Discussion <dtn-security.mailman.dtnrg.org>
List-Post: <mailto:dtn-security@mailman.dtnrg.org>
List-Help: <mailto:dtn-security-request@mailman.dtnrg.org?subject=help>
List-Subscribe: <http://mailman.dtnrg.org/mailman/listinfo/dtn-security>, <mailto:dtn-security-request@mailman.dtnrg.org?subject=subscribe>
List-Archive: <http://mailman.dtnrg.org/pipermail/dtn-security/>

> Aha!  Ok, it can work that way so long as there're no I18N
> problems there (there aren't, right?).

Well -- we need to decide on what to do re I8N. My inclination is to
have the protocol just be in ASCII, and put the burden on the
application interface to go to/from some multibyte encoding when
interfacing with the application.

> Personally, I think I'd rather that dictionary entries contain
> a length field (whatever encoding) since I've found lists of
> null-terminated strings are a great source for implementation
> errors.

Yeah -- I just feel like it's not worth the bytes. My other thought is
that we can infer the string lengths based on the various offsets
scattered throughout the bundle, in other words, if all the offsets
(i.e. src, dest, custodian, etc) were sorted, we could then infer the
various lengths based on the differences. But this is probably harder
to read (though more efficient) than just scanning for the null.

-m