pskc_set_cryptomodule_id(3)
π pskc_set_cryptomodule_id
okay bestie, so this is a page from the libpskc manual, and the star of the show is pskc_set_cryptomodule_id(3) β yes it's a long name, no we're not shortening it, it's iconic like that π
β¨ NAME β¨
pskc_set_cryptomodule_id β literally just an API function, that's the whole job π«Ά
β¨ SYNOPSIS β¨
#include <pskc.h>
void pskc_set_cryptomodule_id(pskc_key_t * key, const char * cid);
β¨ ARGUMENTS β¨
pskc_key_t * keyβ apskc_key_thandle, the one you get frompskc_get_keypackage(). that's your main character right there πconst char * cidβ the cryptomodule id you wanna set. yes queen, hand it over π
πΈ DESCRIPTION πΈ
so what this does: it sets the PSKC KeyPackage CryptoModule Id value. lowkey important.
This element carries a unique identifier for the CryptoModule, and it's implementation specific β like, each implementation does its own thing with it, iykyk. Because of that, it helps you identify a specific CryptoModule that the key is being provisioned to, or was provisioned to. it's giving "return address label for your key" energy π
β οΈ okay this part is the big one, don't skip it: the pointer is stored in the container, not a copy of the data. so no cap β you must not deallocate that data before another call to this function, or before the last call to any function that uses the container. otherwise it's a whole mess π
β SINCE β
2.2.0 β she's been around a minute π¦
π REPORTING BUGS π
found a bug? don't suffer in silence, 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. periodt π
and that's the whole vibe check bestie β this page is from libpskc, version 2.6.15 π tysm for reading, go forth and set those cryptomodule ids responsibly β¨π
π¦ 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