DH HELPER FUNCTIONS(9)
π DH HELPER FUNCTIONS π
okay so this is the DH Helper Functions page from the Kernel API Manual (man section 9, kernel-land bestie, not userland) β¨ and it's short and sweet, so let's get into it π
To use DH with the KPP cipher API, the following data structure and functions should be used. that's it, that's the whole vibe π«Ά
To use DH with KPP, the following functions should be used to operate on a DH private key. and like, the packet private key that can be set with the KPP API function call of crypto_kpp_set_secret β that's the one you're working with, iykyk π
ngl this page is lowkey just pointing you at the header and the functions below β no cap, the real lore lives in ./include/crypto/dh.h πΈ
β¨ SEE ALSO β¨
- Kernel file
./include/crypto/dh.hβ go read it, it's giving source of truth π struct dh(9)crypto_dh_key_len(9)crypto_dh_encode_key(9)crypto_dh_decode_key(9)__crypto_dh_decode_key(9)
like, literally all of these, bestie β go click through every single one, they're iconic π₯
and that's the whole page!! π¦ brought to you by source ./include/crypto, dated October 2026, and yeah it's still called DH Helper Functions(9) β periodt π
π¦ 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