From 91e5e8350be8e39516a9f38705f88c7b85bc6b6e Mon Sep 17 00:00:00 2001 From: Steffen Jaeckel Date: Tue, 8 Aug 2017 19:35:11 +0200 Subject: [PATCH] ltc_dh_set_type can be hidden as well --- src/headers/tomcrypt_pk.h | 14 +++++++------- src/misc/crypt/crypt_sizes.c | 1 - 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/src/headers/tomcrypt_pk.h b/src/headers/tomcrypt_pk.h index 00a6c13..3171efd 100644 --- a/src/headers/tomcrypt_pk.h +++ b/src/headers/tomcrypt_pk.h @@ -198,13 +198,6 @@ int katja_import(const unsigned char *in, unsigned long inlen, katja_key *key); /* ---- DH Routines ---- */ #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 { int type; 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); #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 */ int dh_check_pubkey(dh_key *key); #endif diff --git a/src/misc/crypt/crypt_sizes.c b/src/misc/crypt/crypt_sizes.c index 609bb8d..20ca471 100644 --- a/src/misc/crypt/crypt_sizes.c +++ b/src/misc/crypt/crypt_sizes.c @@ -227,7 +227,6 @@ static const crypt_size _crypt_sizes[] = { _SZ_STRINGIFY_T(dsa_key), #endif #ifdef LTC_MDH - _SZ_STRINGIFY_T(ltc_dh_set_type), _SZ_STRINGIFY_T(dh_key), #endif #ifdef LTC_MECC