crypto_kpp_set_secret(9)
π crypto_kpp_set_secret(9) β like, the Kernel API Manual edition π
okay bestie, so this is crypto_kpp_set_secret from the Kernel API Manual, and it's literally the function that hands your private key over to a KPP implementation. she's giving β¨key deliveryβ¨ and honestly? iconic.
π¦ NAME π¦
crypto_kpp_set_secret β Invoke kpp operation
no cap, that's the whole vibe: you invoke a kpp operation. periodt.
πΈ SYNOPSIS πΈ
int crypto_kpp_set_secret (struct crypto_kpp *tfm , const void *buffer ,
unsigned int len );
she takes three things and gives you back an int, we love a simple queen π
π ARGUMENTS π
tfmβ the tfm handle. that's your transform handle, your main character, the whole reason we're here π«Άbufferβ the Buffer holding the packet representation of the private key. and like, lowkey important: the structure of the packet key depends on the particular KPP implementation. Packing and unpacking helpers are provided for ECDH and DH β see the respective header files for those implementations, iykyk β¨lenβ Length of the packet private key buffer. just the length bestie, don't overthink it π
π DESCRIPTION π
Function invokes the specific kpp operation for a given alg.
that's it, that's the tea β she looks at your tfm, figures out which alg you're running, and invokes the specific kpp operation for it. literally just passing the vibe check through to the right implementation π«
β RETURN β
zero on success; error code in case of error
so like, 0 = slay, anything else = π read the error code and go fix it. no in-between.
ngl, always check the return value. "error code in case of error" is the manpage equivalent of "the vibes will tell you" β she will not elaborate further π
π SEE ALSO π
- Kernel file
./include/crypto/kpp.h struct kpp_request(9)struct crypto_kpp(9)struct kpp_alg(9)Generic Key-agreement Protocol Primitives API(9)crypto_alloc_kpp(9)crypto_free_kpp(9)kpp_request_alloc(9)kpp_request_free(9)kpp_request_set_callback(9)kpp_request_set_input(9)kpp_request_set_output(9)struct kpp_secret(9)crypto_kpp_generate_public_key(9)crypto_kpp_compute_shared_secret(9)crypto_kpp_maxsize(9)
and that's the whole page bestie, go read the friends, they're all linked above π§
sign-off time π this one lives in ./include/crypto, dated October 2026, and it's the crypto_kpp_set_secret(9) page β mwah, catch you in the next manpage π
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms