pskc_set_key_algparm_resp_length(3)

✨ pskc_set_key_algparm_resp_length πŸ’…

okay bestie, buckle up β€” this one lives in the libpskc manual, section 3, and it's literally the glow-up your KeyPackage's response length has been waiting for πŸŽ€


🌸 NAME 🌸

pskc_set_key_algparm_resp_length β€” it's an API function, and it's giving "tiny but essential" energy fr fr ✨


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <pskc.h>

void pskc_set_key_algparm_resp_length(pskc_key_t * key, uint32_t
length);

like, yes, that's the whole vibe β€” include the header, call the function, done 🫢


πŸ’– ARGUMENTS πŸ’–

  • pskc_key_t * key β€” a pskc_key_t handle, which you get from pskc_get_keypackage(). that's your main character right there πŸ‘‘
  • uint32_t length β€” the length of the response you're setting. yes, that's the whole point of the function, iconic πŸ’…

πŸ”₯ DESCRIPTION πŸ”₯

so what this actually does: it sets the PSKC KeyPackage Key AlgorithmParameters ResponseFormat Length value. say that five times fast, i dare you 😭

This attribute defines the length of the response generated by the device and MUST be included. not "should", not "maybe", not "if you feel like it" β€” MUST. capital letters, no cap πŸ’€

and here's the part where the encoding matters, so pay attention bestie:

  • If the 'Encoding' attribute is set to 'DECIMAL', 'HEXADECIMAL', or ALPHANUMERIC, this value indicates the number of digits/characters. πŸ”’
  • If the 'Encoding' attribute is set to 'BASE64' or 'BINARY', this value indicates the number of bytes of the unencoded value. 🧚

that's it, that's the whole rule. bytes vs. digits/characters depending on the encoding β€” lowkey important, highkey slay ⭐


⭐ SINCE ⭐

2.2.0 β€” she's been around, she's seasoned, she's a legend 🌈


πŸ™ˆ REPORTING BUGS πŸ™ˆ

found a bug? don't 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. 🫢 (yes, you can share it, just keep the receipts, periodt)


and that's the page!! this little beauty is from libpskc, version 2.6.15, section 3 of the manual β€” go forth and set those response lengths, bestie πŸ¦‹πŸ’œ

πŸ“¦ where this page comes from