Board.KolibriOS.org
http://board.kolibrios.org/

SSH client
http://board.kolibrios.org/viewtopic.php?f=40&t=3276
Страница 1 из 1

Автор:  hidnplayr [ Сб май 07, 2016 1:55 pm ]
Заголовок сообщения:  SSH client

Here you can find an overview of the development of a native SSH client for KolibriOS.

TODO to get a usable SSH client:
    * Improve modular exponentiation, current implementation is slow and does not always work
    * Finish and test SSH transport routines (with MAC and encryption)
    * Diffie-Hellman key exchange
    * Implement user authentication
    * Properly implement channels
    * Finish implementing Shell
    * ...

Вложение:
VirtualBox_KolibriOS_10_08_2016_15_26_53.png
VirtualBox_KolibriOS_10_08_2016_15_26_53.png [ 37.83 КБ | 1222 просмотра ]


Спойлер: Показать
Вложение:
Diffie-hellman_Exchange.png
Diffie-hellman_Exchange.png [ 96.23 КБ | 1800 просмотров ]

Автор:  ashmew2 [ Сб май 07, 2016 4:20 pm ]
Заголовок сообщения:  Re: SSH client

Well Done!

I hope, We will get SSH soon :)

Автор:  Pathoswithin [ Вс май 08, 2016 1:36 am ]
Заголовок сообщения:  Re: SSH client

Цитата:
Math enthusiasts may certainly improve current modular exponentiation routines.
Which routines? Can you test performance, to make sure it will not become worse?

Автор:  DenisKarpenko [ Вс май 08, 2016 3:23 pm ]
Заголовок сообщения:  Re: SSH client

Good news!! :)
Also good news for development of TLS library :wink:

Автор:  hidnplayr [ Вс май 08, 2016 10:37 pm ]
Заголовок сообщения:  Re: SSH client

Цитата:
Which routines? Can you test performance, to make sure it will not become worse?

I'm talking about the multi precision math routines in mpint.inc

It comes with a demo/test program (modexp.asm) which may easily be enhanced to measure time a certain calculation takes.

One of the things is; now almost every math routine is hard-coded to work on 'MAX_BITS' bits, while the true length of a number will be less in reality. This now requires extra zeros, extra calculations and more space, but easier routines.

Автор:  Pathoswithin [ Пн май 09, 2016 1:58 am ]
Заголовок сообщения:  Re: SSH client

So, the main routine is mpint_modexp? And why do you think these routines can be much improved? Do we even need more performance?

Автор:  ashmew2 [ Пн май 09, 2016 5:23 am ]
Заголовок сообщения:  Re: SSH client

Pathoswithin писал(а):
So, the main routine is mpint_modexp? And why do you think these routines can be much improved? Do we even need more performance?


We _always_ need more performance. It is especially useful in libraries because a lot of userspace programs might use it in the future and the library shouldnt be a bottleneck.

Автор:  Pathoswithin [ Пн май 09, 2016 9:21 pm ]
Заголовок сообщения:  Re: SSH client

If I understand correctly, these routines will be used for key encryption, not the data itself? In that case, their part will be miserable.
Maybe I can improve mpint_mul routine, but test shows clearly, that the bottleneck is mpint_mod, and I doubt something can be done with it.

Вложения:
modexp.asm [2.88 КБ]
40 скачиваний

Автор:  hidnplayr [ Вт май 10, 2016 7:40 am ]
Заголовок сообщения:  Re: SSH client

The modular exponentiation is required during key exchange, this is at connection time, but also later while re-keying after x bytes of data or x hours have passed.

I hear that the use of Karatsuba multiplication algorithm and or Montgomery reduction algorithm may be useful.

Автор:  Wildwest [ Ср май 11, 2016 5:12 pm ]
Заголовок сообщения:  Re: SSH client

Not found topic about TLS, so put this link http://www.gnutls.org/ here (http://permalink.gmane.org/gmane.networ ... neral/4127 http://www.opennet.ru/opennews/art.shtml?num=44393)

Страница 1 из 1 Часовой пояс: UTC+03:00
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/