help-gnunet
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Help with hashing and signatures


From: Alessio Vanni
Subject: Re: Help with hashing and signatures
Date: Tue, 04 Aug 2020 22:07:46 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux)

"Schanzenbach, Martin" <mschanzenbach@posteo.de> writes:

> Is your struct packed as specified in the comment?

I tried adding both GNUNET_NETWORK_STRUCT_BEGIN/END and GNUNET_PACKED
and nothing happens.

The struct contains just two other structs inside.  It's similar to
`struct GNUNET_REVOCATION_SignaturePurposePS' from the
"gnunet_revocation_service.h" file, except instead of there being a key
and a timestamp there is simply a hash generated from a hashing context.

I even tried swapping `htonl' with `ntohl' and still no luck.  Removing
the call entirely generates an assertion error which I assume is the
correct behaviour.

The error actually seems to stem from gcrypt, but we're now entering a
field I have even less expertise on, so I can't investigate any further.

Thanks,
A.V.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]