Board.KolibriOS.org

Official KolibriOS board
It is currently Sun Dec 08, 2019 6:46 am

All times are UTC+03:00




Post new topic  Reply to topic  [ 22 posts ]  Go to page 1 2 Next
Author Message
 Post subject: TLS library
PostPosted: Wed Jun 01, 2016 1:41 am 
Offline
KSoC/GSoC Student
User avatar

Joined: Fri Mar 04, 2016 6:19 pm
Posts: 23
Hi everyone!
Currently I am working on TLS library!
I am working according to https://tools.ietf.org/html/rfc5246.
Project repo: https://github.com/Bandd-k/TLS-Library
My GSoC proposal: https://docs.google.com/document/d/1RF1 ... IR3zJERgiU

Now I am working on TLS handshake function.
I've implemented clientHello.
I've received serverHello.
Now I am working on extracting public key for RSA algorithm from certificate in DER Format.

I will be posting information about progress to this topic.

Denis :)

_________________
Kolibri <3


Top
   
 Post subject: Re: TLS library
PostPosted: Thu Jun 02, 2016 3:34 pm 
Offline
Mentor

Joined: Tue Mar 11, 2014 11:37 am
Posts: 184
Keep going!

_________________
---
Check out the Netsurf Web Browser for KolibriOS.
Read the wiki and happy hacking with KolibriOS!


Top
   
 Post subject: Re: TLS library
PostPosted: Tue Jun 07, 2016 2:03 pm 
Offline
KSoC/GSoC Student
User avatar

Joined: Fri Mar 04, 2016 6:19 pm
Posts: 23
Public key was extracted (Modulus and Exponent).
I continue to work on RSA :)

_________________
Kolibri <3


Top
   
 Post subject: Re: TLS library
PostPosted: Wed Jun 15, 2016 12:28 pm 
Offline
KSoC/GSoC Student
User avatar

Joined: Fri Mar 04, 2016 6:19 pm
Posts: 23
I am working on HMAC. I hope, that in next few days I will introduce it.

_________________
Kolibri <3


Top
   
 Post subject: Re: TLS library
PostPosted: Mon Jun 20, 2016 11:29 am 
Offline
KSoC/GSoC Student
User avatar

Joined: Fri Mar 04, 2016 6:19 pm
Posts: 23
HMAC is ready. I am waiting a review from hidnplayr. And will make some corrections.
https://github.com/Bandd-k/TLS-Library/blob/master/hmac.inc
Feel free to check my assembler style :) I am newbie and can make some things in unusual or incorrect way.

_________________
Kolibri <3


Top
   
 Post subject: Re: TLS library
PostPosted: Mon Jun 20, 2016 1:13 pm 
Offline
Mentor/Kernel Developer
User avatar

Joined: Thu Mar 26, 2015 5:16 pm
Posts: 1264
There are question about 4 spaces before local label: somebody likes them, somebody don't. Anyway, don't forget about anonymous labels (@@:).


Top
   
 Post subject: Re: TLS library
PostPosted: Mon Jun 20, 2016 1:57 pm 
Offline
KSoC/GSoC Student
User avatar

Joined: Fri Mar 04, 2016 6:19 pm
Posts: 23
Thank you. Yes, you are right, I forgot about anonymous labels :)
The second option is absolutely without spaces before local labels, yes?

_________________
Kolibri <3


Top
   
 Post subject: Re: TLS library
PostPosted: Mon Jun 20, 2016 7:09 pm 
Offline
Mentor/Kernel Developer
User avatar

Joined: Thu Mar 26, 2015 5:16 pm
Posts: 1264
Yes. Takes few seconds to autoreplace though.


Top
   
 Post subject: Re: TLS library
PostPosted: Sun Jun 26, 2016 6:20 pm 
Offline
KSoC/GSoC Student
User avatar

