MLDonkey Forum Index
Homepage •  Bugs •  Tasks •  Patches •  SF.net Project Page •  ChangeLog •  German forum •  Links •  Wiki •  Downloads
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Release Mulus 0.17.4
Goto page Previous  1, 2
 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    MLDonkey Forum Index -> Mulus - Archive
View previous topic :: View next topic  
Author Message
pango
Sage


Joined: 31 Oct 2002
Posts: 2436

PostPosted: Sun Nov 06, 2005 5:00 pm    Post subject: Reply with quote

CryptoKit lacked DER encoding, maybe more.
But if an ocaml implementation can be found or coded, I'm all for it...
Back to top
View user's profile Send private message
Alvo
neophyte


Joined: 19 Jun 2005
Posts: 13
Location: Germany

PostPosted: Thu Nov 10, 2005 10:41 am    Post subject: Crypto Reply with quote

Hi All!

I tested a bit with SecIdent, and i revealed some details.

Question: Why is a pubkey 76 bytes while eMule devs say, a public key is 384bit / 48 byte?
Ans: the pubkey is transmitted in DER-encoding (Distinguished encoding rules)

Question: DER and pubkey, whats going on?
Ans: Clients sends us pubkeys in DER-Encoding:
0x304a300d06092a864886f70d01010105000339003036023100d0ab393783c89e435ad46bd7783ff9f77bc363e56269e99398061b2d3a6547594c93f78b947b34cd9239e2017a00a1b3020111
0x304a300d06092a864886f70d01010105000339003036023100b20b4ea46cc17eb61bb3adb4586d778a542e5dcda6ebc2b59e62fb0f648155a6a90d14e810aa2cf2d898660ee030939b020111
As you can see, the first and last part is constant, the byte-subset 25-73 differ, this is coincidentally 48 bytes. This is the public key, the rest is waste.


Question: A RSA-Pubkey consists of two numbers, but apparently only one number is transmitted, why?
Ans: eMule devs probably diddnt care about the public exponent number, they used a library which had a default of 17. So the RSA public exponent number is fixed to 17 and is not transmitted.

When you try decoding received signatures with the signers public key (which is the modulus N), you'll get results like this:
0x01ffffffffffffffffffff003021300906052b0e03021a05000414d100a84fe86a8674abba7278c3bb03b4b375c244
0x01ffffffffffffffffffff003021300906052b0e03021a05000414f07151cf48a6401b3da8d5b54d8a96d86f5ac35b
Interesting that the first part is constant and always only the last 20 bytes differ. Well, thats PKCS-SHA1, so the to be signed message is preliminarily mangled by SHA1. SHA1 has a message digest of 20 bytes, this is why only the last 20 bytes differ in decoded signatures. The SHA1 digest is prepended with a constant number of 27 bytes.

Question: What is the input of this SHA1-hash function?
Ans:Its the public key from the signature requestors in DER-encoding and the challenge (SecIdent V1).

Question: Why is the SHA1-digest prepended with a constant value?
Ans: i don't know, maybe its written in the stars Smile

So this all has something to do with DER-encoding and PKCS-message-mangling, somehow

regards
Alvo (Owe)


Last edited by Alvo on Fri Nov 11, 2005 7:59 am; edited 3 times in total
Back to top
View user's profile Send private message
Enig
neophyte


Joined: 23 Jul 2005
Posts: 22
Location: USA

PostPosted: Thu Nov 10, 2005 12:10 pm    Post subject: Reply with quote

Thank owe.

It's time to add SUI with Mulus now. Very Happy
Back to top
View user's profile Send private message
Hoodoo
user


Joined: 16 Oct 2004
Posts: 56
Location: OZ

PostPosted: Mon Nov 28, 2005 9:37 am    Post subject: Reply with quote

Is there a download counter in mldonkey or mulus that tracks the amount of data that is downloaded/uploaded to keep it alive on the various networks?
Back to top
View user's profile Send private message
fabtar
Sage


Joined: 04 Feb 2004
Posts: 1575
Location: Italy

PostPosted: Mon Dec 05, 2005 8:50 am    Post subject: Reply with quote

@hoodoo

Could you elaborate your question.
You can see ed2k stats in statistical panel of mldonkey/mulus about other stas I am not experienced about.
Back to top
View user's profile Send private message
Knocker
professional


Joined: 05 Nov 2002
Posts: 612
Location: Germany

PostPosted: Mon Dec 05, 2005 9:21 am    Post subject: Reply with quote

Enig wrote:

It's time to add SUI with Mulus now. Very Happy


Looks like there is an answer from me missing. I'm sure I answered in this thread after Enig's message.

My last answer did go something like:

Wow that (SUI) is more complex than I thougt. I will have a look in mldonkey 2.7 to figure things out.
Back to top
View user's profile Send private message
Hoodoo
user


Joined: 16 Oct 2004
Posts: 56
Location: OZ

PostPosted: Tue Dec 06, 2005 9:32 am    Post subject: Reply with quote

fabtar wrote:
@hoodoo

Could you elaborate your question.
You can see ed2k stats in statistical panel of mldonkey/mulus about other stas I am not experienced about.


Yeah, I had a look at those stats and they are good for looking at the number of connections etc. I guess I am looking for a byte accumulator that counts network traffic associated with each protocol (ie excluding the actual files that are being downloaded) for example the bytes uploaded/downloaded relating to connection requests, connection to servers etc.
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    MLDonkey Forum Index -> Mulus - Archive All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Sourceforge.net Logo