decrypt_pki..._session_key(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… decrypt_pki_encrypted_session_key β€” the kernel API manual, bestie edition πŸŽ€

okay so you found yourself in the Kernel API Manual (section 9, kernel girlies rise) and the page is literally called decrypt_pki..._session_key(9) because apparently full names were too much to ask for. anyway!! it's the ecryptfs keystore lore and honestly it's giving "one job, does it well" energy ✨


✨ NAME ✨

decrypt_pki_encrypted_session_key β€” literally just decrypts the session key with the given auth_tok, no cap 🫢


🌸 SYNOPSIS 🌸

int decrypt_pki_encrypted_session_key (struct ecryptfs_auth_tok
*auth_tok , struct ecryptfs_crypt_stat *crypt_stat );

that's it, that's the whole vibe check πŸ”₯


πŸ¦‹ ARGUMENTS πŸ¦‹

  • auth_tok β€” the key authentication token, bestie. it's the thing you use to decrypt the session key. main character of the operation, honestly πŸ‘‘
  • crypt_stat β€” the cryptographic context. it's giving "supporting cast but absolutely essential" πŸ’œ

πŸ’– DESCRIPTION πŸ’–

so what does it do? returns zero on success; non-zero error otherwise. that's the whole description fr fr 😭 zero = slay, non-zero = not slay. that's the entire report, periodt.

ngl the manpage is criminally short here. but we keep every word, so: zero on success, non-zero error otherwise. iconic brevity, tbh πŸ’…

⭐ SEE ALSO ⭐

okay this section ate, it's a whole friend group of ecryptfs functions 🧚 all of them live in the kernel file ./fs/ecryptfs/keystore.c:

go read them!! they're all in the same friend group, iykyk 🌈


and that's the page, bestie πŸŽ€ brought to you by the fine people at ./fs/ecryptfs, dated October 2026 β€” same header, same footer, same title decrypt_pki..._session_key(9), all wrapped up in one cute sign-off πŸ’– mwah, bye! πŸ¦‹

πŸ“¦ where this page comes from