Comments (2)
I can't comment on OpenSSH's CPU utilization. I've peeked at their code in the past, and they are spinning up multiple threads for handling the peer socket and one per channel, connected with pipes.
wolfSSL and wolfSSH are two separate libraries. wolfSSH uses the wolfCrypt portion of wolfSSL. wolfSSL's SINGLE_THREADED option is for TLS operation. You would normally run each TLS session in its own thread. There is some shared state, the session cache, that needs mutexes. Single threaded removes the mutexes.
In wolfSSL, we also have asynchronous cryptography usage. When doing some crypto operations, the session will return a WANT_WRITE-like code meaning the session is waiting for the crypto hardware. wolfSSH does not take advantage of this yet.
Cryptography is always going to be CPU intensive. wolfCrypt can offload crypto operations to additional hardware. For example, wolfCrypt can take advantage of AES-NI, AVX1/2, etc on the Intel processors. We can always add more as part of a support package. We have a single-precision math library that performs public key cryptography and runs super fast in constant time branch-free, but the code is somewhat large. There's always trade-offs. wolfSSH is using the same cryptography as wolfSSL, and is using many of the same algorithms. (ECDSA, ECDHE, AES-GCM, etc.)
wolfSSH's server is still a work in progress. (There's a reason it is in the examples directory.) It is missing authentication, but wolfSSH expects the user to add it with an authentication callback. (It can run on anything including systems without users.)
Can I put you in touch with one of our sales managers to discuss some consulting? We can help with porting and integration.
from wolfssh.
Do you have any other questions, or did I misunderstand what you asked? Would you like to follow up?
from wolfssh.
Related Issues (20)
- wolfssh on STM32U5 HOT 4
- Does the SFTP server support IPV6? HOT 2
- Implement remote port forwarding with lwip HOT 1
- OpenSSH sftp cannot connect with v1.4.14-stable, whilst it could with v1.4.13-stable HOT 11
- Enhancing portability and error handling in wolfSSH
- diffie-hellman-group-exchange-sha256 broken since v1.4.12-stable HOT 2
- non blocking mode does not work : infinte lines of "client would read block" in offical test client program HOT 8
- make fail with sftp HOT 2
- wolfSSH Espressif ESP32 Managed Component Support HOT 1
- wolfSSL GitHooks pre-commit: incompatible on Visual Studio Windows WSL
- Double Free or Corruption on 1.4.13 and master branch HOT 5
- Rekeying doesn't work in certain cases HOT 1
- If the client is suspended, the server enters a busy loop with WS_WINDOW_FULL HOT 6
- DoReiceive() does not update the input buffer after DoPacket(), when it has to. HOT 1
- Espressif fixes: MISC_WARNING not expanded, vars not initialized, not used
- Missing wolfssl/options.h in esp-idf managed component version "1.4.15-stable-preview5"
- Runtime configurability of key signature algorithms for KEX HOT 7
- Failed to connect to wolfssh server with kex ID_ECDH_SHA2_NISTP* HOT 1
- Error when building wolfssh with only WOLFSSH_NO_ECDSA or WOLFSSH_NO_ECDH HOT 2
- wolfssh_template / wolfssh_echoserver don't build HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wolfssh.