logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

kcapi_kpp_ecdh_setcurve - set the ECC curve to be used for ECDH

Arguments

handle
           [in] cipher handle

       curve_id
           [in] ID of the ECC curve

Author

StephanMueller <smueller@chronox.de>
           Author.

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

Name

       kcapi_kpp_ecdh_setcurve - set the ECC curve to be used for ECDH

Synopsis

intkcapi_kpp_ecdh_setcurve(structkcapi_handle*handle,unsignedlongcurve_id);

See Also