ecc_point_mult_shamir(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… NAME

ecc_point_mult_shamir β€” bestie, this one adds two points that've each been multiplied by their own scalar ✨ (yes, the official Kernel API Manual page for it, and it's lowkey iconic).


✨ SYNOPSIS

void ecc_point_mult_shamir (const struct ecc_point *result , const u64
*x , const struct ecc_point *p , const u64 *y , const struct ecc_point
*q , const struct ecc_curve *curve );

It returns nothing (void, we love a no-strings-attached king πŸ‘‘) β€” the magic lands in result. 🫢


πŸŽ€ ARGUMENTS

Okay so here's the cast, and honestly every one of them is a main character:

  • result β€” the resulting point πŸ’–
  • x β€” scalar to multiply with p
  • p β€” point to multiply with x
  • y β€” scalar to multiply with q
  • q β€” point to multiply with y
  • curve β€” curve 🌈 (yes, that's the whole description, and honestly? tasteful.)

πŸ”₯ DESCRIPTION

So it gives you result = x * p + x * q over the curve. That's what the page says, verbatim, no notes πŸ™ˆ β€” I'm just the messenger, bestie.

The way this is a serve: it works faster than doing two multiplications and then an addition. Two separate multiplies plus a plain add = extra work; this = one glow-up of a function. Efficiency ate, periodt. πŸ’…πŸ”₯


πŸ¦‹ SEE ALSO

The kernel file ./include/crypto/internal/ecc.h, and then a whole friend group of related pages β€” literally the entire squad, go say hi to all of them:


That's the whole page, bestie β€” no cap. πŸ’œ Sourced all cute from ./include/crypto/internal, dated October 2026, and that last ecc_point_mult_shamir(9) bit at the bottom? That's just the title waving goodbye to you on the way out. Byeee πŸŽ€πŸ¦‹β­

πŸ“¦ where this page comes from