pskc_get_key_algparm_chall_max(3)
π NAME π
pskc_get_key_algparm_chall_max β okay so this is the API function bestie, it literally goes and grabs the ChallengeFormat Max value for you π
β¨ SYNOPSIS β¨
#include <pskc.h>
uint32_t pskc_get_key_algparm_chall_max(pskc_key_t * key, int *
present);
π«Ά ARGUMENTS π«Ά
pskc_key_t * keyβ apskc_key_thandle, the one you got frompskc_get_keypackage(). That's your main character right there πint * presentβ an output variable that tells you whether the data was actually provided or not. It's giving "receipts" energy π§Ύ
πΈ DESCRIPTION πΈ
So what this does is get the PSKC KeyPackage Key AlgorithmParameters ChallengeFormat Max value. Say that five times fast, I dare you π
Here's the tea tho, this attribute defines the maximum size of the challenge accepted by the device for CR mode β and it MUST be included. No cap, it's required π
And depending on what the 'Encoding' attribute is set to, this value means different things, so listen up:
- If
'Encoding'is set to'DECIMAL','HEXADECIMAL', or'ALPHANUMERIC'β this value tells you the maximum number of digits/characters π’ - If
'Encoding'is set to'BASE64'or'BINARY'β this value instead tells you the maximum number of bytes of the unencoded value π§¬
Also, if present is non-NULL, it'll be 0 if the field is not present, or 1 if it was present. Simple as that, slay π
β RETURNS β
An integer holding the content. That's it, that's the whole vibe π
π₯ REPORTING BUGS π₯
Found a bug? Don't just 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.
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. Iconic of them honestly π
and that's the whole page babes β¨ this one came to you straight from the libpskc manual, version 2.6.15 β go forth and read your challenge maxes 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