ecc_is_pubkey_valid_full(9)
π 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:
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)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)ecc_point_mult_shamir(9)
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
- 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