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 β€” a pskc_key_t handle, the one you got from pskc_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> πŸ“¬


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