.\" Automatically generated by Pandoc 3.5 .\" .TH "tpm2tss\-tpm2data_write" "3" "JUNE 2018" "tpm2\-tss\-engine" "Library calls" .SH NAME \f[B]tpm2tss_rsa_genkey\f[R] \[en] Make an RSA key object .SH SYNOPSIS \f[B]#include \f[R] .PP **int tpm2tss_rsa_genkey(RSA \f[I]rsa, int bits, BIGNUM \f[R]e, char *password);** .SH DESCRIPTION \f[B]tpm2tss_rsa_genkey\f[R] issues the generation of an RSA key \f[CR]rsa\f[R] using the TPM. The keylength is determined by \f[CR]bits\f[R]. The exponent is determined by \f[CR]e\f[R]. The new key will be protected by \f[CR]password\f[R]. .SH RETURN VALUE Upon successful completion \f[B]tpm2tss_rsa_genkey\f[R]() returns 1. Otherwise 0. .SS AUTHOR Written by Andreas Fuchs. .SS COPYRIGHT tpm2tss is Copyright (C) 2018 Fraunhofer SIT sponsored by Infineon Technologies AG. License BSD 3\-clause. .SS SEE ALSO openssl(1), tpm2tss_genkey(1)