RSA_PRINT(3ossl)
π RSA_PRINT(3ossl) β bestie's guide to printing crypto params
okay so this is page RSA_PRINT(3ossl) from the OpenSSL manuals, and before you get comfy: literally everything on this page is deprecated. not me delivering bad news in the first paragraph π but you gotta know.
β¨ NAME β¨
RSA_print, RSA_print_fp, DSAparams_print, DSAparams_print_fp, DSA_print, DSA_print_fp, DHparams_print, DHparams_print_fp β the whole girl gang that prints cryptographic parameters.
π SYNOPSIS π
#include <openssl/rsa.h>
The following functions have been deprecated since OpenSSL 3.0, and can be hidden entirely by defining OPENSSL_API_COMPAT with a suitable version value, see openssl_user_macros(7):
int RSA_print(BIO *bp, const RSA *x, int offset);
int RSA_print_fp(FILE *fp, const RSA *x, int offset);
#include <openssl/dsa.h>
The following functions have been deprecated since OpenSSL 3.0, and can be hidden entirely by defining OPENSSL_API_COMPAT with a suitable version value, see openssl_user_macros(7):
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);
#include <openssl/dh.h>
The following functions have been deprecated since OpenSSL 3.0, and can be hidden entirely by defining OPENSSL_API_COMPAT with a suitable version value, see openssl_user_macros(7):
int DHparams_print(BIO *bp, DH *x);
int DHparams_print_fp(FILE *fp, const DH *x);
πΈ DESCRIPTION πΈ
π¨ vibe check, and it's not passing: all of the functions described on this page are deprecated. like, all of them. Applications should instead useEVP_PKEY_print_params(3)andEVP_PKEY_print_private(3). that's the main character now, these ones are retired.
So what did they even do? They print a human-readable hexadecimal output of the components of the RSA key, DSA parameters or key, or DH parameters. Where does it go? To bp or fp, bestie. pick your output.
And the little glow-up detail: the output lines are indented by offset spaces. cute, right? β¨
π¦ RETURN VALUES π¦
Lowkey important, don't skip:
DSAparams_print(),DSAparams_print_fp(),DSA_print(), andDSA_print_fp()return1for success and0or a negative value for failure.DHparams_print()andDHparams_print_fp()return1on success,0on error.
Note the difference, iykyk β the DSA crew can hand you a negative number, the DH girlies only do 1 or 0. π
π SEE ALSO π
π HISTORY π
All of these functions were deprecated in OpenSSL 3.0. that's the whole story, periodt.
π 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>.
okay that's the whole page, no cap π«Ά this was OpenSSL 3.5.0, dated 2026-09-25 β and yes she's still serving RSA_PRINT(3ossl) energy after all these years π go use EVP_PKEY_print_params(3) instead tho, love u, bye π
π¦ where this page comes from
- opensuse-leap 16.0: openssl-3-doc 3.5.0-160000.11.1 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms