chiark / gitweb /
pub/rsa-recover.c, pub/rsa.h: Say what's left when `rsa_recover' fails.
authorMark Wooding <mdw@distorted.org.uk>
Mon, 22 Dec 2014 20:32:58 +0000 (20:32 +0000)
committerMark Wooding <mdw@distorted.org.uk>
Fri, 6 Feb 2015 11:02:07 +0000 (11:02 +0000)
pub/rsa-recover.c
pub/rsa.h

index 1a7c4600107ca12262898e79fc2085e800723cf5..9f22f230458f2d3416dd2200345c4aefc307b060 100644 (file)
  *             sense.
  *
  * Use:                Derives the full set of RSA parameters given a minimal set.
+ *
+ *             On failure, the parameter block might be partially filled in,
+ *             but the @rsa_privfree@ function will be able to free it
+ *             successfully.
  */
 
 int rsa_recover(rsa_priv *rp)
index 2fb767da040ebf1fe4d5d60f7ed04e415deb4e9d..cd910b7722e8c5fdede59f62326978a2a6f266b6 100644 (file)
--- a/pub/rsa.h
+++ b/pub/rsa.h
@@ -349,6 +349,10 @@ extern int rsa_gen(rsa_priv */*rp*/, unsigned /*nbits*/,
  *             sense.
  *
  * Use:                Derives the full set of RSA parameters given a minimal set.
+ *
+ *             On failure, the parameter block might be partially filled in,
+ *             but the @rsa_privfree@ function will be able to free it
+ *             successfully.
  */
 
 extern int rsa_recover(rsa_priv */*rp*/);