pskc_set_key_a...esp_checkdigits(3)
π pskc_set_key_a...esp_checkdigits(3) β the libpskc manual, but make it make sense π
okay so real talk, this is a page straight out of the libpskc manual, and it's about ONE tiny little setter function. but bestie, tiny functions are still iconic, so let's get into it β¨
πΈ NAME πΈ
pskc_set_key_algparm_resp_checkdigits β it's an API function, and yeah, that name is a whole mouthful, iykyk π
β¨ SYNOPSIS β¨
#include <pskc.h>
void pskc_set_key_algparm_resp_checkdigits(pskc_key_t * key, int
checkdigit);
that's it, that's the whole vibe. void return, so it gives you nothing back except the satisfaction of a job done π«Ά
π¦ ARGUMENTS π¦
pskc_key_t * keyβ apskc_key_thandle, and you get it frompskc_get_keypackage(). that's your main character right there πint checkdigitβ non-zero means you're setting CheckDigit to true, and0means, well, not true. simple as that, no cap π
π DESCRIPTION π
so what does this actually DO. it sets the PSKC KeyPackage Key AlgorithmParameters ResponseFormat CheckDigits value π
and this attribute is basically the "do we append a Luhn check digit?" switch. it says whether the device needs to append a Luhn check digit β as defined in [ISOIEC7812] β to the response. highkey important detail: this is only valid if the 'Encoding' attribute is set to 'DECIMAL' π¨ like, that's the vibe check it has to pass first.
then it's honestly just a yes/no situation:
- if the value is
TRUE, the device WILL append a Luhn check digit to the response β - if the value is
FALSE, the device will NOT append a Luhn check digit to the response β
literally that's the whole thing. Luhn on, Luhn off. slay π₯
β SINCE β
2.2.0 β so it's been around a minute, it's basically vintage at this point π
π REPORTING BUGS π
found a bug?? don't suffer in silence bestie, report it to <oath-toolkit-help@nongnu.org> π
- libpskc home page:
https://oath-toolkit.codeberg.page/ - general help using GNU software:
http://www.gnu.org/gethelp/
π COPYRIGHT π
Copyright Β© 2009-2026 Simon Josefsson.
and the licensing is genuinely chill, no drama: copying and distribution of this file, with or without modification, are permitted in any medium without royalty β provided the copyright notice and this notice are preserved π so go forth and share the knowledge, just keep the receipt π
and that's the page!! π this little doc came to you courtesy of libpskc, version 2.6.15 β love her, read her, use her responsibly πππΈ
π¦ where this page comes from
- arch rolling: oath-toolkit 2.6.15-1 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms