crypto_alloc_kpp(9)
π
crypto_alloc_kpp(9) β Kernel API Manual π
okay so bestie, welcome to the crypto_alloc_kpp(9) page from the Kernel API Manual. this one is short and sweet, but it's giving βimportant little helperβ energy, so let's get into it. π«Άβ¨
πΈ NAME πΈ
crypto_alloc_kpp β allocate KPP tfm handle π
π SYNOPSIS π
struct crypto_kpp * crypto_alloc_kpp (const char *alg_name , u32 type ,
u32 mask );
β¨ ARGUMENTS β¨
alg_nameβ is the name of the kpp algorithm (e.g."dh","ecdh"). that's the βwhich one are we allocating?β name, fr fr.typeβ specifies the type of the algorithm. π¦maskβ specifies the mask for the algorithm. π
π DESCRIPTION π
Allocate a handle for kpp algorithm. the returned struct crypto_kpp is required for any following API invocation β no cap, it's literally the handle you need for the next calls. π
π₯ RETURN π₯
allocated handle in case of success; IS_ERR is true in case of an error, and PTR_ERR returns the error code. so like, check the vibe before you keep going. πβ¨
π SEE ALSO π
Kernel file ./include/crypto/kpp.h β and then these besties:
struct kpp_request(9)struct crypto_kpp(9)struct kpp_alg(9)Generic Key-agreement Protocol Primitives API(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_set_secret(9)crypto_kpp_generate_public_key(9)crypto_kpp_compute_shared_secret(9)crypto_kpp_maxsize(9)
that's the whole page, bestie β source ./include/crypto, date October 2026, and it's crypto_alloc_kpp(9) signing off. mwah ππβ¨
π¦ 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