RSA_PRINT(3ossl)
π RSA_PRINT β bestie edition (3ossl, OpenSSL)
okay so. gather round. this is RSA_PRINT(3ossl), and it's the page about printing cryptographic parameters, but like... the β¨oldβ¨ way. it's giving deprecated-but-still-documented, iykyk.
πΈ NAME πΈ
RSA_print, RSA_print_fp, DSAparams_print, DSAparams_print_fp, DSA_print, DSA_print_fp, DHparams_print, DHparams_print_fp β literally just print cryptographic parameters π
β¨ SYNOPSIS β¨
first up, the RSA girlies:
#include <openssl/rsa.h>
bestie alert!! the functions below have been deprecated since OpenSSL 3.0, and you can hide them entirely by definingOPENSSL_API_COMPATwith a suitable version value β go readopenssl_user_macros(7)for the deets π
int RSA_print(BIO *bp, const RSA *x, int offset);
int RSA_print_fp(FILE *fp, const RSA *x, int offset);
then the DSA section, new include, who dis:
#include <openssl/dsa.h>
same warning, no cap these ones are also deprecated since OpenSSL 3.0, hideable the same way withOPENSSL_API_COMPATβ again,openssl_user_macros(7)is your girl π«Ά
int DSAparams_print(BIO *bp, const DSA *x);
int DSAparams_print_fp(FILE *fp, const DSA *x);
int DSA_print(BIO *bp, const DSA *x, int offset);
int DSA_print_fp(FILE *fp, const DSA *x, int offset);
and finally the DH corner of the group chat:
#include <openssl/dh.h>
yes, these too deprecated since OpenSSL 3.0, and can be hidden entirely by definingOPENSSL_API_COMPATwith a suitable version value, seeopenssl_user_macros(7)π
int DHparams_print(BIO *bp, DH *x);
int DHparams_print_fp(FILE *fp, const DH *x);
π¦ DESCRIPTION π¦
okay so the headline here: all of the functions described on this page are deprecated. like, every single one. the whole squad. π
applications should instead use EVP_PKEY_print_params(3) and EVP_PKEY_print_private(3). that's the glow-up, periodt.
so what did the old ones even do? they printed a human-readable hexadecimal output of the components of the RSA key, or the DSA parameters, or the DSA key, or the DH parameters β and it goes out to bp or fp π«
and the output lines? they get indented by offset spaces. cute little indent, very demure, very mindful.
π RETURN VALUES π
DSAparams_print(),DSAparams_print_fp(),DSA_print(), andDSA_print_fp()β return 1 for success, and 0 or a negative value for failure π«DHparams_print()andDHparams_print_fp()β return 1 on success, 0 on error π₯²
π SEE ALSO π
π HISTORY π
all of these functions were deprecated in OpenSSL 3.0. that's the whole history section. short, iconic, devastating π
π COPYRIGHT π
Copyright 2000-2020 The OpenSSL Project Authors. All Rights Reserved.
Licensed under the Apache License 2.0 (the "License"). You may not use this file except in compliance with the License. You can obtain a copy in the file LICENSE in the source distribution or at <https://www.openssl.org/source/license.html>.
and that's the whole page, bestie β this one's from OpenSSL 3.5.9, dated 2026-09-29, and it lives in the 3ossl manual section. now go use EVP_PKEY_print_params(3) like the main character you are β¨π¦π
π¦ where this page comes from
- fedora 43: openssl-devel 1:3.5.9-1.fc43 Β· Apache-2.0
- fedora 43: openssl-devel 1:3.5.9-1.fc43 Β· Apache-2.0
- fedora 44: openssl-devel 1:3.5.9-1.fc44 Β· Apache-2.0
- fedora 44: openssl-devel 1:3.5.9-1.fc44 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms