diff options
| author | Dimitri Staessens <dimitri@ouroboros.rocks> | 2026-07-10 17:09:58 +0200 |
|---|---|---|
| committer | Sander Vrijders <sander@ouroboros.rocks> | 2026-07-19 11:44:35 +0200 |
| commit | de9c30b2071e4aff8819d29c03d98767c8a3ec5b (patch) | |
| tree | f06d9e313b85027aaecf5f2a8ef087a8760ef9fa /src/lib/tests | |
| parent | ad55e2710a020c0dbdd403040ec19c651efbf3e4 (diff) | |
| download | ouroboros-de9c30b2071e4aff8819d29c03d98767c8a3ec5b.tar.gz ouroboros-de9c30b2071e4aff8819d29c03d98767c8a3ec5b.zip | |
irmd: Harden OAP client KEM completion
do_client_kex_complete_kem() filled key_buf in the server-encap
branch and returned early in the client-encap branch; any other
mode value would fall through and memcpy an uninitialized stack
buffer into the session key. The client only ever sets the two
known modes today, but nothing local enforces that and the server
derives its mode from a wire bit. Give each mode an explicit path
with no fall-through.
Signed-off-by: Dimitri Staessens <dimitri@ouroboros.rocks>
Signed-off-by: Sander Vrijders <sander@ouroboros.rocks>
Diffstat (limited to 'src/lib/tests')
0 files changed, 0 insertions, 0 deletions
