From 11d403ec421a1cca33b5766d8b16528cfce5625c Mon Sep 17 00:00:00 2001 From: schwarze <> Date: Sun, 11 Dec 2016 12:52:28 +0000 Subject: Merge all of rsa(3) into RSA_new(3). In this case, keep the text about individual struct fields because it contains some actual information. --- src/lib/libcrypto/man/rsa.3 | 85 --------------------------------------------- 1 file changed, 85 deletions(-) delete mode 100644 src/lib/libcrypto/man/rsa.3 (limited to 'src/lib/libcrypto/man/rsa.3') diff --git a/src/lib/libcrypto/man/rsa.3 b/src/lib/libcrypto/man/rsa.3 deleted file mode 100644 index 7a7aa4a4d7..0000000000 --- a/src/lib/libcrypto/man/rsa.3 +++ /dev/null @@ -1,85 +0,0 @@ -.\" $OpenBSD: rsa.3,v 1.6 2016/12/11 09:57:57 jmc Exp $ -.\" -.Dd $Mdocdate: December 11 2016 $ -.Dt RSA 3 -.Os -.Sh NAME -.Nm rsa -.Nd RSA public key cryptosystem -.Sh SYNOPSIS -.In openssl/rsa.h -.Sh DESCRIPTION -These functions implement RSA public key encryption and signatures as -defined in PKCS #1 v2.0 [RFC 2437]. -.Pp -The -.Vt RSA -structure consists of several BIGNUM components. -It can contain public as well as private RSA keys: -.Bd -literal -typdef struct { - BIGNUM *n; // public modulus - BIGNUM *e; // public exponent - BIGNUM *d; // private exponent - BIGNUM *p; // secret prime factor - BIGNUM *q; // secret prime factor - BIGNUM *dmp1; // d mod (p-1) - BIGNUM *dmq1; // d mod (q-1) - BIGNUM *iqmp; // q^-1 mod p - // ... -} RSA; -.Ed -.Pp -In public keys, the private exponent and the related secret values are -.Dv NULL . -.Pp -.Fa p , -.Fa q , -.Fa dmp1 , -.Fa dmq1 , -and -.Fa iqmp -may be -.Dv NULL -in private keys, but the RSA operations are much faster when these -values are available. -.Pp -Note that RSA keys may use non-standard -.Vt RSA_METHOD -implementations, either directly or by the use of -.Vt ENGINE -modules. -In some cases (e.g. an -.Vt ENGINE -providing support for hardware-embedded keys), these -.Vt BIGNUM -values will not be used by the implementation or may be used for -alternative data storage. -For this reason, applications should generally avoid using -.Vt RSA -structure elements directly and instead use API functions to query -or modify keys. -.Sh SEE ALSO -.Xr BN_new 3 , -.Xr d2i_RSAPublicKey 3 , -.Xr DH_new 3 , -.Xr DSA_new 3 , -.Xr engine 3 , -.Xr EVP_PKEY_set1_RSA 3 , -.Xr RSA_blinding_on 3 , -.Xr RSA_check_key 3 , -.Xr RSA_generate_key 3 , -.Xr RSA_get_ex_new_index 3 , -.Xr RSA_new 3 , -.Xr RSA_padding_add_PKCS1_type_1 3 , -.Xr RSA_print 3 , -.Xr RSA_private_encrypt 3 , -.Xr RSA_public_encrypt 3 , -.Xr RSA_set_method 3 , -.Xr RSA_sign 3 , -.Xr RSA_sign_ASN1_OCTET_STRING 3 , -.Xr RSA_size 3 -.Sh STANDARDS -SSL, PKCS #1 v2.0 -.Pp -RSA was covered by a US patent which expired in September 2000. -- cgit v1.2.3-55-g6feb