crypto_free_kpp(9)
π NAME π
crypto_free_kpp β bestie, this is the one that frees your KPP tfm handle π
(yes, crypto_free_kpp(9), the kernel API manual girlies know)
β¨ SYNOPSIS β¨
void crypto_free_kpp (struct crypto_kpp *tfm );
okay so it returns void, meaning it gives you nothing back, which is literally the point β it's a cleanup function, she takes and she doesn't give π«Ά
πΈ ARGUMENTS πΈ
tfmβ the KPP tfm handle, and it has to be one that was allocated withcrypto_alloc_kppπ₯ like, don't just roll up with some random pointer, that's not the vibe
π DESCRIPTION π
So here's the tea β: if tfm is a NULL pointer or an error pointer, this function does nothing. not a single thing. zero. she clocks out early π
Otherwise it frees the KPP tfm handle for you, no cap. That's the whole plot π¦
π SEE ALSO π
Kernel file ./include/crypto/kpp.h β and the whole friend group:
struct kpp_request(9)struct crypto_kpp(9)struct kpp_alg(9)Generic Key-agreement Protocol Primitives API(9)crypto_alloc_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, mwah π stay hydrated, free your tfm handles, and remember: ./include/crypto, October 2026, crypto_free_kpp(9) β iconic behavior only πβ
π¦ 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