shishi_priv_set_enc_part(3)
β¨ 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 byshishi_init(). no handle, no party. π«ΆShishi_asn1 privβ theprivthing, as allocated byshishi_priv(). that's your girl right there.int32_t etypeβ input encryption type, and you're storing it inPRIV. literally just the etype going in.const char * encpartβ the input encrypted data you're storing inPRIV. the actual goods. π₯size_t encpartlenβ size of that input encrypted data you're storing inPRIV. 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>.
- GNU Shishi home page:
http://www.gnu.org/software/shishi/ - General help using GNU software:
http://www.gnu.org/gethelp/
go off, tell them everything. they wanna know. π«Ά
π 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. (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. ππ¦πΈ
π¦ 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