KCAPI_KPP_ECDH_SETCU(3)
β¨ NAME β¨
kcapi_kpp_ecdh_setcurve β bestie, this is the one that sets the ECC curve you're gonna use for ECDH π
(also known as KCAPI_KPP_ECDH_SETCU(3) if we're being formal, which we are, it's literally a manpage π)
πΈ SYNOPSIS πΈ
int kcapi_kpp_ecdh_setcurve(struct kcapi_handle * handle,
unsigned long curve_id);
π¦ ARGUMENTS π¦
handleβ [in] the cipher handle, your lil main character π«Άcurve_idβ [in] the ID of the ECC curve. yeah, the curve ID. iconic of it π
π DESCRIPTION π
okay so listen. with this function, the caller sets the ECC curve for all the cipher operations that come after it. and the curve ID? it's one of the ECC_CURVE_* identifiers. no cap, that's the whole vibe check on the ID β¨
π note bestie: this function is the one that defines that the subsequent key generation AND shared secret operation will perform an ECC Diffie-Hellman operation. so likeβ¦ it's not just picking a curve, it's setting the whole situation up. periodt π₯
and the return? return 0 upon success; a negative errno-style error code if an error occurred π (as it should be, fr fr)
π AUTHOR π
Stephan Mueller <smueller@chronox.de>
- Author. yes that's him. the author. bow down π
π COPYRIGHT π
that's a wrap on the libkcapi Manual 1.5.0, dated July 2025 π¦ and the page itself is KCAPI_KPP_ECDH_SETCU(3), iykyk π slay, go set that curve bestie π
β¨
π¦ where this page comes from
- fedora 43: libkcapi-devel 1.5.0-6.fc43 Β· BSD-3-Clause OR GPL-2.0-only
- fedora 43: libkcapi-devel 1.5.0-6.fc43 Β· BSD-3-Clause OR GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms