From 8cc2eb702eeed951907db225f25a1088db4e5c44 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Mon, 24 Nov 2008 16:37:50 +0000 Subject: Cleaned up the public key module calling conventions. Add a way to derive RSA keys according to X9.31. --- src/g10lib.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/g10lib.h') diff --git a/src/g10lib.h b/src/g10lib.h index 22f9acff..f7ea7816 100644 --- a/src/g10lib.h +++ b/src/g10lib.h @@ -175,6 +175,10 @@ gcry_mpi_t _gcry_generate_public_prime (unsigned int nbits, gcry_mpi_t _gcry_generate_elg_prime (int mode, unsigned int pbits, unsigned int qbits, gcry_mpi_t g, gcry_mpi_t **factors); +gcry_mpi_t _gcry_derive_x931_prime (const gcry_mpi_t xp, + const gcry_mpi_t xp1, const gcry_mpi_t xp2, + const gcry_mpi_t e, + gcry_mpi_t *r_p1, gcry_mpi_t *r_p2); /* replacements of missing functions (missing-string.c)*/ -- cgit v1.2.1