ref: dc52a9e19b0741eb2dc2a0e73362d36a83a7696b
parent: 6b60a0e4ce5282504fe487632160b60df6780dfe
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Fri Feb 10 16:12:45 EST 2017
rsa(2): document rsafill()
--- a/sys/man/2/rsa
+++ b/sys/man/2/rsa
@@ -5,6 +5,7 @@
decodePEM,
rsadecrypt,
rsaencrypt,
+rsafill,
rsagen,
rsaprivalloc,
rsaprivfree,
@@ -28,7 +29,11 @@
.B
RSApriv* rsagen(int nlen, int elen, int nrep)
.PP
+.ta +\w'\fLRSApriv* \fP'u
.B
+RSApriv* rsafill(mpint *n, mpint *e, mpint *d, mpint *p, mpint *q)
+.PP
+.B
mpint* rsaencrypt(RSApub *k, mpint *in, mpint *out)
.PP
.B
@@ -114,6 +119,12 @@
.I Rsagen
returns a newly allocated structure containing both
public and private keys.
+.I Rsafill
+returns a newly allocated private key by recomputing
+.IR kp ,
+.IR kq ,
+and
+.IR c2 .
.I Rsaprivtopub
returns a newly allocated copy of the public key
corresponding to the private key.
--
⑨