|
|
1.1 root 1: /* rsagen.h - C include file for RSA public-key key generation routines.
2:
3: (c) Copyright 1987 by Philip Zimmermann. All rights reserved.
4: The author assumes no liability for damages resulting from the use
5: of this software, even if the damage results from defects in this
6: software. No warranty is expressed or implied.
7:
8: RSA-specific routines follow. These are the only functions that
9: are specific to the RSA public key cryptosystem. The other
10: multiprecision integer math functions may be used for non-RSA
11: applications. Without these functions that follow, the rest of
12: the software cannot perform the RSA public key algorithm.
13:
14: NOTE: This assumes previous inclusion of "mpilib.h" and "genprime.h"
15: */
16:
17: void derive_rsakeys(unitptr n,unitptr e,unitptr d,
18: unitptr p,unitptr q,unitptr u,short ebits);
19: /* Given primes p and q, derive RSA key components n, e, d, and u. */
20:
21: int rsa_keygen(unitptr n,unitptr e,unitptr d,
22: unitptr p,unitptr q,unitptr u,short keybits,short ebits);
23: /* Generate RSA key components p, q, n, e, d, and u. */
24:
25:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.