[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [GNUnet-developers] host key storage format

From: Christian Grothoff
Subject: Re: [GNUnet-developers] host key storage format
Date: Tue, 21 Jan 2003 14:38:14 -0500
User-agent: KMail/1.4.3

Hash: SHA1

On Tuesday 21 January 2003 07:54 am, Glenn McGrath wrote:
> I can see from comments in hostkey.c that in moving to support openssl
> and libgcrypt, that there is a problem brewing over the format that the
> host key is stored in, and the encoding used on it.
> If the format is going to have to be common to both libraries, would it
> make more sense to use an existing standard, like the format ssh or gpg
> uses ?

The goal for this comment was to be eventually able to have everything be 100% 
compatible between 0.5.0 and 0.5.1 (or whenever we switch from OpenSSL to 
libgcrypt). This way, nobody needs to get a new hostkey (so far, all GNUnet 
releases have used the existing hostkey format and thus trust was accumulated 
from 0.0.1 to 0.5.0; it would be great if we can support that hostkey format 
in the future, too).

About switching to standards, have a look at this:

address@hidden grothoff]$ ls -l .ssh/identity
- -rw-------    1 grothoff grothoff      992 Jun  8  2002 .ssh/identity
address@hidden grothoff]$ ls -l .gnunet/.hostkey
- -rw-------    1 grothoff grothoff     1170 Nov 12 19:19 .gnunet/.hostkey

So by the looks of it, the GNUnet format stores *more* information about the 
key than the SSH format does (both are mostly binary formats and the GNUnet 
format has actually fewer bytes used for headers). The reason is, that GNUnet 
stores some extra values from the private RSA key that can then be used by 
OpenSSL to speed up public key operations. By the looks of it, the SSH key 
does not contain some of these.

Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see


reply via email to

[Prev in Thread] Current Thread [Next in Thread]