pskc_set_key_policy_pinminlength(3)
π pskc_set_key_policy_pinminlength β the libpskc glow-up you didn't know you needed
Okay so real talk, bestie, this is a page from libpskc, and it's about setting one tiny but iconic little policy knob. Buckle up π
β¨ NAME β¨
pskc_set_key_policy_pinminlength β it's an API function, and it's here to set your PIN minimum length vibe. No cap.
πΈ SYNOPSIS πΈ
#include <pskc.h>
void pskc_set_key_policy_pinminlength(pskc_key_t * key, uint32_t
minlength);
π¦ ARGUMENTS π¦
pskc_key_t * keyβ apskc_key_thandle, and you get it frompskc_get_keypackage(). That's the whole origin story. π«Άuint32_t minlengthβ the length you wanna set. Literally just the number. Slay.
π DESCRIPTION π
So this sets the PSKC KeyPackage Key Policy PINPolicy MinLength value. Big name, small job, main character energy honestly.
This attribute is the minimum length of a PIN that can be set to protect the associated key. And listen β it MUST NOT be possible to set a PIN shorter than this value. That's not a suggestion, that's the rule, periodt. π«
Now here's the cute part where the meaning shifts depending on the format:
- If the
'PINFormat'attribute is set to'DECIMAL','HEXADECIMAL', or'ALPHANUMERIC', then this value indicates the number of digits/characters. π’ - If the
'PINFormat'attribute is set to'BASE64'or'BINARY', then this value indicates the number of bytes of the unencoded value. π (yes, bytes, not characters β different beast entirely, iykyk)
β SINCE β
2.2.0 β she's been around, she's established, she's iconic. π
π REPORTING BUGS π
Found something cursed? 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/
Go off, honestly, the maintainers wanna hear it.
π 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. π«‘ Free as in freedom, bestie.
Fr fr though β don't sleep on that MinLength value. If it's set, a shorter PIN literally must not be allowed. That's the whole point of her. π
<div align="center">
π§ That's the whole page, bestie β brought to you by libpskc version 2.6.15 of the pskc_set_key_policy_pinminlength(3) manual. Go set some PIN policies, mwah πβ¨
</div>
π¦ 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