set_cipher_mode(9)
π set_cipher_mode(9) β like, the cipher mode setter, bestie
okay so this is set_cipher_mode, straight out of the Kernel API Manual (section 9, kernel-space girlies only β¨). it's a tiny little function that does exactly one thing and honestly? it ate. let's get into it π
πΈ NAME πΈ
set_cipher_mode β sets the cipher mode. that's it. that's the whole job. lowkey iconic for having zero identity crisis π
β¨ SYNOPSIS β¨
void set_cipher_mode (struct cc_hw_desc *pdesc , int mode );
returns nothing (void, she gives nothing back and we respect her for it π«Ά), takes a descriptor pointer and a mode. two args, no drama, periodt.
π¦ ARGUMENTS π¦
pdescβ pointer to the HW descriptor struct. like, the hardware descriptor. she needs the pointer, not a copy, we're not doing that today πmodeβ any one of the modes defined in[CC7x-DESC]. any one, bestie β go look at[CC7x-DESC]for the actual list, don't come for me, I'm just the messenger π
π₯ SEE ALSO π₯
okay this is the part where the manpage just absolutely dumps the whole squad on you β every sibling setter and helper in the ccree crypto crew. no cap, here's the full roll call, iykyk π
Kernel file ./drivers/crypto/ccree/cc_hw_queue_defs.h
hw_desc_init(9)set_queue_last_ind_bit(9)set_din_type(9)set_din_no_dma(9)set_cpp_crypto_key(9)set_din_sram(9)set_din_const(9)set_din_not_last_indication(9)set_dout_type(9)set_dout_dlli(9)set_dout_mlli(9)set_dout_no_dma(9)set_xor_val(9)set_xor_active(9)set_aes_not_hash_mode(9)set_aes_xor_crypto_key(9)set_dout_sram(9)set_xex_data_unit_size(9)set_multi2_num_rounds(9)set_flow_mode(9)set_hash_cipher_mode(9)set_cipher_config0(9)set_cipher_config1(9)set_hw_crypto_key(9)set_bytes_swap(9)set_cmac_size0_mode(9)set_key_size(9)set_key_size_aes(9)set_key_size_des(9)set_setup_mode(9)set_cipher_do(9)
thirty-one friends and every single one of them is a (9). the way this header file is basically a group chat ππ
and that's the whole page, bestie. stay hydrated, set your cipher mode responsibly, and go read set_cipher_do(9) next because she's literally right there πβ
mwah π β brought to you by the ./drivers/crypto/ccree directory, kernel API manual vibes, dated October 2026, page set_cipher_mode(9). see u in the next manpage, love u fr fr π«Άπ
π¦ 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