ecc_swap_digits(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 a u64 *, 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. the in is const 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:

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