Browse Source

Merge pull request #853 from liamcottle/fix-calc-shared-secret

fix multiple candidates warning
pull/854/head
Liam Cottle 9 months ago
committed by GitHub
parent
commit
70ec996c08
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      src/Identity.h

2
src/Identity.h

@ -64,7 +64,7 @@ public:
* \param secret OUT - the 'shared secret' (must be PUB_KEY_SIZE bytes) * \param secret OUT - the 'shared secret' (must be PUB_KEY_SIZE bytes)
* \param other IN - the second party in the exchange. * \param other IN - the second party in the exchange.
*/ */
void calcSharedSecret(uint8_t* secret, const Identity& other) { calcSharedSecret(secret, other.pub_key); } void calcSharedSecret(uint8_t* secret, const Identity& other) const { calcSharedSecret(secret, other.pub_key); }
/** /**
* \brief the ECDH key exhange, with Ed25519 public key transposed to Ex25519. * \brief the ECDH key exhange, with Ed25519 public key transposed to Ex25519.

Loading…
Cancel
Save