STRUCT CCP_ECC_MODULAR_MATH(9)
π struct ccp_ecc_modular_math(9) β like, the CCP ECC modular math parameters, bestie
okay so this is a page straight outta the Kernel API Manual, and it's about struct ccp_ecc_modular_math β the lil' bundle of pointers and lengths you hand to the CCP (that's the Crypto Coprocessor, iykyk) when you want it to do modular math for you. no cap, it's a whole vibe: a couple of operands, a result buffer, and the lengths so nobody overruns anything. slay. β¨
πΈ NAME πΈ
struct ccp_ecc_modular_math β the CCP ECC modular math parameters. that's it, that's the whole personality. π
β¨ SYNOPSIS β¨
struct ccp_ecc_modular_math {
struct scatterlist *operand_1;
unsigned int operand_1_len;
struct scatterlist *operand_2;
unsigned int operand_2_len;
struct scatterlist *result;
unsigned int result_len;
};
look at her. six fields. immaculate. π«Ά
π¦ Members π¦
operand_1β the first operand for the modular math operation. the main character of the op, honestly. πoperand_1_lenβ the length of the first operand. yes bestie, you gotta tell it how big she is.operand_2β the second operand for the modular math operation. β οΈ but heads up: it's not used forCCP_ECC_FUNCTION_MINV_384BIT. like, that function literally doesn't need her. πoperand_2_lenβ the length of the second operand. and same deal: not used forCCP_ECC_FUNCTION_MINV_384BIT. πresultβ the result of the modular math operation. the payoff. the reveal. the moment. π₯result_lenβ the length of the supplied result buffer. so the hardware knows exactly how much room it's got in there. no overflowing, periodt. π
π SEE ALSO π
kernel file ./include/linux/ccp.h β go read it, it's giving lore. π
and then the whole friend group:
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_des3_engine(9), struct ccp_rsa_engine(9), struct ccp_passthru_engine(9), struct ccp_passthru_nomap_engine(9), struct ccp_ecc_point(9), struct ccp_ecc_point_math(9), struct ccp_ecc_engine(9), struct ccp_cmd(9)
β¨ every single one of them cross-referenced, no gatekeeping. π
π§ real talk:operand_2andoperand_2_lenjust sit there unused when you're runningCCP_ECC_FUNCTION_MINV_384BIT. not broken, just not invited. don't @ me. π
and that's the page, bestie π β brought to you by the folks over at ./include/linux, dated October 2026, filed forever under struct ccp_ecc_modular_math(9). go forth and modular-math. βπ
π¦ 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