shishi_3des(3)
π shishi_3des β bestie, we're doing 3DES today π
okay so this is shishi_3des(3), a page straight out of the shishi manual (vibes: crypto, but make it C). It's an API function, so grab a strawberry drink and let's go π
β¨ NAME β¨
shishi_3des β it's an API function, bestie. That's the whole name. Short, iconic, no notes π
πΈ SYNOPSIS πΈ
#include <shishi.h>
int shishi_3des(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 her. seven arguments and she's thriving π«Ά
π ARGUMENTS π
Shishi * handleβ the shishi handle, as allocated byshishi_init(). yes, you have to have one. no, you can't skip it. it's the whole personality of the call β¨int decryptpβ0means we're encrypting, non-0 means we're decrypting. literally a boolean with main character energy.const char key[8]β input character array holding the key you're gonna use. that's 8 chars of key, fr fr πconst char iv[8]β input character array with the initialization vector you want, orNULLif you're feeling unbothered. your call π¦char * ivout[8]β output character array that gets the updated initialization vector, orNULLif you don't want it. the after-glow IV, if you will πconst char * inβ input character array of the data to encrypt/decrypt. the actual content. the moment.size_t inlenβ length of that input character array. count your blessings, count your bytes πchar ** outβ a newly allocated character array with the encrypted/decrypted data. it's fresh, it's yours, and you have to clean up after it (more on that below, don't panic) π
π« DESCRIPTION π«
Encrypt or decrypt data β whichever one you want, and it depends on decryptp β using 3DES in CBC mode. that's triple DES, chained block cipher mode, the classic. she ate π₯
bestie listen: the out buffer must be deallocated by the caller. it is newly allocated memory and it is your responsibility. not the function's. yours. free it or it haunts you forever π»
β RETURN VALUE β
Returns SHISHI_OK iff successful. that's the good one. if you see SHISHI_OK you may celebrate π
π REPORTING BUGS π
found a bug? first of all, relatable. 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/
they're nice, they want to hear from you, go off π«Ά
π 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. (aka: go forth, redistribute, 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, info pages are lowkey underrated πβ¨
that's the whole page, bestie. no cap, you now know shishi_3des better than most people know their own passwords π
shishi 1.0.3 Β· shishi_3des(3) β mwah, 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