---
name: "tpm2tss_rsa_makekey"
section: "3"
platform: "linux"
package: "tpm2-tss-engine"
version: "1.2.0-2"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/tpm2tss_rsa_makekey"
---

# tpm2tss\_rsa\_makekey(3)

Make an RSA key object

## NAME

**tpm2tss\_rsa\_makekey** – Make an RSA key object

## SYNOPSIS

**#include \<tpm2tss.h\>**

\*\*EVP\_PKEY \* tpm2tss\_rsa\_makekey(TPM2\_DATA \*tpm2Data);\*\*

## DESCRIPTION

**tpm2tss\_rsa\_makekey** takes a TPM2\_DATA object as `tpm2Data` and creates a corresponding OpenSSL EVP\_PKEY object.

## RETURN VALUE

Upon successful completion **tpm2tss\_rsa\_makekey**() returns the created EVP\_PKEY object’s pointer. Otherwise NULL.

### AUTHOR

Written by Andreas Fuchs.

### COPYRIGHT

tpm2tss is Copyright (C) 2018 Fraunhofer SIT sponsored by Infineon Technologies AG. License BSD 3-clause.

### SEE ALSO

[openssl(1)](/openssl/1.md)
