Mailing List Archive

gcry_sexp_t input forms
Are these explained in detail?
the Reference Manual makes passing reference to them
but no in-depth analysis.

Especially, gcry_sexp_build(), and the string input
formats

TIA




______________________________________________________________________
Post your free ad now! http://personals.yahoo.ca
Re: gcry_sexp_t input forms [ In reply to ]
nerfherder-43 <nerfherder_43@yahoo.ca> writes:

> Are these explained in detail?

What exactly is missing for you, when reading the description of
gcry_sexp_build() that is contained in the (latest) info manual?

Thanks,
moritz
--
((gpg-key-id . "6F984199")
(email . "moritz@duesseldorf.ccc.de")
(webpage . "http://duesseldorf.ccc.de/~moritz/"))
Re: gcry_sexp_t input forms [ In reply to ]
--- Moritz Schulte <mo@g10code.com> wrote: >
nerfherder-43 <nerfherder_43@yahoo.ca> writes:
>
> > Are these explained in detail?
>
> What exactly is missing for you, when reading the
> description of
> gcry_sexp_build() that is contained in the (latest)
> info manual?



specifically with an example entry of

(genkey(rsa(nbits 4:1024)))

what does the '4:' signify and does this value change
if you were to use ElGamal or DSA?
is it security level or 4 primes 1024 bits in length
or what?

TIA

______________________________________________________________________
Post your free ad now! http://personals.yahoo.ca
Re: gcry_sexp_t input forms [ In reply to ]
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)))



Salam-Shalom,

Werner

--
Werner Koch <wk@gnupg.org>
The GnuPG Experts http://g10code.com
Free Software Foundation Europe http://fsfeurope.org