SHISHI_AUTHENTICATOR_ADD_RANDOM_SUBKEY(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_authenticator_add_random_subkey β€” from the shishi manual, section 3 πŸŽ€

okay bestie, pull up a chair, we're getting into the shishi library today and honestly? it's giving cryptographic glow-up ✨


🌸 NAME 🌸

shishi_authenticator_add_random_subkey β€” lowkey the API function that makes a random subkey appear out of thin air and tucks it into your authenticator πŸ’…


✨ SYNOPSIS ✨

#include <shishi.h>

int shishi_authenticator_add_random_subkey(Shishi * handle, Shishi_asn1
authenticator);

like yes, that's the whole thing, two args, one int coming back at you 🫢


πŸ¦‹ ARGUMENTS πŸ¦‹

  • Shishi * handle β€” the shishi handle, and no you can't just make one up, it's gotta be allocated by shishi_init(). that's the vibe check it has to pass πŸ’œ
  • Shishi_asn1 authenticator β€” the authenticator you're working with, and it must be allocated by shishi_authenticator(). no random structs, bestie πŸ™ˆ

πŸŽ€ DESCRIPTION πŸŽ€

so here's the tea β˜• β€” this function generates a random subkey, using the default encryption type from configuration, and then it stores that subkey right inside the authenticator. periodt. that's the whole job. it's iconic, it's simple, it slays πŸ”₯


⭐ RETURN VALUE ⭐

returns SHISHI_OK iff successful. iykyk β€” anything else means it did not go off πŸ’€


πŸ’€ REPORTING BUGS πŸ’€

found a bug? not the main character moment anyone wants, but okay, report it 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. fr fr, 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 read it, bestie, it's giving lore πŸ“šπŸ’–


and that's the page!! this is from shishi 1.0.3, section 3 of the shishi manual β€” mwah, bye, drink water and read your man pages πŸ’…πŸŒΈ