Board.KolibriOS.org

Official KolibriOS board
It is currently Wed Oct 27, 2021 9:47 pm

All times are UTC+03:00




Post new topic  Reply to topic  [ 22 posts ]  Go to page Previous 1 2
Author Message
PostPosted: Tue Dec 22, 2020 6:18 pm 
Offline
Mentor/Kernel Developer
User avatar

Joined: Fri Jun 30, 2006 9:01 am
Posts: 1306
Congrats on the breakthrough!

Now before you do anything else on this, go and seed that PRNG! :)

Some possible sources of entropy:
Sysfn 3, 9, 14, 18.4, 18.4, 18.6, 18.20, 26.10, 37.0, 66.3, 68.0, 74.8, 74.9,

_________________
"Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius -- and a lot of courage -- to move in the opposite direction." Albert Einstein


Top
   
PostPosted: Tue Dec 22, 2020 9:22 pm 
Offline
User avatar

Joined: Mon Apr 06, 2020 1:09 pm
Posts: 112
hidnplayr wrote:
Congrats on the breakthrough!

Now before you do anything else on this, go and seed that PRNG! :)

Some possible sources of entropy:
Sysfn 3, 9, 14, 18.4, 18.4, 18.6, 18.20, 26.10, 37.0, 66.3, 68.0, 74.8, 74.9,

Thanks!) I will work on this problem.

UPD: Done in January 2021, forgot to say.

_________________
The best way to predict the future is to create it.


Last edited by rgimad on Fri Jul 23, 2021 11:43 pm, edited 3 times in total.

Top
   
PostPosted: Fri Jul 23, 2021 11:30 pm 
Offline
User avatar

Joined: Thu Jun 25, 2020 1:14 am
Posts: 91
After a lot of pain, we managed to create an OBJ (MS COFF) library.
Thanks Boppan and RGmad for this :D .

The test case works. I tried to export all the symbols, but maybe I missed something ... In fact, you can already start developing a library for working with https.

PS.
The library depends on libc.obj (which is not used by anyone :evil: ) and network.obj. So they must be present in the system!


Attachments:
ssl_client1 [8.23 KiB]
Downloaded 19 times
mbedtls.obj [190.69 KiB]
Downloaded 19 times

_________________
Gentlemen, has it occurred to you to use libc.obj instead of "reinventing the wheel"?
Top
   
PostPosted: Sat Jul 24, 2021 5:11 pm 
Offline
Mentor/Kernel Developer
User avatar

Joined: Fri Jun 30, 2006 9:01 am
Posts: 1306
Rewritten example program in FASM as proof of concept. Works!

TODO:
Translate all .h files for library to .inc files for fasm, or at least correct the sizes in mbedtls.inc
Get certificates working. Without it, half the concept of TLS/SSL is broken.
...
Use it in practical applications (HTTP library, IRC client, FTP client, ..)

turbocat
I believe the folder "SVN\programs\develop\libraries\kos_mbedtls" should be moved to "SVN\contrib\network\mbedtls".
Do you know how to enable building on the server? (No need to copy to floppy/cd/.. yet. Just so we can download from https://builds.kolibrios.org/eng/data/


Attachments:
example [4.15 KiB]
Downloaded 15 times
mbedtls.inc [1.34 KiB]
Downloaded 15 times
example.asm [10.39 KiB]
Downloaded 22 times
File comment: Test run
VirtualBox_KolibriOS_24_07_2021_15_55_15.png
VirtualBox_KolibriOS_24_07_2021_15_55_15.png [ 36.54 KiB | Viewed 756 times ]

_________________
"Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius -- and a lot of courage -- to move in the opposite direction." Albert Einstein
Top
   
PostPosted: Sun Jul 25, 2021 2:55 am 
Offline
User avatar

Joined: Thu Jun 25, 2020 1:14 am
Posts: 91
Hello hidnplayr thanks for creating an example on fasm! For me, this would be an unbearable burden. Regarding auto-assembly: It is already configured on my pc, I'm just waiting for CLINK to be uploaded to the server. I won't move the folder to Contrib at least because I don't want to break the commit history. Plus this is an obj library where it belongs. I will not add it to the distribution kit either, because no one is using it yet.

_________________
Gentlemen, has it occurred to you to use libc.obj instead of "reinventing the wheel"?


Top
   
PostPosted: Sun Jul 25, 2021 8:49 am 
Offline
Designer
User avatar

Joined: Thu Jan 25, 2007 3:33 pm
Posts: 5540
> I won't move the folder to Contrib at least because I don't want to break the commit history

SVN allows you to move files/folders without loosing history.

_________________
Звиздеть не мешки ворочать


Top
   
PostPosted: Mon Jul 26, 2021 5:10 pm 
Offline
User avatar

Joined: Thu Jun 25, 2020 1:14 am
Posts: 91
Added mbedtls to auto build
http://builds.kolibrios.org/eng/data/pr ... bedtls.obj

_________________
Gentlemen, has it occurred to you to use libc.obj instead of "reinventing the wheel"?


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

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