shishi_des(3)
β¨ shishi_des(3) β¨
okay bestie, welcome to the shishi manual, section 3 π this one's about shishi_des β an API function, and yes it's giving cryptography main character energy π
πΈ NAME πΈ
shishi_des β it's an API function, bestie. that's the whole name. short, sweet, iconic. π
π¦ SYNOPSIS π¦
#include <shishi.h>
int shishi_des(Shishi * handle, int decryptp, const char key[8], const
char iv[8], char * ivout[8], const char * in, size_t inlen, char **
out);
like. look at that signature. so many args. so much power. πβ¨
π ARGUMENTS π
Shishi * handleβ your shishi handle, the one you got fromshishi_init(). it's the whole vibe, you need it.int decryptpβ the direction switch π.0means we're encrypting, non-0means we're decrypting. that's it, that's the toggle.const char key[8]β input character array holding the key you wanna use. 8 bytes of pure secret, no cap πconst char iv[8]β input character array with the initialization vector to use, orNULLif you don't have one. your choice, bestie.char * ivout[8]β output character array where the updated initialization vector lands, orNULLif you don't care. literally optional.const char * inβ input character array of the data you want to encrypt/decrypt. the actual tea βsize_t inlenβ length of that input character array. gotta tell it how much, fr fr.char ** outβ newly allocated character array with the encrypted/decrypted data. newly allocated, so yes, you're responsible for it. π
π DESCRIPTION π
so what does it DO. okay so: it encrypts or decrypts data (whichever one you asked for with decryptp) using DES in CBC mode. that's the whole thing. π«
and listen β the out buffer must be deallocated by the caller. that means YOU. don't leave it hanging, that's a memory leak and we don't do that here. π«Ά
β RETURN VALUE β
it returns SHISHI_OK iff successful. that's the only good outcome, bestie. anything else? not it. π
π REPORTING BUGS π
found a bug? (gasp π) report it to <bug-shishi@gnu.org>. like actually email them, they wanna know.
GNU Shishi home page: http://www.gnu.org/software/shishi/
general help using GNU software: http://www.gnu.org/gethelp/
π 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 go forth, share the love, just keep the receipts π
π§ 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. iykyk πβ¨
and that's the whole page, bestie!! this was shishi version 1.0.3, and the page is shishi_des(3) β dated like that, forever iconic. slay, stay encrypted, deallocate your buffers π
πΈπ¦
π¦ 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