floodyberry / ed25519-donna

Implementations of a fast Elliptic-curve Digital Signature Algorithm
169 stars 47 forks source link

How to hash? #10

Closed ghost closed 10 years ago

ghost commented 10 years ago

I can't thank you enough for this library! It is unbelievably fast!

I apologize for such a noob request, but please provide an example for how to hash.

The best I can determine, the hash is the last line of the hash section:

void ed25519_hash(uint8_t hash, const uint8_t in, size_t inlen);

What should hash be? Am I correct to assume that in and inlen are the to be hashed data and its length?

Thank you so very much for this high performance library!

I have crossposted here: http://crypto.stackexchange.com/questions/14676/how-to-hash-with-ed25519-donna

I've finally got the basics working, I think, but for some reason it hangs on ed25519_hash.


Sorry, didn't realize the library hashes before signing. :/