pskc_set_key_algorithm(3)

πŸ’– pskc_set_key_algorithm(3) πŸ’–

okay so bestie, welcome to libpskc's very own pskc_set_key_algorithm(3) page β€” yes, that's the manual section 3, we're in C library territory now, stay with me 🫢


✨ NAME ✨

pskc_set_key_algorithm β€” literally just an API function, that's the whole vibe πŸ’…


🌸 SYNOPSIS 🌸

#include <pskc.h>

void pskc_set_key_algorithm(pskc_key_t * key, const char * keyalg);

no cap, that's the entire signature. two arguments, zero return value, maximum main character energy πŸ‘‘


πŸŽ€ ARGUMENTS πŸŽ€

  • pskc_key_t * key β€” a pskc_key_t handle, and you get it from pskc_get_keypackage(). that's the source, don't @ me πŸ¦‹
  • const char * keyalg β€” the key algorithm string you wanna set. that's it, that's the string πŸ”₯

πŸ’« DESCRIPTION πŸ’«

so what this does is set the PSKC KeyPackage Key Algorithm attribute value. fancy, right? ✨

and like, it may be a URN β€” for example:

"urn:ietf:params:xml:ns:keyprov:pskc:hotp"

copy that exactly, bestie, character for character, iykyk 🌈

⚠️ okay this part is important, pay attention: the pointer is stored in the container, not a copy of the data. so you absolutely must not deallocate the data before another call to this function, or before the last call to any function that uses the container. fr fr, this is the kind of thing that bites you later 😭

⭐ SINCE ⭐

2.2.0 β€” been iconic since day one, periodt πŸ’œ


πŸ› REPORTING BUGS πŸ›

found a bug? 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. slay, honestly πŸ’…


and that's the whole page, bestie 🧚 no notes, no crumbs left behind. this little gem comes to you from libpskc, version 2.6.15, and yes the date lives down there in the footer where footers belong β€” mwah πŸ’–πŸŒŸ

πŸ“¦ where this page comes from