shishi_kdcrep_set_enc_part(3)
π shishi_kdcrep_set_enc_part π
okay bestie, so this one lives in the shishi manual, section 3, and it's literally the little function that tucks an encrypted enc-part field into a KDC-REP π
β¨ NAME β¨
shishi_kdcrep_set_enc_part β an API function, and yes that's the whole name, no notes π
πΈ SYNOPSIS πΈ
#include <shishi.h>
int shishi_kdcrep_set_enc_part(Shishi * handle, Shishi_asn1 kdcrep,
int32_t etype, uint32_t kvno, const char * buf, size_t buflen);
like look at her. six arguments. main character energy fr fr π
π¦ ARGUMENTS π¦
Shishi * handleβ the shishi handle, and it has to be the one you got fromshishi_init(). no random handles, babe πShishi_asn1 kdcrepβ the KDC-REP you're adding theenc-partfield to. this is the glow-up recipient β¨int32_t etypeβ the encryption type used to encryptenc-part. which algorithm is doing the work π§uint32_t kvnoβ the key version number. gotta know which key we're on πconst char * bufβ input array holding the encryptedenc-part. the actual goods π¦size_t buflenβ size of that input array with the encryptedenc-part. don't lie about the length, she will notice π
π DESCRIPTION π
So basically: this sets the encrypted enc-part field in the KDC-REP. that's it, that's the job π«Ά
The encrypted data is usually created by calling shishi_encrypt() on the DER encoded enc-part. so that's the usual pipeline, iykyk π
But listen β if you're trying to save time, you may want to use shishi_kdcrep_add_enc_part() instead. that one calculates the encrypted data and calls this function, all in one step. two birds, one slay π
β¨
β RETURN VALUE β
Returns SHISHI_OK iff successful. and only iff. no soft launches here, it's giving all-or-nothing π€
π REPORTING BUGS π
Found a bug? (not me manifesting it π) Report bugs to <bug-shishi@gnu.org>.
- GNU Shishi home page: http://www.gnu.org/software/shishi/
- General help using GNU software: http://www.gnu.org/gethelp/
go tell them, they wanna know, fr fr π
π COPYRIGHT π
Copyright Β© 2002-2022 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. so like, keep the receipts, bestie π§Ύπ
π SEE ALSO π
The full documentation for shishi is maintained as a Texinfo manual. If the info and shishi programs are properly installed at your site, the command
info shishi
should give you access to the complete manual. the whole lore drop πβ¨
and that's the page!! this was shishi version 1.0.3, from the shishi_kdcrep_set_enc_part(3) corner of the manual β mwah, bye bestie, go encrypt something iconic π
ππ¦
π¦ where this page comes from
- debian bookworm: shishi-doc 1.0.3-1 Β· GPL-3.0-or-later
- debian trixie: shishi-doc 1.0.3-5 Β· GPL-3.0-or-later
- nixos 26.05: shishi 1.0.3
- nixpkgs unstable: shishi 1.0.3
- ubuntu noble: shishi-doc 1.0.3-2.1build2 Β· GPL-3.0-or-later
- ubuntu questing: shishi-doc 1.0.3-5
- ubuntu resolute: shishi-doc 1.0.3-5build1 Β· GPL-3.0-or-later
- ubuntu stonking: shishi-doc 1.0.3-7 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms