kcapi_kpp_ecdh_setcurve(3)

kcapi_kpp_ecdh_setcurve3

Set the ecc curve to be used for ecdh

Usage

int kcapi_kpp_ecdh_setcurve(struct kcapi_handle * handle, unsigned long curve_id);

Arguments

handle

[in] cipher handle

curve_id

[in] ID of the ECC curve

Overview

With this function, the caller sets the ECC curve for subsequent cipher operations. The curve ID is one of the ECC_CURVE_* identifiers.

Note, this function defines that the subsequent key generation and shared secret operation performs an ECC Diffie-Hellman operation.

return 0 upon success; a negative errno-style error code if an error occurred

Releases

3 releases since Debian 11 (Bullseye); the text changed 2 times.

  1. 11
  2. 12
  3. 13

Author

Stephan Mueller <[email protected]>

Author.

From libkcapi-dev 1.4.0-1+b2 in Debian 13 (Trixie). Parsed by carta from the page's man source.