key-exchange: Warn about costly operations in set_public_key()
This commit is contained in:
@@ -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
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user