ecc_swap_digits(9)
π ecc_swap_digits(9) β the Kernel API Manual, bestie edition π
okay so real talk, this is a page from the Kernel API Manual and the star of the show is ecc_swap_digits. it's giving "quiet little helper that eats every single time" energy. no cap. β¨
β¨ NAME β¨
ecc_swap_digits β copies ndigits from a big endian array into a native array π
like, that's it. that's the whole job. and it does it flawlessly. periodt.
πΈ SYNOPSIS πΈ
void ecc_swap_digits (const void *in , u64 *out , unsigned int ndigits );
look at her. short, iconic, does exactly what she says on the tin. the way that signature is literally right there. π
π¦ ARGUMENTS π¦
inβ the input array π (where the digits are coming from, bestie)outβ the output array π (where they're going β it's au64 *, so you know it's native-array coded)ndigitsβ number of digits to copy π₯ that's it, that's the count, don't come for her
fr fr: three args, zero surprises. theinisconst void *so she will not be touching your input, she's respectful like that. π«Ά
π SEE ALSO π
if you're obsessed with this one (and you should be), the kernel file ./include/crypto/internal/ecc.h is the whole friend group, and here's everyone in it:
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)ecc_point_mult_shamir(9)
like, the whole squad. iykyk. ππ
mwah, that's a wrap π§ β this little page lives in ./include/crypto/internal, it's dated October 2026, and it's forever known as ecc_swap_digits(9). slay, go copy some digits bestie. π
βπ
π¦ 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