[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
zero length binary strings
-----BEGIN PGP SIGNED MESSAGE-----
It appears that there is no way to encode a zero-length binary
string.
Is that correct? This BNF says:
<byte-string>:: <bytes> | <display-type> <bytes> ;
<bytes>:: <decimal> ":" {binary byte string of that length} ;
<decimal>:: <nzddigit> <ddigit>* ;
<nzddigit>:: "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" ;
<ddigit>:: "0" | <nzddigit> ;
<display-type>:: "[" <bytes> "]" ;
So, the minimum length is '1'.
I ask for completeness, not because I want to encode a zero-length
string.
:!mcr!: | Network and security consulting/contract programming
Michael Richardson | I do IPsec policy code for SSH <http://www.ssh.fi/>
Personal: <A HREF="http://www.sandelman.ottawa.on.ca/People/Michael_Richardson/Bio.html">mcr@sandelman.ottawa.on.ca</A>. PGP key available.
Corporate: <A HREF="http://www.sandelman.ottawa.on.ca/SSW/">sales@sandelman.ottawa.on.ca</A>.
-----BEGIN PGP SIGNATURE-----
Version: 2.6.3ia
Charset: latin1
Comment: Processed by Mailcrypt 3.4, an Emacs/PGP interface
iQB1AwUBNE5BY6ZpLyXYhL+BAQGOIwL5Acs7YBfj4JZVMSby24HwDRanJ0gnTEaG
JQracLdJsaHPpChK1aayF9je5uJT5q6MXHOBmYnWmV+f3u2h8fxe7zyy/5r34VwO
belNXsvkrAfdnjl6HwaQX0MayKY/9fuT
=RWNz
-----END PGP SIGNATURE-----