caam_rsa_cou...eading_zeros(9)
π caam_rsa_count_leading_zeros(9) β a Kernel API Manual moment
okay so this is a page from the Kernel API Manual, bestie, and the star of the show is caam_rsa_count_leading_zeros β which is lowkey just out here counting leading zeros for you π
β¨ NAME β¨
caam_rsa_count_leading_zeros β count leading zeros, need it to strip, from a given scatterlist π
(no fr, that's what it does: it does the counting, and the whole reason it exists is so those zeros can get stripped off a scatterlist. iconic behaviour honestly.)
πΈ SYNOPSIS πΈ
int caam_rsa_count_leading_zeros (struct scatterlist *sgl , unsigned int nbytes , unsigned int flags );
it hands you back an int, periodt. π
π¦ ARGUMENTS π¦
sglβ the scatterlist you're counting zeros from π§ like, this is your main character, the data source, the whole vibe.nbytesβ number of zeros, in bytes, to strip π yes bestie, in bytes, that unit matters.flagsβ operation flags β the little knobs that tell it how to behave.
π SEE ALSO π
- Kernel file
./drivers/crypto/caam/caampkc.cπ (the whole friend group lives here) caam_read_rsa_crt(9)caam_read_raw_data(9)
π quick reminder that sgl is a scatterlist and not a plain old buffer β do not come in here treating it like a char array, i'm begging π
and that's the tea π«Ά this gem comes to you from ./drivers/crypto/caam, dated October 2026 β see you in the next one, mwah πβ¨
π¦ 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