pskc_get_key_data_counter(3)
π pskc_get_key_data_counter β the libpskc glow-up
okay so bestie, this is a function from libpskc (yes, that libpskc, version 2.6.15, she's iconic) and her whole job is grabbing one tiny little number out of a key package. that's it. that's the vibe. let's get into it π
β¨ NAME β¨
pskc_get_key_data_counter β literally just "API function", that's what the manpage says, that's what we're going with π
πΈ SYNOPSIS πΈ
#include <pskc.h>
uint64_t pskc_get_key_data_counter(pskc_key_t * key, int * present);
look at her. so clean. so uint64_t. slay π₯
π¦ ARGUMENTS π¦
pskc_key_t * keyβ apskc_key_thandle, and you get it frompskc_get_keypackage(). that's your ticket in, no cap ποΈint * presentβ an output variable that tells you whether data was provided or not. it's the "did she actually show up" indicator, iykyk
π DESCRIPTION π
Get the PSKC KeyPackage Key Data Counter value β¨. This element contains the event counter for event-based OTP algorithms β so like, it's counting events for the OTP girlies π§
and here's the important bit, pay attention bestie: if present is non-NULL, it will be 0 if the Counter field is not present, or 1 if it was present. that's it. 0 or 1. she's a yes/no queen π
β RETURNS β
an integer holding the content. uint64_t in the synopsis, "an integer" in the returns β the manpage said what it said, we're not editing her π«Ά
π REPORTING BUGS π
found a bug? don't suffer in silence, tell the people π Report bugs 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 π
ngl this one's short and sweet β if you're passingpresent, always give her a realintto point at, mmkay? π
that's the whole page, bestie β pskc_get_key_data_counter(3) from libpskc 2.6.15, brought to you by the libpskc gang. go forth and count your events πβ¨π
π¦ 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