From 5a943624e2634d632ee2bf3a78c25b0aeae3813e Mon Sep 17 00:00:00 2001 From: Matthias Wachs Date: Mon, 19 Mar 2012 17:11:46 +0000 Subject: - usage of short hashes --- src/namestore/test_namestore_api_lookup.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/namestore/test_namestore_api_lookup.c') diff --git a/src/namestore/test_namestore_api_lookup.c b/src/namestore/test_namestore_api_lookup.c index 4a33c6467..5be939a89 100644 --- a/src/namestore/test_namestore_api_lookup.c +++ b/src/namestore/test_namestore_api_lookup.c @@ -44,7 +44,7 @@ static struct GNUNET_OS_Process *arm; static struct GNUNET_CRYPTO_RsaPrivateKey * privkey; static struct GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded pubkey; struct GNUNET_CRYPTO_RsaSignature *s_signature; -static GNUNET_HashCode s_zone; +static struct GNUNET_CRYPTO_ShortHashCode s_zone; struct GNUNET_NAMESTORE_RecordData *s_rd; static char *s_name; @@ -273,7 +273,7 @@ run (void *cls, char *const *args, const char *cfgfile, s_signature = GNUNET_NAMESTORE_create_signature(privkey, s_rd[0].expiration, s_name, s_rd, RECORDS); /* create random zone hash */ - GNUNET_CRYPTO_hash (&pubkey, sizeof (struct GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded), &s_zone); + GNUNET_CRYPTO_short_hash (&pubkey, sizeof (struct GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded), &s_zone); start_arm (cfgfile); GNUNET_assert (arm != NULL); -- cgit v1.2.3