shishi_n_fold(3)
π shishi_n_fold(3) π
okay bestie, welcome to the shishi manual, part shishi_n_fold(3) β yes the manual name is literally shishi, we're in the shishi section of the manual, keep up π
β¨ NAME β¨
shishi_n_fold β it's an API function, babes. that's the whole name section. slay.
πΈ SYNOPSIS πΈ
#include <shishi.h>
int shishi_n_fold(Shishi * handle, const char * in, size_t inlen, char *
out, size_t outlen);
like. look at her. five args, one int, main character energy fr fr π
π¦ ARGUMENTS π¦
Shishi * handleβ the shishi handle, the one you got fromshishi_init(). she's the whole foundation, no cap.const char * inβ input array holding the data to decrypt. yes, decrypt. that's what it says.size_t inlenβ the size of that input array, aka "M". πchar * outβ output array where the decrypted data goes. she's the destination, the moment.size_t outlenβ the size of the output array, aka "N". and N is a fixed length, foreshadowing β¨
π DESCRIPTION π
so the vibe is: you take data and you fold it into a fixed-length output array. the whole intent (and this is the cute part) is to give each input bit approximately equal weight in determining the value of each output bit. democracy for bits, honestly π«Ά
the algorithm comes from "A Better Key Schedule For DES-like Ciphers" by Uri Blumenthal and Steven M. Bellovin, over at:
http://www.research.att.com/~smb/papers/ides.pdf
β οΈ but bestie, lowkey important: the sample vectors provided by that paper are incorrect. not us, them. the paper's wrong, the function's fine. do NOT come for us. π
β RETURN VALUE β
returns SHISHI_OK iff successful. that's it. that's the whole thing. iff. iconic. π
π REPORTING BUGS π
found a bug? don't suffer in silence, tell the people:
- report bugs 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/
π 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 like, go off, just keep the receipts π)
π SEE ALSO π
the full documentation for shishi lives in a Texinfo manual β very demure, very thorough. if the info and shishi programs are properly installed at your site, then:
info shishi
should give you access to the complete manual. periodt. π§
and that's the whole page, bestie!! this was shishi version 1.0.3, page shishi_n_fold(3), mwah π
β¨ thanks for reading, go fold some bits 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