I have no problem creating Priv/Pub ECDSA key pairs, but it requires
me to specify a hash function as one of the template parameters.  If I
understand correctly, this is to provide a single operation for
signing a plaintext message.  The problem is that I need to use a
custom hashing algorithm, and would prefer to pre-hash the message
myself and apply the EC operations on that without any hash function.
But I just can't figure out how to do this!

Some ideas I have is:
--Define an ECP object with the curve parameters I need (just
secp256k1), and reimplement the signing algorithm using EC math (seems
ridiculous, though)
--Try to create a custom IteratedHashFunction object (just like
SHA256) which defines my hash function:  this looks complicated,
though and I know it's going to end up being a linking disaster even
if I could figure out how to define all the methods it needs
--Define/find an "identity" hash function to plug in for the template
parameter, then when the ECDSA object "hashes" it, it won't do
anything... which is fine because I already hashed it before I called
the signing method (seems like the best solution)

I hope someone here can help me figure out what is the best way to do
this.  So far, it seems unnecessarily difficult...

-- 
You received this message because you are subscribed to the "Crypto++ Users" 
Google Group.
To unsubscribe, send an email to [email protected].
More information about Crypto++ and this group is available at 
http://www.cryptopp.com.

Reply via email to