36 const uint8_t* peer_pubkey,
60 const uint8_t* privkey,
bool ecdh_p256_generate_keypair(uint8_t *privkey_out, uint8_t *pubkey_out)
bool ecdh_p256_compute_shared_secret(uint8_t *privkey, const uint8_t *peer_pubkey, uint8_t *shared_out)
Computes ECDH shared secret on P-256 using local private key and peer public key.
void ecdh_secure_clear(void *ptr, size_t size)
Securely clears sensitive memory using platform zeroize.
bool ecdh_p256_derive_pubkey(const uint8_t *privkey, uint8_t *pubkey_out)