pskc_get_key_a...ll_checkdigits(3)
π pskc_get_key_a...ll_checkdigits(3) π
Okay so this is the libpskc manual page for pskc_get_key_algparm_chall_checkdigits, and it's lowkey a tiny function with a very specific job. Bestie, we're gonna read it together and not skip a single argument, value, or caveat. πβ¨
β¨ NAME β¨
pskc_get_key_algparm_chall_checkdigits β API function
π SYNOPSIS π
#include <pskc.h>
int pskc_get_key_algparm_chall_checkdigits(pskc_key_t * key, int *
present);
π«Ά ARGUMENTS π«Ά
pskc_key_t * keyβ apskc_key_thandle, frompskc_get_keypackage().int * presentβ output variable indicating whether data was provided or not.
πΈ DESCRIPTION πΈ
So you're getting the PSKC KeyPackage Key AlgorithmParameters ChallengeFormat CheckDigits value. That CheckDigits attribute is the one that says whether a device needs to check the appended Luhn check digit, as defined in [ISOIEC7812], that's contained in a challenge. π
This is only valid if the 'Encoding' attribute is set to 'DECIMAL'. Like, only then, bestie. A value of TRUE indicates that the device will check the appended Luhn check digit in a provided challenge. A value of FALSE indicates that the device will not check the appended Luhn check digit in the challenge. No cap. π
If present is non-NULL, it will be 0 if the field is not present or 1 if it was present. That's the little presence vibe check. β¨
π₯ RETURNS π₯
1 to indicate a CheckDigits value of true, or 0 to indicate false. Periodt. π
π REPORTING BUGS π
Report bugs 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.
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.
Okay that's the page! Footer sign-off: source libpskc, version 2.6.15 β and there's no date in the original footer line, so we're not making one up, periodt. π π¦
π¦ 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