ecc_point_mult_shamir(9)
π 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 withppβ point to multiply withxyβ scalar to multiply withqqβ point to multiply withycurveβ 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:
ecc_swap_digits(9)ecc_digits_from_bytes(9)ecc_is_key_valid(9)ecc_gen_privkey(9)ecc_make_pub_key(9)crypto_ecdh_shared_secret(9)ecc_is_pubkey_valid_partial(9)ecc_is_pubkey_valid_full(9)vli_is_zero(9)vli_cmp(9)vli_sub(9)vli_from_be64(9)vli_from_le64(9)vli_mod_inv(9)vli_mod_mult_slow(9)vli_num_bits(9)ecc_alloc_point(9)ecc_free_point(9)ecc_point_is_zero(9)
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
- 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