From 1fbb14884cc488d041b1e77715d6e020c04bb9a1 Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Wed, 1 Jul 2026 10:21:41 +0200 Subject: [PATCH] botan: Remove confusing documentation for DH helper function This comment only referred to not calling `key_exchange_verify_pubkey()`, not what Botan does, which will verify the passed public value as needed. LLMs get confused by this and assume Botan doesn't so that. --- src/libstrongswan/plugins/botan/botan_util.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/libstrongswan/plugins/botan/botan_util.h b/src/libstrongswan/plugins/botan/botan_util.h index 46bf24638..408fc623a 100644 --- a/src/libstrongswan/plugins/botan/botan_util.h +++ b/src/libstrongswan/plugins/botan/botan_util.h @@ -126,8 +126,6 @@ bool botan_verify_signature(botan_pubkey_t key, const char* scheme, * Do the Diffie-Hellman key derivation using the given private key and public * value. * - * Note that the public value is not verified in this function. - * * @param key DH private key * @param pub other's public value * @param secret the derived secret (allocated on success)