tipc_aead_encrypt(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– tipc_aead_encrypt β€” the kernel API manual, bestie edition πŸ’–

okay so this page is tipc_aead_encrypt(9), straight out of the Kernel API Manual, and it's basically the glow-up moment where your message gets encrypted before it hits the road. no cap, it's a whole vibe. ✨


🌸 NAME 🌸

tipc_aead_encrypt β€” literally just encrypt a message. that's the whole assignment, and it ate. πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

int tipc_aead_encrypt (struct tipc_aead *aead , struct sk_buff *skb ,
struct tipc_bearer *b , struct tipc_media_addr *dst , struct tipc_node
*__dnode );

like, look at that signature. five params, one int return, main character energy fr fr. πŸ‘‘


πŸŽ€ ARGUMENTS πŸŽ€

  • aead β€” the TIPC AEAD key for the message encryption. this is the key, the moment, the whole point. πŸ”‘
  • skb β€” the input/output skb. note the slash, bestie: it goes in, and it comes back out. it's giving ✨transformative✨.
  • b β€” the TIPC bearer where the message will be delivered after the encryption. so like, the destination bearer, but make it post-encryption. πŸ›£οΈ
  • dst β€” the destination media address. where it's headed, media-address style. πŸ“¬
  • __dnode β€” TIPC dest node if "known". yes the quotes are doing a lot of work there. lowkey iconic. πŸ™ˆ

⭐ RETURN ⭐

  • 0 : if the encryption has completed β€” slay, we're done here. βœ…
  • -EINPROGRESS/-EBUSY : if a callback will be performed β€” not done yet, something's gonna call you back. πŸ’€
  • < 0 : the encryption has failed β€” rip, it's not giving what it needed to give. 😭

πŸ”₯ SEE ALSO πŸ”₯

Kernel file ./net/tipc/crypto.c, plus this 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_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_key_rcv(9), tipc_crypto_work_rx(9), tipc_crypto_rekeying_sched(9), tipc_crypto_work_tx(9)

like, that's the whole squad. don't @ me, just read them too. 🫢


that's the page, bestie πŸ’œ it lives at ./net/tipc, dated October 2026, and it's filed under tipc_aead_encrypt(9) β€” go forth and encrypt, you absolute icon πŸŒˆπŸ’–

πŸ“¦ where this page comes from