---
name: "libressl-RSA_print"
section: "3"
platform: "linux"
package: "libressl"
version: "4.4.0-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/libressl-RSA_print"
---

# libressl-RSA\_print(3)

print cryptographic parameters

## NAME

**RSA\_print**, **RSA\_print\_fp**, **DSAparams\_print**, **DSAparams\_print\_fp**, **DSA\_print**, **DSA\_print\_fp**, **DHparams\_print**, **DHparams\_print\_fp** – print cryptographic parameters

## SYNOPSIS

Crypto Library (libcrypto, -lcrypto)

**#include \<openssl/rsa.h\>**

*int*\

**RSA\_print**(*BIO \*bp*, *RSA \*x*, *int offset*);

*int*\

**RSA\_print\_fp**(*FILE \*fp*, *RSA \*x*, *int offset*);

**#include \<openssl/dsa.h\>**

*int*\

**DSAparams\_print**(*BIO \*bp*, *DSA \*x*);

*int*\

**DSAparams\_print\_fp**(*FILE \*fp*, *DSA \*x*);

*int*\

**DSA\_print**(*BIO \*bp*, *DSA \*x*, *int offset*);

*int*\

**DSA\_print\_fp**(*FILE \*fp*, *DSA \*x*, *int offset*);

**#include \<openssl/dh.h\>**

*int*\

**DHparams\_print**(*BIO \*bp*, *DH \*x*);

*int*\

**DHparams\_print\_fp**(*FILE \*fp*, *DH \*x*);

## DESCRIPTION

A human-readable hexadecimal output of the components of the RSA key, DSA parameters or key or DH parameters is printed to *bp* or *fp*.

The output lines are indented by *offset* spaces.

## RETURN VALUES

These functions return 1 on success or 0 on error.

## SEE ALSO

BN\_bn2bin(3), DH\_get0\_pqg(3), DH\_new(3), DSA\_get0\_pqg(3), RSA\_get0\_key(3), RSA\_new(3)

## HISTORY

**RSA\_print**() and **DHparams\_print**() first appeared in SSLeay 0.5.1. **RSA\_print\_fp**(), **DSA\_print**(), and **DHparams\_print\_fp**() first appeared in SSLeay 0.6.0. **DSA\_print\_fp**() first appeared in SSLeay 0.8.0. All these functions have been available since OpenBSD 2.4.