Joined: Fri Mar 04, 2016 6:19 pm
Posts: 23
I have written new HMAC version (now, it has more convenient interface to use). https://github.com/Bandd-k/TLS-Library/blob/master/hmac.inc
Implemented pseudo random function which is explained there https://tools.ietf.org/html/rfc5246#section-5.
https://github.com/Bandd-k/TLS-Library/blob/master/PRF.inc
RSA is almost ready. Last step is combining different parts.

_________________
Kolibri <3


Top
   
 Post subject: Re: TLS library
PostPosted: Thu Jul 28, 2016 8:38 pm 
Offline
KSoC/GSoC Student
User avatar

Joined: Fri Mar 04, 2016 6:19 pm
Posts: 23
I have not written posts for a long time. However work is progressing.
Progress:
1) New HMAC.
2) New Pseudo random function.
3) RSA is finished.
4) Client Exchange Message is done.
5) Change cipher Message is done.
Now I am going to tidy code slightly.
Coding plans:
1) Calculate Master Key. https://tools.ietf.org/html/rfc5246#section-8.1
2) Implement Finished Message. https://tools.ietf.org/html/rfc5246#section-7.4.9

_________________
Kolibri <3


Top
   
 Post subject: Re: TLS library
PostPosted: Sun Aug 21, 2016 9:08 pm 
Offline
KSoC/GSoC Student
User avatar

Joined: Fri Mar 04, 2016 6:19 pm
Posts: 23
Basic TLS_recieve and TLS_send were implemented.
Now, I am going to clean code, write documentation. And make Library easier to using.

_________________
Kolibri <3


Top
   
 Post subject: Re: TLS library
PostPosted: Tue Aug 23, 2016 11:47 am 
Offline
KSoC/GSoC Student
User avatar

Joined: Fri Mar 04, 2016 6:19 pm
Posts: 23
I've prepared gist about my work durning the summer :)
https://gist.github.com/Bandd-k/9c1a5c0ca664fcd3f027e44a81258893

_________________
Kolibri <3


Top
   
 Post subject: Re: TLS library
PostPosted: Tue Aug 23, 2016 7:26 pm 
Offline

Joined: Wed May 18, 2005 7:27 pm
Posts: 1001
Can you go to GSOC site and make report? ASAP, please.


Top
   
 Post subject: Re: TLS library
PostPosted: Thu Oct 13, 2016 4:48 pm 
Offline

Joined: Tue Feb 12, 2013 9:48 pm
Posts: 166
Amazing work @DenisKarpenko! I wish you could keep working on it, because this would allow to write applications for web APIs like a simple Twitter app.
I haven't tested the release but I watched the demo in the Github repository. I have an old laptop where I'm going to install Kolibri and take a look at your implementation.

How much did Google pay you for your work? Because I want to see full support for TLS on Kolibri but I don't have the time to learn assembler at your level (and I don't really want right now). So, maybe I can pay you (and your mentor?) to keep working on it.

For the guys that remember me: sorry for not being active. Today I noticed this work from GSOC 2016 and I was "THIS IS GREAT!!" hehe

By the way, would be great to have HTTPS support on *.kolibrios.org. Whoever is in charge of that may want to check out https://letsencrypt.org/, because they provide free certificates.


Top
   
 Post subject: Re: TLS library
PostPosted: Thu Oct 13, 2016 6:12 pm 
Offline
KSoC/GSoC Student
User avatar

Joined: Fri Mar 04, 2016 6:19 pm
Posts: 23
Hi esevece!
Your comments are very pleasant :) Thank you!
How much Google pays you can read there https://developers.google.com/open-source/gsoc/faq#do_i_get_paid_for_participating_in_gsoc.
Unfortunately I have some problems at my university, so I am not working on library now :(
I am going to continue work on library in November. The library will provide full base support for TLS. It should be enough to make for example a simple Twitter app.
Feel free to ask any questions! I will be glad to answer :)

_________________
Kolibri <3


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 22 posts ]  Go to page 1 2 Next

All times are UTC+03:00


Who is online

Users browsing this forum: No registered users and 2 guests


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 post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Limited