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β apskc_key_thandle, and you get it frompskc_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> π
- 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 π
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
- 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