ecc_digits_from_bytes(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… ecc_digits_from_bytes β€” bestie's guide to the kernel API manual (section 9, mwah)

okay so this is ecc_digits_from_bytes(9) from the Kernel API Manual, and honestly? she's a tiny little function with main character energy πŸŽ€


✨ NAME ✨

ecc_digits_from_bytes β€” literally creates an ndigits-sized digits array from a byte array. that's it. that's the whole vibe πŸ’–


✨ SYNOPSIS ✨

void ecc_digits_from_bytes (const u8 *in , unsigned int nbytes , u64
*out , unsigned int ndigits );

no cap, that's the whole signature. take a screenshot bestie πŸ“Έ


✨ ARGUMENTS ✨

  • in β€” the input byte array 🌸 your raw materials, your starting point, your source material
  • nbytes β€” the size of that input byte array, like how many bytes we're working with, iykyk
  • out β€” the output digits array 🫢 where the glow-up happens
  • ndigits β€” how many digits to create from the byte array. yes, you're telling it how many to make ✨

✨ DESCRIPTION ✨

okay so listen πŸ‘‘ β€” the first byte in the input byte array is expected to hold the most significant bits of the large integer. big-endian behaviour, front of the line gets the high bits, the way that a queue works but for bits πŸ¦‹

that's the whole description fr fr. she's small but she's important πŸ’…


✨ SEE ALSO ✨

bestie there's a whole friend group, go say hi 🫢


πŸ’€ reminder: that first byte = most significant bits thing is an expectation, not a suggestion. don't come crying to me when your endianness is ate.

and that's the whole page, bestie 🌈 she lives in ./include/crypto/internal and she's dated October 2026 β€” mark your calendars, she's an icon, periodt πŸ’œπŸŽ€πŸ¦‹

πŸ“¦ where this page comes from