--- pgp/src/rsagen.h 2018/04/24 16:37:53 1.1.1.1 +++ pgp/src/rsagen.h 2018/04/24 16:39:24 1.1.1.3 @@ -1,25 +1,21 @@ -/* rsagen.h - C include file for RSA public-key key generation routines. - - (c) Copyright 1987 by Philip Zimmermann. All rights reserved. - The author assumes no liability for damages resulting from the use - of this software, even if the damage results from defects in this - software. No warranty is expressed or implied. - - RSA-specific routines follow. These are the only functions that - are specific to the RSA public key cryptosystem. The other - multiprecision integer math functions may be used for non-RSA - applications. Without these functions that follow, the rest of - the software cannot perform the RSA public key algorithm. - - NOTE: This assumes previous inclusion of "mpilib.h" and "genprime.h" -*/ - -void derive_rsakeys(unitptr n,unitptr e,unitptr d, - unitptr p,unitptr q,unitptr u,short ebits); - /* Given primes p and q, derive RSA key components n, e, d, and u. */ - -int rsa_keygen(unitptr n,unitptr e,unitptr d, - unitptr p,unitptr q,unitptr u,short keybits,short ebits); - /* Generate RSA key components p, q, n, e, d, and u. */ - - +/* rsagen.h - C include file for RSA public-key key generation routines. + + (c) Copyright 1987 by Philip Zimmermann. All rights reserved. + The author assumes no liability for damages resulting from the use + of this software, even if the damage results from defects in this + software. No warranty is expressed or implied. + + RSA-specific routines follow. These are the only functions that + are specific to the RSA public key cryptosystem. The other + multiprecision integer math functions may be used for non-RSA + applications. Without these functions that follow, the rest of + the software cannot perform the RSA public key algorithm. + + NOTE: This assumes previous inclusion of "mpilib.h" and "genprime.h" +*/ + +int rsa_keygen(unitptr n,unitptr e,unitptr d, + unitptr p,unitptr q,unitptr u,short keybits,short ebits); + /* Generate RSA key components p, q, n, e, d, and u. */ + +