ecc_is_pubkey_valid_partial(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… ecc_is_pubkey_valid_partial β€” like, the partial public key validation era

okay so bestie, welcome to the ecc_is_pubkey_valid_partial(9) page β€” that's the function name, and you found it in the Kernel API Manual, which is exactly where it lives ✨


✨ NAME ✨

ecc_is_pubkey_valid_partial β€” Partial public key validation. that's it, that's the whole vibe check πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

int ecc_is_pubkey_valid_partial (const struct ecc_curve *curve , struct
ecc_point *pk );

literally just two args and it returns an int, no cap πŸ’…


🌸 ARGUMENTS 🌸

  • curve β€” elliptic curve domain parameters. yes, THE curve. the main character of the whole elliptic situation 🌈
  • pk β€” public key as a point. it's giving "coordinates, but make it a struct" πŸ’–

πŸ‘‘ DESCRIPTION πŸ‘‘

so what does it actually do? it validates the public key according to SP800-56A section 5.6.2.3.4, the ECC Partial Public-Key Validation Routine 🧚

like, it's the routine from the spec, doing the routine things from the spec. periodt ⭐


πŸ’€ NOTE πŸ’€

okay bestie, important: there is no check that the public key is in the correct elliptic curve subgroup. so don't come for this function when it doesn't catch that β€” it literally says right here that it doesn't πŸ™ˆ

like, this is the partial validation. the name is not a decoration, iykyk πŸ’…


πŸ”₯ RETURN πŸ”₯

  • 0 β€” if validation is successful. slay, we love a zero 🌸
  • -EINVAL β€” if validation is failed. it's giving "nope, try again" 😭

πŸ’œ SEE ALSO πŸ’œ

kernel file ./include/crypto/internal/ecc.h, plus the whole friend group:


and that's the page, bestie 🫢 this little icon dropped from ./include/crypto/internal β€” yes that's the source path β€” and it's dated October 2026, so it's freshhh. go validate those public keys (partially!) πŸ’–βœ¨

πŸ“¦ where this page comes from