decrypt_pki..._session_key(9)
π 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:
ecryptfs_parse_packet_length(9)ecryptfs_write_packet_length(9)ecryptfs_verify_version(9)ecryptfs_verify_auth_tok_from_key(9)ecryptfs_find_auth_tok_for_sig(9)ecryptfs_parse_tag_70_packet(9)parse_tag_1_packet(9)parse_tag_3_packet(9)parse_tag_11_packet(9)decrypt_passphrase_encrypted_session_key(9)ecryptfs_parse_packet_set(9)write_tag_1_packet(9)write_tag_11_packet(9)write_tag_3_packet(9)ecryptfs_generate_key_packet_set(9)
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
- 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