shishi_kdcrep_set_enc_part(3)

πŸ“¦
version 1.0.3 Β· 2 versions
  • 1.0.3 Β· debian bookworm, debian trixie, nixos 26.05, nixpkgs unstable, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking (latest)
  • 1.0.2 Β· ubuntu jammy
, in debian bookworm, debian trixie, nixos 26.05, nixpkgs unstable, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– 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 from shishi_init(). no random handles, babe πŸ™ˆ
  • Shishi_asn1 kdcrep β€” the KDC-REP you're adding the enc-part field to. this is the glow-up recipient ✨
  • int32_t etype β€” the encryption type used to encrypt enc-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 encrypted enc-part. the actual goods πŸ“¦
  • size_t buflen β€” size of that input array with the encrypted enc-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>.

go tell them, they wanna know, fr fr πŸ’Œ


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 πŸ’…πŸŽ€πŸ¦‹