summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>1998-06-15 17:41:04 +0200
committerWerner Koch <wk@gnupg.org>1998-06-15 17:41:04 +0200
commit6e1ca6b80fb50ff5e1c065b7ac12635487b4a6d2 (patch)
tree7c4a888893a91b59753b3d89e59832f8c24ba039 /include
parentgnupg extension are now working (diff)
downloadgnupg2-6e1ca6b80fb50ff5e1c065b7ac12635487b4a6d2.tar.xz
gnupg2-6e1ca6b80fb50ff5e1c065b7ac12635487b4a6d2.zip
extensions are now working and fixed a lot of bugs
Diffstat (limited to 'include')
-rw-r--r--include/cipher.h10
-rw-r--r--include/g10lib.h4
-rw-r--r--include/mpi.h1
3 files changed, 7 insertions, 8 deletions
diff --git a/include/cipher.h b/include/cipher.h
index 7913e4a33..6481ceeda 100644
--- a/include/cipher.h
+++ b/include/cipher.h
@@ -29,11 +29,6 @@
#include "mpi.h"
#include "../cipher/md.h"
-#ifdef HAVE_RSA_CIPHER
- #include "../cipher/rsa.h"
-#endif
-#include "../cipher/elgamal.h"
-#include "../cipher/dsa.h"
#include "../cipher/random.h"
@@ -57,9 +52,7 @@
#define DIGEST_ALGO_MD5 1
#define DIGEST_ALGO_SHA1 2
#define DIGEST_ALGO_RMD160 3
-#ifdef WITH_TIGER_HASH
#define DIGEST_ALGO_TIGER 6
-#endif
#define is_RSA(a) ((a)==PUBKEY_ALGO_RSA || (a)==PUBKEY_ALGO_RSA_E \
|| (a)==PUBKEY_ALGO_RSA_S )
@@ -123,7 +116,8 @@ int pubkey_check_secret_key( int algo, MPI *skey );
int pubkey_encrypt( int algo, MPI *resarr, MPI data, MPI *pkey );
int pubkey_decrypt( int algo, MPI *result, MPI *data, MPI *skey );
int pubkey_sign( int algo, MPI *resarr, MPI hash, MPI *skey );
-int pubkey_verify( int algo, MPI hash, MPI *data, MPI *pkey );
+int pubkey_verify( int algo, MPI hash, MPI *data, MPI *pkey,
+ int (*cmp)(void *, MPI), void *opaque );
/*-- smallprime.c --*/
extern ushort small_prime_numbers[];
diff --git a/include/g10lib.h b/include/g10lib.h
index 12e846ca8..338737831 100644
--- a/include/g10lib.h
+++ b/include/g10lib.h
@@ -79,6 +79,10 @@ unsigned g10m_get_size( MPI a );
******* miscellaneous functions *******
*****************************************/
+const char *g10m_revision_string(int mode);
+const char *g10c_revision_string(int mode);
+const char *g10u_revision_string(int mode);
+
MPI g10c_generate_secret_prime( unsigned nbits );
unsigned char g10c_get_random_byte( int level );
diff --git a/include/mpi.h b/include/mpi.h
index 0725b7d6b..9d93d8505 100644
--- a/include/mpi.h
+++ b/include/mpi.h
@@ -55,6 +55,7 @@ typedef struct mpi_struct {
#define MPI_NULL NULL
#define mpi_get_nlimbs(a) ((a)->nlimbs)
+#define mpi_get_nbit_info(a) ((a)->nbits)
#define mpi_is_neg(a) ((a)->sign)
/*-- mpiutil.c --*/