Commit graph

3 commits

Author SHA1 Message Date
Felipe Moura
7840ea5bdb netutils/dropbear: use NuttX /dev/crypto for chacha20-poly1305
Replace the bundled libtomcrypt chacha20-poly1305@openssh.com with an
adapter backed by the NuttX crypto framework: CRYPTO_CHACHA20 for the
two keystreams (payload and packet-length) and CRYPTO_POLY1305 for the
per-packet MAC, both routed through /dev/crypto ioctls. Gated behind
CONFIG_NETUTILS_DROPBEAR_NUTTX_CHACHAPOLY (default y when
NETUTILS_DROPBEAR_NUTTX_CRYPTO is enabled).

Signed-off-by: Felipe Moura <moura.fmo@gmail.com>
2026-07-09 21:52:32 -03:00
Felipe Moura
81b2a1be26 netutils/dropbear: back SHA-256 and HMAC-SHA256 with NuttX crypto
Swap the libtomcrypt sha256/hmac state for the kernel SHA2/HMAC-SHA256 contexts and provide adapters.

Fix format

Signed-off-by: Felipe Moura <moura.fmo@gmail.com>
2026-07-09 20:13:08 -03:00
Felipe Moura
fee2ddbf54 netutils/dropbear: add Dropbear SSH server port for NuttX
Integrated SSH daemon authenticating against FSUTILS_PASSWD, with an
ECDSA P-256 host key and an NSH session over a PTY per connection. Built
from the upstream Dropbear tarball (pinned commit) and patched for
NuttX, using Dropbear's bundled libtomcrypt for all crypto. setsid()
(apache/nuttx#19184) and link() now come from NuttX, not local stubs.

Signed-off-by: Felipe Moura <moura.fmo@gmail.com>
2026-06-27 08:42:00 -03:00