aMule Forum

English => aMule Help => Topic started by: msoltyspl on September 25, 2008, 09:00:18 AM

Title: Clrification needed regardig how key/hashes are stored
Post by: msoltyspl on September 25, 2008, 09:00:18 AM
As I often switch between amule and mldonkey these days (for different reasons), I have few questions regarding key and client hashes format. As I can see - data from cryptkey.dat can be easily trasneferred between mld and amule, but:

1) http://www.amule.org/wiki/index.php/PreferencesKad.dat_file

According to that page, the key is stored little-endian, but the explanation at the end suggests it's big endian after all (otherwise, looking at the example, it would be:  "ClientID: BF0E103E62..." (or to be precise, 1-byte words, most significant word first - see gmp link below).

2) http://www.amule.org/wiki/index.php/Preferences.dat

This is even more wicked, as the explanation suggest that the whole file is (following mpz_import (http://gmplib.org/manual/Integer-Import-and-Export.html#Integer-Import-and-Export) notation from GMP) most significant word first, little endian inside words, and words 2-bytes sized.


Well, just want to be sure, before I transfer.
Title: Re: Clrification needed regardig how key/hashes are stored
Post by: GonoszTopi on September 25, 2008, 12:01:55 PM
I updated the above wiki pages with up-to-date information and corrected them.
Title: Re: Clrification needed regardig how key/hashes are stored
Post by: msoltyspl on September 25, 2008, 12:50:42 PM
Great, thanks :)

One more question - does they data stored in cryptkey.dat use both client hashes while it's being computed ? Or is it independent from those two (or perhaps one of them) ?
Title: Re: Clrification needed regardig how key/hashes are stored
Post by: GonoszTopi on September 25, 2008, 04:13:43 PM
cryptkey.dat stores only the private key aMule uses for Secure User Identification (http://www.amule.org/wiki/index.php/Secure_User_Identification).
Title: Re: Clrification needed regardig how key/hashes are stored
Post by: msoltyspl on September 25, 2008, 11:37:07 PM
All right. Thanks again for help  8)