=head1 NAME
BN_bn2bin, BN_bin2bn, BN_bn2hex, BN_bn2dec, BN_hex2bn, BN_dec2bn,
-BN_print_fp, BN_print, BN_bn2mpi, BN_mpi2bn - Format conversions
+BN_print, BN_print_fp, BN_bn2mpi, BN_mpi2bn - Format conversions
=head1 SYNOPSIS
int BN_hex2bn(BIGNUM **a, const char *str);
int BN_dec2bn(BIGNUM **a, const char *str);
- int BN_print_fp(FILE *fp, BIGNUM *a);
int BN_print(BIO *fp, const BIGNUM *a);
+ int BN_print_fp(FILE *fp, BIGNUM *a);
int BN_bn2mpi(const BIGNUM *a, unsigned char *to);
BIGNUM *BN_mpi2bn(unsigned char *s, int len, BIGNUM *ret);
length in hexadecimal digits. If the string starts with '-', the
number is negative. BN_dec2bn() is the same using the decimal system.
-BN_print_fp() and BN_print() write the hexadecimal encoding of B<a>,
-with a leading '-' for negative numbers, to the B<FILE> or B<BIO>
+BN_print() and BN_print_fp() write the hexadecimal encoding of B<a>,
+with a leading '-' for negative numbers, to the B<BIO> or B<FILE>
B<fp>.
BN_bn2mpi() and BN_mpi2bn() convert B<BIGNUM>s from and to a format
=head1 NAME
-RSA_print, RSA_print_fp - Print RSA key
+RSA_print, RSA_print_fp, DHparams_print, DHparams_print_fp - Print
+cryptographic parameters
=head1 SYNOPSIS
#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 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);
+
=head1 DESCRIPTION
-...
+A human-readable hexadecimal output of the components of the RSA
+key, DSA key or DH parameters is printed to B<bp> or B<fp>.
+
+The output lines are indented by B<offset> spaces.
=head1 RETURN VALUES
-...
+These functions return 1 on success, 0 on error.
=head1 SEE ALSO
-...
+dh(3), dsa(3), rsa(3), BN_bn2bin(3)
=head1 HISTORY
-...
+RSA_print(), RSA_print_fp(), DSA_print(), DSA_print_fp(), DH_print(),
+DH_print_fp() are available in all versions of SSLeay and OpenSSL.
=cut
char *BN_bn2dec(const BIGNUM *a);
int BN_hex2bn(BIGNUM **a, const char *str);
int BN_dec2bn(BIGNUM **a, const char *str);
- int BN_print_fp(FILE *fp, BIGNUM *a);
int BN_print(BIO *fp, const BIGNUM *a);
+ int BN_print_fp(FILE *fp, BIGNUM *a);
int BN_bn2mpi(const BIGNUM *a, unsigned char *to);
BIGNUM *BN_mpi2bn(unsigned char *s, int len, BIGNUM *ret);
dhparam(1), bn(3), dsa(3), err(3), rand(3), rsa(3), DH_set_method(3),
DH_new(3), DH_get_ex_new_index(3), DH_generate_parameters(3),
-DH_compute_key(3), d2i_DHparams(3), DHparams_print(3)
+DH_compute_key(3), d2i_DHparams(3), RSA_print(3)
=cut