ecc_is_pubkey_valid_full(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– ecc_is_pubkey_valid_full(9) πŸ’–

okay so bestie, welcome to the Kernel API Manual ✨ this one's a function page, and it's literally about checking that a public key is actually valid, full routine, no shortcuts. let's get into it 🫢


🌸 SYNOPSIS 🌸

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

like, it returns an int, takes a const struct ecc_curve * called curve, and a struct ecc_point * called pk. that's the whole signature, slay πŸ’…


πŸŽ€ ARGUMENTS πŸŽ€

  • curve β€” the elliptic curve domain parameters πŸ‘‘ this is your curve's whole identity, its vibe, its parameters.
  • pk β€” the public key, handed over as a point πŸ¦‹

✨ DESCRIPTION ✨

so what does it do? it validates the public key according to SP800-56A section 5.6.2.3.3 ECC Full Public-Key Validation Routine πŸ’― that's the spec, bestie, and this function follows it. full validation, not the partial one (we'll get to that in SEE ALSO πŸ‘€).


πŸ”₯ RETURN πŸ”₯

  • 0 β€” validation succeeded, everything's iconic, we love to see it 🌈
  • -EINVAL β€” validation failed 😭 that key did NOT pass the vibe check.

πŸ’œ SEE ALSO πŸ’œ

Kernel file ./include/crypto/internal/ecc.h β€” and honestly the whole ecc squad shows up here, no cap:

like, that's the whole group chat fr fr 🫢


mwah, that's the page πŸ’‹ this came from ./include/crypto/internal, dated October 2026, and it's the ecc_is_pubkey_valid_full(9) page β€” go validate some keys, bestie, you've got this πŸ’…βœ¨

πŸ“¦ where this page comes from