ecc_point_is_zero(9)
π ecc_point_is_zero(9) π
okay so bestie, welcome to the Kernel API Manual, we're literally about to vibe check an elliptic curve point πΈ this one's a tiny little function but it's iconic in its own way, trust.
β¨ NAME β¨
ecc_point_is_zero β check if point is zero. that's it. that's the whole job. she's simple, she's elegant, she slays π
π¦ SYNOPSIS π¦
bool ecc_point_is_zero (const struct ecc_point *point );
π ARGUMENTS π
pointβ the point you want to check for zero. like, you hand her a point and she tells you if it's giving nothing. zero energy. the void. π«Ά
β RETURN β
true if point is the point at infinity β yes, infinity counts as "zero" here, no cap, that's just how it is π β and false otherwise.
so like: true = she's at infinity, false = she's a real one with actual coordinates. periodt π
π₯ SEE ALSO π₯
- Kernel file
./include/crypto/internal/ecc.h 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_mult_shamir(9)
like the whole squad is here, it's giving crypto internal header reunion π§β¨ go read them too, iykyk.
ngl the whole extended family lives in ./include/crypto/internal and this page is dated October 2026 β so yeah, that's the source, the directory, and the date, all accounted for π
okay bye bestie, go check your points, stay zero-aware, mwah πππ
π¦ 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