ecdhReleaseKeyPair()

The function releases a private/public key pair for an ECDH key exchange.

Synopsis

int ecdhReleaseKeyPair(int keyPairId);

Parameters

Parameter Meaning
keyPairId The key pair Id, which was generated before.

Return value

The function returns 0 on success.

Error

In case of an error, an exception is thrown.

Description

This function releases a private/public key pair with the given ID, which was generated with ecdhGenerateKeyPair().

Note: The name of the ECDH curve to use can be configured with the already existing config entry [allSections] ECDHCurve.

Assignment

Communication functions

Availability

CTRL