gcry_sexp_t input forms
Tue, 19 Aug 2003 07:34:59 +0200
On Mon, 18 Aug 2003 15:08:40 -0400 (EDT), nerfherder-43 said:
> (genkey(rsa(nbits 4:1024)))
> what does the '4:' signify and does this value change
This is required by S-expressions syntax. The length of some data is
indicated by its length, expressed in decimal, followed by a colon and
the actual data. For data not including certain control characters
and not starting with a digit, the length field can be left out.
Obviously this can't be done if the data itself starts with a digit as
it won't be possible to distinguish it from a length specification.
The above expression can also be written as
(6:genkey (3:rsa(5:nbits 4:1024)))
Werner Koch <email@example.com>
The GnuPG Experts http://g10code.com
Free Software Foundation Europe http://fsfeurope.org