STRUCT CCP_DES3_ENGINE(9)
π NAME π
okay so bestie, this is the struct ccp_des3_engine(9) page from the Kernel API Manual, and the NAME section literally says:
struct ccp_des3_engine β CCP SHA operation
yes, it says SHA on a 3DES struct page π thatβs the lore, weβre keeping it, periodt.
β¨ SYNOPSIS β¨
the whole struct, exactly as the page gives it:
struct ccp_des3_engine {
enum ccp_des3_type type;
enum ccp_des3_mode mode;
enum ccp_des3_action action;
struct scatterlist *key;
u32 key_len;
struct scatterlist *iv;
u32 iv_len;
struct scatterlist *src, *dst;
u64 src_len;
};
π Members π
typeβ Type of 3DES operationmodeβ cipher modeactionβ 3DES operation (decrypt/encrypt)keyβ key to be used for this 3DES operationkey_lenβ length of key (in bytes)ivβ IV to be used for this AES operation <span>π</span> yes, the page says AES right there, we are just reporting the sacred text π«Άiv_lenβ length in bytes ofivsrcβ input data to be used for this operationdstβ output data produced by this operationsrc_lenβ length of input data used for this operation (in bytes)
πΈ Description πΈ
so these are the variables you need to set when calling ccp_enqueue_cmd:
type,mode,action,key,key_len,src,dst,src_leniv,iv_lenfor any mode other than ECB
and the iv variable is used as both input and output. On completion of the 3DES operation the new IV overwrites the old IV β so the old IV gets replaced, no cap πβ¨
π¦ SEE ALSO π¦
Kernel file ./include/linux/ccp.h
ccp_present(9)ccp_version(9)ccp_enqueue_cmd(9)struct ccp_aes_engine(9)struct ccp_xts_aes_engine(9)struct ccp_sha_engine(9)struct ccp_rsa_engine(9)struct ccp_passthru_engine(9)struct ccp_passthru_nomap_engine(9)struct ccp_ecc_modular_math(9)struct ccp_ecc_point(9)struct ccp_ecc_point_math(9)struct ccp_ecc_engine(9)struct ccp_cmd(9)
mwah π β source/version: ./include/linux, date: October 2026, page: struct ccp_des3_engine(9). iconic, honestly. π
π¦ 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