ecryptfs_par...ag_70_packet(9)
π ecryptfs_parse_tag_70_packet(9) π
okay bestie, buckle up β we're in the Kernel API Manual today and this one's a whole function. no cap, it's giving "cryptographic packet parser that knows exactly what it's doing" and honestly? we're obsessed π
β¨ NAME β¨
ecryptfs_parse_tag_70_packet β literally just parses and processes an FNEK-encrypted passphrase packet. that's the whole vibe. π
πΈ SYNOPSIS πΈ
int ecryptfs_parse_tag_70_packet (char **filename , size_t
*filename_size , size_t *packet_size , struct ecryptfs_mount_crypt_stat
*mount_crypt_stat , char *data , size_t max_packet_size );
she takes six args and returns an int, periodt. π
π¦ ARGUMENTS π¦
filenameβ bestie, this functionkmalloc's the memory for the filename. it's literally allocating it for you, so you don't have to π«Άfilename_sizeβ this one gets set to the amount of memory that gotkmalloc'd for the filename. so this pointer comes back knowing the size, iykyk.packet_sizeβ set to the number of octets in the packet that got parsed. octets!! not bytes, octets. respectful. β¨mount_crypt_statβ the mount-wide cryptographic context. like the big-picture crypto mood board for the whole mount πdataβ the memory location holding the start of the tag 70 packet. this is where the actual packet lives πmax_packet_sizeβ the maximum legal size of the packet to be parsed fromdata. key word legal, so don't be out here passing shady sizes π
π₯ DESCRIPTION π₯
Returns zero on success; non-zero otherwise.
that's it. that's the description. iconic honestly β she said "my return value speaks for itself" and moved on π
lowkey the most important line on this whole page though, so don't skip the vibe check on that return value π§
β SEE ALSO β
Kernel file ./fs/ecryptfs/keystore.c, plus the whole extended friend group:
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)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)
not me listing fifteen cross-references like it's a group chat roll call π but every single one of them ate, fr fr π₯
and that's the whole page, babe π brought to you by the fine folks over in ./fs/ecryptfs, dated October 2026 β so go forth, parse that tag 70 packet, and slay ππ
π¦ 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