ecc_digits_from_bytes(9)
π 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 materialnbytesβ the size of that input byte array, like how many bytes we're working with, iykykoutβ the output digits array π«Ά where the glow-up happensndigitsβ 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 π«Ά
- Kernel file
./include/crypto/internal/ecc.h ecc_swap_digits(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)
π 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
- 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