tipc_crypto_key_rcv(9)
π tipc_crypto_key_rcv β Receive a session key π
Okay bestie, so this is a page from the Kernel API Manual and it's all about one little function that does one very specific job: catching a session key that a peer sent you. Let's get into it π«Ά
β¨ SYNOPSIS β¨
bool tipc_crypto_key_rcv(struct tipc_crypto *rx, struct tipc_msg *hdr);
That's it, that's the whole signature β a bool goes in, a bool comes out, and in between it does key-receiving business. Slay π
πΈ ARGUMENTS πΈ
rxβ the RX crypto. Like, the crypto object on the receiving side. It's the one who's about to get a new key attached to it πhdrβ the TIPC v2 message incl. the receiving session key in its data. So the key is literally chillin' inside this message's data field, waiting to be picked up π
π¦ DESCRIPTION π¦
So what does it actually do? Simple: this function retrieves the session key in the message from the peer, then schedules a RX work to attach the key to the corresponding RX crypto.
That's the whole vibe β grab the key out of the message, then don't attach it right this second, schedule the RX work to do the attaching. Async queen behavior tbh β
π RETURN π
It returns true if the key has been scheduled for attaching, otherwise false.
No cap, that's literally the whole rule. Scheduled = true, not scheduled = false. Periodt π
π§ SEE ALSO π§
Everything else in the TIPC crypto cinematic universe π β and the kernel file ./net/tipc/crypto.c:
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_distr(9)tipc_crypto_key_xmit(9)tipc_crypto_work_rx(9)tipc_crypto_rekeying_sched(9)tipc_crypto_work_tx(9)
Go read the whole set, bestie β iykyk π₯
Alright, that's the whole page! This one lives in ./net/tipc, dated October 2026, and it's brought to you by the Kernel API Manual. Mwah, go touch some kernel code ππ
π¦ 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