STRUCT ECC_CURVE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 NAME 🌸

okay so bestie, welcome to the struct ecc_curve(9) page of the Kernel API Manual β€” literally the definition of an elliptic curve, no cap πŸ’…βœ¨

✨ SYNOPSIS ✨

struct ecc_curve {
    char *name;
    u32 nbits;
    struct ecc_point g;
    u64 *p;
    u64 *n;
    u64 *a;
    u64 *b;
 };

πŸ’… Members πŸ’…

like, here's the whole cast of characters, and every single one of them matters 🫢

  • name β€” the short name of the curve. just a lil nickname, icon behavior πŸŽ€
  • nbits β€” the number of bits of a curve. yes, the actual bit count πŸ”₯
  • g β€” the generator point of the curve. main character energy fr fr πŸ‘‘
  • p β€” the prime number. and here's the tea β˜•: if Barrett's reduction is used for this curve, a pre-calculated value 'mu' is appended to the p after ndigits. the use of Barrett's reduction is heuristically determined in vli_mmod_fast β€” that's the vibe check, iykyk 🌈
  • n β€” the order of the curve group. periodt πŸ’€
  • a β€” curve parameter a. iconic, essential, no notes 🌸
  • b β€” curve parameter b. the other half of the duo, we stan πŸ’œ

πŸ‘€ SEE ALSO πŸ‘€

go peek at the kernel file ./include/crypto/ecc_curve.h plus struct ecc_point(9), ecc_get_curve(9), and ecc_get_curve25519(9) β€” they're all in the group chat bestie πŸ¦‹


and that's the whole page!! mwah πŸ’– sourced straight from ./include/crypto, dated October 2026 β€” catch you in the next manpage, bestie 🧚⭐

πŸ“¦ where this page comes from