KCAPI_KPP_SSGEN(3)
β¨ KCAPI_KPP_SSGEN(3) β¨
okay bestie, welcome to the Programming Interface corner of the libkcapi universe π this is the page for kcapi_kpp_ssgen, and it is literally the "let's make a shared secret together" function. no cap.
πΈ NAME πΈ
kcapi_kpp_ssgen β generate a shared secret
π SYNOPSIS π
ssize_t kcapi_kpp_ssgen(struct kcapi_handle * handle,
const uint8_t * pubkey, size_t pubkeylen,
uint8_t * ss, size_t sslen, int access);
π¦ ARGUMENTS π¦
handleβ [in] the cipher handle. your main character. π«Άpubkeyβ [in] public key of peer that shall be used to generate the shared secret with. yes, the peer's key β you're doing this together, it's giving collaborative. πpubkeylenβ [in] length of the public key bufferssβ [out]</out> generated shared secret. this is where the magic lands, bestie. β¨sslenβ [in] length of key bufferaccessβ [in] kernel access type. pick your vibe:KCAPI_ACCESS_HEURISTICβ use internal heuristic for fastest kernel access ποΈKCAPI_ACCESS_VMSPLICEβ use vmsplice accessKCAPI_ACCESS_SENDMSGβ sendmsg access
π₯ DESCRIPTION π₯
so here's the tea β β this returns the number of bytes returned by the shared secret generation operation upon success; a negative errno-style error code if an error occurred. like, if it works you get a happy little byte count, and if it doesn't you get a negative errno-style error code. periodt. π
π AUTHOR π
Stephan Mueller <smueller@chronox.de>
- Author.
π COPYRIGHT π
libkcapi Manual 1.5.0 π July 2025 β and that's the whole page, bestie! go forth and generate shared secrets responsibly, mwah ππ
π¦ 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