key-exchange: Warn about costly operations in set_public_key()

This commit is contained in:
Tobias Brunner
2022-06-29 10:28:50 +02:00
parent e334bd46b1
commit 0351b5af3b
+4
View File
@@ -105,6 +105,10 @@ struct key_exchange_t {
/**
* Sets the public key from the peer.
*
* @note This operation should be relatively quick. Costly public key
* validation operations or key derivation should be implemented in
* get_shared_secret().
*
* @param value public key of peer
* @return TRUE if other public key verified and set
*/