pskc_set_key_data_timeinterval(3)

πŸ’… pskc_set_key_data_timeinterval β€” like, the libpskc glow-up you didn't know you needed

okay bestie, so this page lives in the libpskc manual (yes, that libpskc), and it's here to tell you about one tiny little setter function that's honestly kinda iconic. it's section 3, it's a C API, and it's about to set a time interval. slay. ✨


πŸŽ€ NAME πŸŽ€

pskc_set_key_data_timeinterval β€” literally an API function. that's it, that's the name. no cap. πŸ’–


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <pskc.h>

void pskc_set_key_data_timeinterval(pskc_key_t * key, uint32_t
timeinterval);

that's the whole vibe check right there β€” one void, two arguments, zero drama. 🫢


🌸 ARGUMENTS 🌸

  • pskc_key_t * key β€” a pskc_key_t handle, bestie. where do you get one? from pskc_get_keypackage(). that's the plug, iykyk. πŸ”‘
  • uint32_t timeinterval β€” the time interval value you wanna set. just hand it over, it's a uint32_t, it's fine. πŸ’œ

✨ DESCRIPTION ✨

okay so here's the tea: this function sets the PSKC KeyPackage Key Data TimeInterval value. that's the whole job. main character energy, one task, does it well. πŸ‘‘

and like, what even is that value? it carries the time interval for time-based OTP algorithms, and it's measured in seconds. the classic example β€” and honestly the example the manpage itself gives β€” is 30, which means a time interval of 30 seconds. so if you're out here doing TOTP stuff, this is the little number that keeps everything ticking on schedule. ⏰πŸ”₯


⭐ SINCE ⭐

2.2.0 β€” so it's been around a minute. vintage, but make it fresh. 🧚


πŸ’€ REPORTING BUGS πŸ’€

found a bug? not me being dramatic, but please report it. πŸ™ˆ

we love a feedback loop. it's giving community. 🌈


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.

like, free to copy, free to share, just keep the credit β€” periodt. πŸ’…


lowkey a reminder: this is a getter's counterpart β€” you're setting, not reading. don't @ me. 😭

and that's the page, bestie! brought to you by libpskc version 2.6.15 β€” mwah, go write some secure OTP code, ily πŸ“πŸ’–πŸŽ€

πŸ“¦ where this page comes from