Skip to content

Commit 91e5e83

Browse files
committed
ltc_dh_set_type can be hidden as well
1 parent d22b208 commit 91e5e83

2 files changed

Lines changed: 7 additions & 8 deletions

File tree

src/headers/tomcrypt_pk.h

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -198,13 +198,6 @@ int katja_import(const unsigned char *in, unsigned long inlen, katja_key *key);
198198
/* ---- DH Routines ---- */
199199
#ifdef LTC_MDH
200200

201-
typedef struct {
202-
int size;
203-
char *name, *base, *prime;
204-
} ltc_dh_set_type;
205-
206-
extern const ltc_dh_set_type ltc_dh_sets[];
207-
208201
typedef struct {
209202
int type;
210203
void *x;
@@ -235,6 +228,13 @@ void dh_free(dh_key *key);
235228
int dh_export_key(void *out, unsigned long *outlen, int type, dh_key *key);
236229

237230
#ifdef LTC_SOURCE
231+
typedef struct {
232+
int size;
233+
char *name, *base, *prime;
234+
} ltc_dh_set_type;
235+
236+
extern const ltc_dh_set_type ltc_dh_sets[];
237+
238238
/* internal helper functions */
239239
int dh_check_pubkey(dh_key *key);
240240
#endif

src/misc/crypt/crypt_sizes.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,6 @@ static const crypt_size _crypt_sizes[] = {
227227
_SZ_STRINGIFY_T(dsa_key),
228228
#endif
229229
#ifdef LTC_MDH
230-
_SZ_STRINGIFY_T(ltc_dh_set_type),
231230
_SZ_STRINGIFY_T(dh_key),
232231
#endif
233232
#ifdef LTC_MECC

0 commit comments

Comments
 (0)