1
0
mirror of https://github.com/libssh2/libssh2.git synced 2026-10-24 03:48:58 +03:00
Files
libssh2/src
Viktor Szakats d5ba5bc77b mbedtls: add support for AES-GCM ciphers
In addition to the original patch:
- simplify cipher object. drop the allocation and double redirection,
  drop redundant `encrypt` member, shorten/dedupe names, replace `algo`
  with `is_gcm`.
- replace heap alloc with stack buffer for GCM in `ssh2_cipher_crypt()`.
- use the algo argument instead of the context copy.
  (for speed and to match OpenSSL sibling code.)
- fix returned error value on GCM auth fail.
- increment IV on decrypt auth fail. Copilot suggestion. I cannot
  confirm this, so erring on the side caution to avoid a potential IV
  reuse.
- support mbedTLS builds without GCM built-in, via `MBEDTLS_GCM_C`.
- retrofit bounds check applied to OpenSSL backend earlier.
  Follow-up to a2ed82d409 #2401
- misc tidy-ups.

Original-patch-by: Adrian Moran
Closes #1764
Closes #2505
2026-08-04 13:02:37 +02:00
..
2026-07-28 03:20:30 +02:00
2026-06-30 00:12:47 +02:00
2026-06-21 23:15:10 +02:00
2026-06-05 18:12:37 +02:00
2026-07-31 22:36:45 +02:00
2023-08-18 11:20:58 +00:00
2026-07-29 02:53:01 +02:00
2026-05-13 12:00:36 +02:00
2026-07-28 03:20:30 +02:00
2026-07-31 22:36:45 +02:00
2026-07-28 03:20:30 +02:00
2026-07-22 01:40:19 +02:00