tipc_crypto_key_distr(9)
π tipc_crypto_key_distr(9) β from the Kernel API Manual, bestie π
okay so sit down, grab a strawberry π, and let me tell you about the single most "I'm just gonna hand this key to everyone" function in the TIPC crypto world.
β¨ NAME β¨
tipc_crypto_key_distr β it distributes a TX key. literally that's the whole vibe. it hands out a key. π
π SYNOPSIS π
int tipc_crypto_key_distr (struct tipc_crypto *tx , u8 key , struct
tipc_node *dest );
no cap, that's the exact shape of it β i did not touch a single character, you're welcome π«Ά
πΈ ARGUMENTS πΈ
txβ the TX crypto. yeah. it's the crypto thing doing the transmitting. main character energy fr π₯keyβ the key's index. like, which key. au8, so keep it smol πdestβ the destination tipc node. and here's the iconic part: it's= NULLif you're distributing to all nodes. soNULLisn't "oops forgot it", it's "everybody gets one" ππ
β RETURN β
0 in case of success, otherwise < 0. that's it. zero = slay, negative = π.
π¦ SEE ALSO π¦
okay this is the long part and no i'm not skipping any of it because every single one of these deserves its moment π the kernel file is ./net/tipc/crypto.c, and here's the whole friend group:
struct tipc_tfm(9)struct tipc_aead(9)struct tipc_crypto_stats(9)struct tipc_crypto(9)tipc_aead_key_validate(9)tipc_aead_key_generate(9)tipc_aead_free(9)tipc_aead_tfm_next(9)tipc_aead_init(9)tipc_aead_clone(9)tipc_aead_mem_alloc(9)tipc_aead_encrypt(9)tipc_aead_decrypt(9)tipc_ehdr_validate(9)tipc_ehdr_build(9)tipc_crypto_key_init(9)tipc_crypto_key_attach(9)tipc_crypto_key_try_align(9)tipc_crypto_key_pick_tx(9)tipc_crypto_key_synch(9)tipc_crypto_xmit(9)tipc_crypto_rcv(9)tipc_crypto_msg_rcv(9)tipc_crypto_key_xmit(9)tipc_crypto_key_rcv(9)tipc_crypto_work_rx(9)tipc_crypto_rekeying_sched(9)tipc_crypto_work_tx(9)
like, that's the whole group chat. go read them. iykyk π
lowkey a little reminder:destbeingNULLis a deliberate "all nodes" flag, so don't panic when you see it β it's giving intentional, not giving bug π
and that's the page!! sourced from ./net/tipc, dated October 2026, from your favorite kernel api manual. mwah, go distribute some keys responsibly πβ¨ππ§ββοΈ
π¦ 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