ecryptfs_derive_iv(9)
π NAME π
okay so this is ecryptfs_derive_iv(9) from the Kernel API Manual, and the NAME section is literally serving:
ecryptfs_derive_iv -
that's it. the dash is just sitting there. we respect it. no made-up one-liner, no cap. π
β¨ SYNOPSIS β¨
bestie, here's the exact signature β do not let line wrapping gaslight you:
void ecryptfs_derive_iv (char *iv , struct ecryptfs_crypt_stat *crypt_stat , loff_t offset );
π ARGUMENTS π
ivβ destination for the derived iv value. like, the IV goes here. π«Άcrypt_statβ pointer to thecrypt_statstruct for the current inode. yes, pointer to the struct, for the current inode, exactly what it says. β¨offsetβ offset of the extent whose IV we are to derive. it's giving "which extent are we deriving from", and that's all the original says. π¦
πΈ DESCRIPTION πΈ
Generate the initialization vector from the given root IV and page offset. that's the whole description β short, iconic, no extra lore. and no, i'm not inventing extra details, because the original did not. π
π SEE ALSO π
Kernel file: ./fs/ecryptfs/crypto.c
ecryptfs_from_hex(9)ecryptfs_init_crypt_stat(9)ecryptfs_destroy_crypt_stat(9)virt_to_scatterlist(9)crypt_scatterlist(9)crypt_extent(9)ecryptfs_encrypt_page(9)ecryptfs_decrypt_page(9)ecryptfs_init_crypt_ctx(9)ecryptfs_copy_mount_wide_flags_to_inode_flags(9)ecryptfs_set_default_crypt_stat_vals(9)ecryptfs_new_file_context(9)ecryptfs_validate_marker(9)ecryptfs_process_flags(9)write_ecryptfs_marker(9)ecryptfs_code_for_cipher_string(9)ecryptfs_cipher_code_to_string(9)ecryptfs_write_headers_virt(9)ecryptfs_write_metadata(9)set_default_header_data(9)ecryptfs_read_headers_virt(9)ecryptfs_read_xattr_region(9)ecryptfs_process_key_cipher(9)ecryptfs_destroy_crypto(9)ecryptfs_tfm_exists(9)ecryptfs_get_tfm_and_mutex_for_cipher_name(9)ecryptfs_encode_for_filename(9)ecryptfs_decode_from_filename(9)ecryptfs_encrypt_and_encode_filename(9)ecryptfs_decode_and_decrypt_filename(9)
mwah π β cute sign-off time: source is ./fs/ecryptfs, date is October 2026, and the page is ecryptfs_derive_iv(9). all three mentioned, bestie, we ate. π«Ά
π¦ 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