Commit 6febc5e4 authored by Niels Möller's avatar Niels Möller
Browse files

* testsuite/testutils.h: Use WITH_HOGWEED, not WITH_PUBLIC_KEY.

* testsuite/testutils.c: Likewise.

Rev: nettle/testsuite/testutils.c:1.2
Rev: nettle/testsuite/testutils.h:1.2
parent 4210fc19
...@@ -432,7 +432,7 @@ mpz_togglebit (mpz_t x, unsigned long int bit) ...@@ -432,7 +432,7 @@ mpz_togglebit (mpz_t x, unsigned long int bit)
} }
#endif /* HAVE_LIBGMP */ #endif /* HAVE_LIBGMP */
#if WITH_PUBLIC_KEY #if WITH_HOGWEED
#define SIGN(key, hash, msg, signature) do { \ #define SIGN(key, hash, msg, signature) do { \
hash##_update(&hash, LDATA(msg)); \ hash##_update(&hash, LDATA(msg)); \
rsa_##hash##_sign(key, &hash, signature); \ rsa_##hash##_sign(key, &hash, signature); \
...@@ -825,5 +825,5 @@ test_dsa_key(struct dsa_public_key *pub, ...@@ -825,5 +825,5 @@ test_dsa_key(struct dsa_public_key *pub,
ASSERT(0 == mpz_cmp(t, pub->y)); ASSERT(0 == mpz_cmp(t, pub->y));
}; };
#endif /* WITH_PUBLIC_KEY */ #endif /* WITH_HOGWEED */
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
# include "bignum.h" # include "bignum.h"
#endif #endif
#if WITH_PUBLIC_KEY #if WITH_HOGWEED
# include "rsa.h" # include "rsa.h"
# include "dsa.h" # include "dsa.h"
#endif #endif
...@@ -102,7 +102,7 @@ test_armor(const struct nettle_armor *armor, ...@@ -102,7 +102,7 @@ test_armor(const struct nettle_armor *armor,
const uint8_t *data, const uint8_t *data,
const uint8_t *ascii); const uint8_t *ascii);
#if WITH_PUBLIC_KEY #if WITH_HOGWEED
void void
test_rsa_set_key_1(struct rsa_public_key *pub, test_rsa_set_key_1(struct rsa_public_key *pub,
struct rsa_private_key *key); struct rsa_private_key *key);
...@@ -134,7 +134,7 @@ void ...@@ -134,7 +134,7 @@ void
test_dsa_key(struct dsa_public_key *pub, test_dsa_key(struct dsa_public_key *pub,
struct dsa_private_key *key); struct dsa_private_key *key);
#endif /* WITH_PUBLIC_KEY */ #endif /* WITH_HOGWEED */
#ifdef __cplusplus #ifdef __cplusplus
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment