kcapi_kpp_ecdh_setcurve(3)

set the ECC curve to be used for ECDH

Section 3 libkcapi-dev bookworm source

Description

KCAPI_KPP_ECDH_SETCU

NAME

kcapi_kpp_ecdh_setcurve - set the ECC curve to be used for ECDH

SYNOPSIS

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

DESCRIPTION

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

AUTHOR

Stephan Mueller <smueller@chronox.de>

Author.

COPYRIGHT