aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: Clrification needed regardig how key/hashes are stored  (Read 1936 times)

msoltyspl

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 4
  • arch/crux/obsd :)
Clrification needed regardig how key/hashes are stored
« 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 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.
Logged

GonoszTopi

  • The current man in charge of most things.
  • Administrator
  • Hero Member
  • *****
  • Karma: 169
  • Offline Offline
  • Posts: 2685
Re: Clrification needed regardig how key/hashes are stored
« Reply #1 on: September 25, 2008, 12:01:55 PM »

I updated the above wiki pages with up-to-date information and corrected them.
Logged
concordia cum veritate

msoltyspl

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 4
  • arch/crux/obsd :)
Re: Clrification needed regardig how key/hashes are stored
« Reply #2 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) ?
Logged

GonoszTopi

  • The current man in charge of most things.
  • Administrator
  • Hero Member
  • *****
  • Karma: 169
  • Offline Offline
  • Posts: 2685
Re: Clrification needed regardig how key/hashes are stored
« Reply #3 on: September 25, 2008, 04:13:43 PM »

cryptkey.dat stores only the private key aMule uses for Secure User Identification.
Logged
concordia cum veritate

msoltyspl

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 4
  • arch/crux/obsd :)
Re: Clrification needed regardig how key/hashes are stored
« Reply #4 on: September 25, 2008, 11:37:07 PM »

All right. Thanks again for help  8)
Logged