From 27c2d93bebf2ef02e3d48c4626843abd75c914b2 Mon Sep 17 00:00:00 2001 From: John Safranek Date: Mon, 30 Nov 2026 15:59:48 -0700 Subject: [PATCH] Add a supported cipher table to the README List each cipher the default cipher list can offer, in its order, with the specification it follows, the wolfSSL configure option it needs, and the wolfSSH macro that disables it. Notes cover AES-CBC's soft disable, WOLFSSH_NO_AEAD, the strict KEX interaction, and AES-CTR being off in a default wolfSSL build. --- README.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/README.md b/README.md index 1c24060b9..2c12b8cd0 100644 --- a/README.md +++ b/README.md @@ -834,6 +834,30 @@ Notes: `-DWC_SIG_MIN_HASH_TYPE=WC_HASH_TYPE_SHA`. This re-enables a deprecated hash; prefer ECDSA unless RSA is mandated. +SUPPORTED CIPHERS +================= + +The default cipher list offers the ciphers in the order below, leaving out +any the build lacks. + +| Cipher | Specification | wolfSSL option | wolfSSH macro to disable | +|--------|---------------|----------------|--------------------------| +| `chacha20-poly1305`, `chacha20-poly1305@openssh.com` | OpenSSH PROTOCOL.chacha20poly1305 | `--enable-chacha --enable-poly1305` (default on) | `WOLFSSH_NO_CHACHA20_POLY1305` | +| `aes256-gcm@openssh.com`, `aes192-gcm@openssh.com`, `aes128-gcm@openssh.com` | OpenSSH PROTOCOL, from RFC 5647 | `--enable-aesgcm` (default on) | `WOLFSSH_NO_AES_GCM` | +| `aes256-ctr`, `aes192-ctr`, `aes128-ctr` | RFC 4344 | `--enable-aesctr` (default off) | `WOLFSSH_NO_AES_CTR` | +| `aes256-cbc`, `aes192-cbc`, `aes128-cbc` | RFC 4253 | `--enable-aescbc` (default on) | `WOLFSSH_NO_AES_CBC` | + +- AES-CBC is soft-disabled: it is left out of the default list but works when + the caller sets a cipher list naming it. Define + `WOLFSSH_NO_AES_CBC_SOFT_DISABLE` to offer it by default. +- `WOLFSSH_NO_AEAD` disables both AES-GCM and chacha20-poly1305. +- With strict KEX turned off on the context, the default list leaves + chacha20-poly1305 out, unless it is the only cipher in the default list. + See STRICT KEY EXCHANGE below. +- wolfSSL's `--enable-ssh` does not turn on AES-CTR; add `--enable-aesctr`. +- wolfSSH needs AES in wolfSSL even when chacha20-poly1305 is the only + cipher, and refuses to build against a wolfSSL built with `NO_AES`. + STRICT KEY EXCHANGE ===================