shishi_priv_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_priv_set_enc_part(3) ✨

okay bestie, welcome to the shishi manual, section 3 (that's the library-functions section, iykyk). this one's about shishi_priv_set_enc_part, and no cap, it's a whole vibe. πŸŽ€


πŸ’– NAME πŸ’–

shishi_priv_set_enc_part β€” it's an API function, babes. that's the whole name. short, sweet, iconic. πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <shishi.h>

int shishi_priv_set_enc_part(Shishi * handle, Shishi_asn1 priv, int32_t
etype, const char * encpart, size_t encpartlen);

look at her. five arguments. she's booked and busy. ✨


🌸 ARGUMENTS 🌸

  • Shishi * handle β€” the shishi handle, and like, you gotta have one β€” it's allocated by shishi_init(). no handle, no party. 🫢
  • Shishi_asn1 priv β€” the priv thing, as allocated by shishi_priv(). that's your girl right there.
  • int32_t etype β€” input encryption type, and you're storing it in PRIV. literally just the etype going in.
  • const char * encpart β€” the input encrypted data you're storing in PRIV. the actual goods. πŸ”₯
  • size_t encpartlen β€” size of that input encrypted data you're storing in PRIV. gotta know how big she is.

🌈 DESCRIPTION 🌈

so what we're doing here is storing encrypted data in PRIV. simple. clean. main character energy.

where does that encrypted data usually come from, you ask? πŸ‘€ usually you got it by calling shishi_encrypt() on some application-specific data, using the key from the ticket that's being used. that's the pipeline.

but wait β€” if you're trying to save time (and who isn't, bestie), you might wanna use shishi_priv_build() instead. that one encrypts the data and calls this function, all in one step. one step!! it's giving efficiency. ⭐

πŸ’€ RETURN VALUE πŸ’€

returns SHISHI_OK iff successful. that's it. that's the whole deal. if it's not SHISHI_OK, something's up and it's not your girl's fault. 😭


πŸ™ˆ REPORTING BUGS πŸ™ˆ

found a bug? not the cute kind? report it to <bug-shishi@gnu.org>.

go off, tell them everything. they wanna know. 🫢


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. (that's the legal tea, and we respect it. πŸ’œ)


🧚 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. go read it, it's a whole thing. πŸ“šβœ¨


and that's the page, bestie!! πŸŽ€ this was shishi version 1.0.3, hanging out in section 3 of the manual as shishi_priv_set_enc_part(3). thanks for reading, ily, go encrypt something responsibly. πŸ’–πŸ¦‹πŸŒΈ