tipc_crypto_rcv(9)

๐Ÿ“ฆ version 7.3.1, in nixpkgs unstable

๐Ÿ’– tipc_crypto_rcv(9) ๐Ÿ’–

okay bestie, welcome to the Kernel API Manual โ€” yes we're in the kernel now, put your hair up ๐ŸŽ€ this one's called tipc_crypto_rcv(9) and it's literally the "open the envelope" girlie of TIPC.


โœจ NAME โœจ

tipc_crypto_rcv โ€” decrypt an encrypted TIPC message from peer ๐Ÿฆ‹


๐ŸŒธ SYNOPSIS ๐ŸŒธ

int tipc_crypto_rcv (struct net *net , struct tipc_crypto *rx , struct
sk_buff **skb , struct tipc_bearer * b );

๐Ÿ’… ARGUMENTS ๐Ÿ’…

  • net โ€” a struct net, the network namespace babe, that's it, that's the whole vibe
  • rx โ€” the RX crypto handle โœจ your receiving-side main character
  • skb โ€” input/output message skb pointer โ€” yeah it's a pointer to a pointer, she's double iconic ๐Ÿ‘‘
  • b โ€” the bearer where the message has been received ๐ŸŒˆ

๐Ÿซถ DESCRIPTION ๐Ÿซถ

so here's the tea, fr fr: if the decryption is successful, the decrypted skb is returned directly or as the callback โ€” and before it gets forwarded to tipc_rcv via the tipc_crypto_rcv_complete, the encryption header and auth tag will be trimmed out. clean. โœ‚๏ธโœจ

otherwise?? the skb will be freed! ๐Ÿ’€ no cap. gone. not me crying over a freed skb ๐Ÿ˜ญ


๐Ÿงš NOTE ๐Ÿงš

RX key(s) can be re-aligned, or in case of no key suitable, TX cluster key(s) can be taken for decryption (- recursive). lowkey recursive, highkey slay ๐Ÿ”ฅ


โญ RETURN โญ

  • 0 โ€” the decryption has successfully completed ๐ŸŽ‰ ate and left no crumbs
  • -EINPROGRESS/-EBUSY โ€” the decryption is ongoing, a callback will be made โณ she's still cooking
  • -ENOKEY โ€” the decryption has failed due to no key ๐Ÿ”‘๐Ÿ™ˆ
  • -EBADMSG โ€” the decryption has failed due to bad message ๐Ÿ’€ that message was NOT it
  • -ENOMEM โ€” the decryption has failed due to no memory ๐Ÿ˜ญ brain empty
  • < 0 โ€” the decryption has failed due to other reasons ๐Ÿซ  misc. chaos, we don't know her

๐Ÿ”ฎ SEE ALSO ๐Ÿ”ฎ

Kernel file ./net/tipc/crypto.c โ€” plus the whole friend group, iykyk:


okay that's the whole page, mwah ๐Ÿ’‹ signing off from ./net/tipc โ€” dated October 2026, no cap, periodt. go decrypt something cute ๐Ÿฆ‹โœจ

๐Ÿ“ฆ where this page comes from