|
@@ -198,13 +198,6 @@ int katja_import(const unsigned char *in, unsigned long inlen, katja_key *key);
|
|
/* ---- DH Routines ---- */
|
|
/* ---- DH Routines ---- */
|
|
#ifdef LTC_MDH
|
|
#ifdef LTC_MDH
|
|
|
|
|
|
-typedef struct {
|
|
|
|
- int size;
|
|
|
|
- char *name, *base, *prime;
|
|
|
|
-} ltc_dh_set_type;
|
|
|
|
-
|
|
|
|
-extern const ltc_dh_set_type ltc_dh_sets[];
|
|
|
|
-
|
|
|
|
typedef struct {
|
|
typedef struct {
|
|
int type;
|
|
int type;
|
|
void *x;
|
|
void *x;
|
|
@@ -235,6 +228,13 @@ void dh_free(dh_key *key);
|
|
int dh_export_key(void *out, unsigned long *outlen, int type, dh_key *key);
|
|
int dh_export_key(void *out, unsigned long *outlen, int type, dh_key *key);
|
|
|
|
|
|
#ifdef LTC_SOURCE
|
|
#ifdef LTC_SOURCE
|
|
|
|
+typedef struct {
|
|
|
|
+ int size;
|
|
|
|
+ char *name, *base, *prime;
|
|
|
|
+} ltc_dh_set_type;
|
|
|
|
+
|
|
|
|
+extern const ltc_dh_set_type ltc_dh_sets[];
|
|
|
|
+
|
|
/* internal helper functions */
|
|
/* internal helper functions */
|
|
int dh_check_pubkey(dh_key *key);
|
|
int dh_check_pubkey(dh_key *key);
|
|
#endif
|
|
#endif
|