tipc_aead_clone(9)
π tipc_aead_clone(9) β like, the TIPC AEAD key clone page, bestie
okay so this is a page from the Kernel API Manual, and it's literally all about tipc_aead_clone β cloning a TIPC AEAD key. yes bestie, we're in kernel land now, put your hair up π
β¨ NAME β¨
tipc_aead_clone β Clone a TIPC AEAD key π
π¦ SYNOPSIS π¦
int tipc_aead_clone (struct tipc_aead **dst , struct tipc_aead *src );
that's the whole vibe. two pointers, one function, zero drama (wellβ¦ mostly, see the NOTE below π).
πΈ ARGUMENTS πΈ
dstβ the dest key, aka where the cloning lands. this is thestruct tipc_aead **β a pointer to a pointer, main character energy fr fr πsrcβ the source key you're cloning from. the original. the blueprint. the mother. π
π«Ά DESCRIPTION π«Ά
okay so what this does is make a "copy" of the source AEAD key data over to the dest β and yes, "copy" is in quotes in the original for a reason, iykyk π.
here's the tea: the TFMs list is common for the keys β like, shared, not duplicated. so dest and src are lowkey sharing that list, no cap.
and because of that sharing situation, a reference to the source gets held in the "cloned" pointer, so later on when it's time to free stuff, everyone knows who's who. it's giving responsible memory management, honestly π.
π NOTE π
this must be done in cluster-key mode only! no exceptions, bestie. if you're not in cluster-key mode, justβ¦ don't. π
β RETURN β
0 in case of success β slay β¨
otherwise < 0 β not slay π
π₯ SEE ALSO π₯
the whole friend group, honestly. kernel file ./net/tipc/crypto.c plus all of these icons:
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_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_key_rcv(9)tipc_crypto_work_rx(9)tipc_crypto_rekeying_sched(9)tipc_crypto_work_tx(9)
and that's the page, bestie π§π
this lil masterpiece lives over in ./net/tipc, and it's dated October 2026 β future vibes only β³β¨. the manual itself is tipc_aead_clone(9), mwah, bye π
π¦ 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