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

This commit is contained in:
Tobias Brunner 2021-07-19 17:46:58 +02:00
parent 895b8bae30
commit 9c9b683b7b

View File

@ -128,6 +128,10 @@ struct key_exchange_t {
/**
* Sets the public key received 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
*/