pskc_get_key_algparm_chall_min(3)
π pskc_get_key_algparm_chall_min(3) β like, the libpskc one, bestie
okay so real talk, this is a page straight out of libpskc (section 3 of the manual, iykyk) and it's about one tiny but lowkey important little getter. come on, let's get into it π«Ά
β¨ NAME β¨
pskc_get_key_algparm_chall_min β it's an API function, bestie, that's the whole vibe π«
β¨ SYNOPSIS β¨
#include <pskc.h>
uint32_t pskc_get_key_algparm_chall_min(pskc_key_t * key, int *
present);
β¨ ARGUMENTS β¨
pskc_key_t * keyβ yourpskc_key_thandle, the one you scored 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. like a little vibe check for presence πΈ
β¨ DESCRIPTION β¨
so what does it do? it gets the PSKC KeyPackage Key AlgorithmParameters ChallengeFormat Min value. yes that's a mouthful, no we're not shortening it, it's iconic π
this attribute defines the minimum size of the challenge accepted by the device for CR mode and β listen β it MUST be included. not "should", not "if you feel like it". MUST. periodt π₯
and here's the nuance, because of course there's nuance:
- if the
'Encoding'attribute is set to'DECIMAL','HEXADECIMAL', or'ALPHANUMERIC', this value indicates the minimum number of digits/characters π’ - if the
'Encoding'attribute is set to'BASE64'or'BINARY', this value indicates the minimum number of bytes of the unencoded value π§
also, about that present pointer: if present is non-NULL, it will be 0 if the field is not present, or 1 if it was present. simple as that, no cap β¨
β¨ RETURNS β¨
an integer holding the content. that's it, that's the return π
β¨ REPORTING BUGS β¨
found a bug? don't suffer in silence, tell the people π 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. slay, honestly π
ngl bestie, if you're reading this page you're probably deep in some PSKC keypackage situation. drink some water. you're doing amazing π
that's a wrap! this gorgeous little page came to you from libpskc, version 2.6.15, dated 2.6.15 in the footer, and yes β pskc_get_key_algparm_chall_min(3) all day, every day π¦β
π¦ 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