STRUCT CCP_ECC_ENGINE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct ccp_ecc_engine(9) β€” the CCP ECC operation, bestie ✨

Okay so this is a page from the Kernel API Manual, and it's all about struct ccp_ecc_engine β€” literally the struct that holds your CCP ECC operation info. It's giving "small struct, big responsibilities" πŸŽ€


🌸 SYNOPSIS 🌸

Here's the whole vibe, verbatim:

struct ccp_ecc_engine {
    enum ccp_ecc_function function;
    struct scatterlist *mod;
    u32 mod_len;
    union {
      struct ccp_ecc_modular_math mm;
      struct ccp_ecc_point_math pm;
    } u;
    u16 ecc_result;
 };

✨ Members ✨

  • function β€” which ECC function you're gonna perform πŸ‘‘
  • mod β€” the ECC modulus, iykyk
  • mod_len β€” length in bytes of the modulus, fr fr
  • ecc_result β€” the result of the ECC operation πŸ’–

πŸ¦‹ Description πŸ¦‹

These are the variables you literally have to have set when you call ccp_enqueue_cmd:

  • function, mod, mod_len
  • operand, operand_len, operand_count, output, output_len, output_count
  • ecc_result

Like, no cap β€” all of those. Don't skip any 🫢

Heads up bestie: the union in there holds either a struct ccp_ecc_modular_math mm or a struct ccp_ecc_point_math pm β€” it's one or the other, that's the whole point of a union πŸ’€

πŸ”₯ SEE ALSO πŸ”₯

Kernel file ./include/linux/ccp.h plus 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_modular_math(9), struct ccp_ecc_point(9), struct ccp_ecc_point_math(9), struct ccp_cmd(9)


🌈 That's the whole page, bestie β€” sourced from ./include/linux, dated October 2026, and yes the manual name is struct ccp_ecc_engine(9) in case you were wondering 😭 go set your fields and slay πŸ’…πŸ‘‘

πŸ“¦ where this page comes from