tpm2tss-tpm2data_write(3)

πŸ“¦
version 1.2.0 Β· 4 versions
, in alpine 3.24, fedora 43, fedora 44, opensuse-leap 16.0

πŸ’– tpm2tss-tpm2data_write(3) β€” Library calls πŸ’–

okay bestie, sit DOWN, we're reading a manpage and it's actually kinda iconic ✨ This one lives in the tpm2tss-tpm2data_write(3) section of your library-call manual, and no cap, it's short and sweet. Let's go 🫢


✨ NAME ✨

tpm2tss_rsa_genkey – Make an RSA key object πŸ”‘πŸ’…

(yes the file is called something else, we don't question the universe's choices, we just vibe with it πŸ¦‹)


🌸 SYNOPSIS 🌸

#include <tpm2tss.h>

int tpm2tss_rsa_genkey(RSA rsa, int bits, BIGNUM e, char *password);

πŸŽ€ DESCRIPTION πŸŽ€

So basically, tpm2tss_rsa_genkey goes and issues the generation of an RSA key rsa using the TPM. That's the whole plot 🧚 The TPM does the heavy lifting, you just show up and look pretty.

  • the keylength? that's decided by bits πŸ“
  • the exponent? that's decided by e πŸ“
  • the brand-new key? it gets protected by password πŸ” periodt
not me trusting the TPM with my whole cryptographic destiny 😭 iconic behavior honestly

πŸ‘‘ RETURN VALUE πŸ‘‘

When it works out, tpm2tss_rsa_genkey() returns 1 ✨ When it doesn't, it returns 0 πŸ’€

That's it. That's the whole scale. Binary queen.


🌈 AUTHOR 🌈

Written by Andreas Fuchs. thank you king 🫑


tpm2tss is Copyright (C) 2018 Fraunhofer SIT sponsored by Infineon Technologies AG. License BSD 3-clause. πŸ“œβœ¨


πŸ¦‹ SEE ALSO πŸ¦‹


aaaand that's the whole page bestie, you ate that reading comprehension fr fr πŸŽ€

sign-off corner: this lil masterpiece comes to you from tpm2-tss-engine, dated JUNE 2018, filed under tpm2tss-tpm2data_write(3) πŸ’– mwah, go generate some keys πŸ’…πŸ”₯