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 1a7c460..9f22f23 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 2fb767d..cd910b7 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*/);