ecryptfs_ve...tok_from_key(9)
π ecryptfs_verify_auth_tok_from_key β Kernel API Manual β¨
okay bestie, so this little cutie lives in the Kernel API Manual and its whole personality is: "is this auth token actually valid or are we being catfished?" π΅οΈββοΈ That's it. That's the vibe. Let's get into it π
πΈ SYNOPSIS πΈ
int ecryptfs_verify_auth_tok_from_key (struct key *auth_tok_key , struct
ecryptfs_auth_tok **auth_tok );
no cap, that's literally the whole signature π«Ά
π ARGUMENTS π
auth_tok_keyβ thestruct key *that's holding the authentication token. it's giving "the bag where the token lives" πauth_tokβ the authentication token itself, handed over as astruct ecryptfs_auth_tok **. double pointer moment, main character energy β¨
π¦ DESCRIPTION π¦
so here's the tea, bestie π: this function does a vibe check on your auth tok and reports back like the world's most honest group chat.
- Returns zero on a valid auth tok β slay, we're so back π
-EINVALif the payload is invalid β literally not it, the payload is sus π-EKEYREVOKEDif the key was revoked before we acquired its semaphore β awkward timing fr fr, the semaphore came in late and the key already got the boot π
β οΈ watch those two negative returns carefully, bestie β-EINVALand-EKEYREVOKEDmean two totally different things and you do not wanna mix them up π
π SEE ALSO π
the whole friend group, all in the kernel file ./fs/ecryptfs/keystore.c β go say hi π«Ά
ecryptfs_parse_packet_length(9)ecryptfs_write_packet_length(9)ecryptfs_verify_version(9)ecryptfs_find_auth_tok_for_sig(9)ecryptfs_parse_tag_70_packet(9)decrypt_pki_encrypted_session_key(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)
and that's the whole page, bestie π§π this icon of a manpage came from ./fs/ecryptfs, dated October 2026 β bookmark it, screenshot it, put it on your mood board π
β¨
π¦ 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