shishi_random_to_key(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_random_to_key(3) πŸ’–

okay bestie, welcome to the shishi manual, page shishi_random_to_key(3). this is an API function and it's lowkey iconic. sit down, grab a boba, we're doing this. πŸ§‹βœ¨


🌸 NAME 🌸

shishi_random_to_key β€” it's an API function, bestie. that's the whole name. short. sweet. main character. πŸ’…


✨ SYNOPSIS ✨

#include <shishi.h>

int shishi_random_to_key(Shishi * handle, int32_t keytype, const char *
rnd, size_t rndlen, Shishi_key * outkey);

like. look at her. five arguments. slay. 🫢


πŸŽ€ ARGUMENTS πŸŽ€

  • Shishi * handle β€” the shishi handle, and you get it from shishi_init(). that's the vibe, that's the source, that's where it comes from fr fr.
  • int32_t keytype β€” the cryptographic encryption type. if you wanna know your options, go look at Shishi_etype. iykyk. πŸ”₯
  • const char * rnd β€” an input array stuffed with random data. chaotic energy, but make it on purpose.
  • size_t rndlen β€” the length of that input array of random data. yes bestie, we measure. we always measure. πŸ“
  • Shishi_key * outkey β€” an allocated key handle that is gonna contain the new key. she's empty rn, she's about to be ✨fulfilled✨.

πŸ¦‹ DESCRIPTION πŸ¦‹

so the way this works: it derives a key from random data, for the key type you specified, and then it sets the type and the value in the given key to the computed values.

that's it. that's the whole thing. derive β†’ set type β†’ set value. the key you passed in comes out transformed. no cap. πŸ’œ


⭐ RETURN VALUE ⭐

Returns SHISHI_OK iff successful. and only iff. conditional queen. πŸ‘‘


πŸ™ˆ REPORTING BUGS πŸ™ˆ

found a bug? not me gatekeeping β€” go tell someone! report bugs to <bug-shishi@gnu.org>. πŸ“§


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.

(translation: take it, share it, 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. go off, read the whole thing, it's giving thorough. πŸ“šβœ¨


k bye bestie, this was shishi manual, version 1.0.3, and that's the whole page. mwah. πŸ’‹πŸ¦‹πŸ’