ecryptfs_process_key_cipher(9)
π ecryptfs_process_key_cipher(9) π
okay so bestie, welcome to the Kernel API Manual β this one's ecryptfs_process_key_cipher(9) and it's literally the glow-up moment for your key cipher β¨
π NAME π
ecryptfs_process_key_cipher β does the key cipher initialization, periodt π«
πΈ SYNOPSIS πΈ
int ecryptfs_process_key_cipher (struct crypto_skcipher **key_tfm , char
*cipher_name , size_t *key_size );
π¦ ARGUMENTS π¦
key_tfmβ the crypto context for your key material, and yes, this function is the one that sets it πcipher_nameβ the name of the cipher, like, literally what it's called πkey_sizeβ how big the key is, in bytes π
β¨ DESCRIPTION β¨
Returns zero on success π«Ά
and listen, this part matters: any crypto_tfm structs allocated here should be released by other functions β like, say, on a superblock put event β and that's true regardless of whether this function succeeds or fails π so don't be out here thinking "oh it failed so nothing to clean up," because no. Not the vibe. The cleanup is somebody else's job either way, no cap π
π SEE ALSO π
Kernel file ./fs/ecryptfs/crypto.c β and the whole friend group:
ecryptfs_from_hex(9)ecryptfs_derive_iv(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_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)
ngl that's a lot of siblings but they're all iconic in their own way π
and that's the whole page, bestie!! came from ./fs/ecryptfs, dated October 2026, and it's signed off with ecryptfs_process_key_cipher(9) β mwah ππΈ
π¦ 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