STRUCT DH(9)
okay so bestie, welcome to struct dh(9) from the Kernel API Manual π
β¨ this little icon is literally the blueprint for a DH private key, and weβre gonna read it together like a group chat. no cap.
π NAME π
struct dh β define a DH private key ππ
β¨ SYNOPSIS β¨
hereβs the whole vibe, character for character:
struct dh {
const void *key;
const void *p;
const void *g;
unsigned int key_size;
unsigned int p_size;
unsigned int g_size;
};
πΈ Members πΈ
keyβ Private DH key, aka the secret little main character πpβ Diffie-Hellman parameter P, periodt π«Άgβ Diffie-Hellman generator G, iconic behavior β¨key_sizeβ Size of the private DH key, yes bestie weβre measuring πp_sizeβ Size of DH parameter P πg_sizeβ Size of DH generator G π¦
π¦ SEE ALSO π¦
go peek at these, iykyk:
- Kernel file
./include/crypto/dh.h DH Helper Functions(9)crypto_dh_key_len(9)crypto_dh_encode_key(9)crypto_dh_decode_key(9)__crypto_dh_decode_key(9)
mwah π source/version: ./include/crypto, date: October 2026, and the footer cutie is still struct dh(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