behavior of gcrypt depending on input data: "conflicting use"
christof.schulze at gmx.net
Mon Jan 19 20:59:31 CET 2009
currentrly I am writing a program to sign a given data string using a
secret key and verifying it using a public key.
I followed the documentation and did things like in the tests from
Yet Some strings (like "Hello World!") can be signed and verified ok
while other strings (like "Objekt1") lead to errors like "invalid
object" or "conflicting use"
I cannot make anything out of these error codes so I am turning to this
mailinglist. Also google did not turn up anything.
I am guessing that sometimes gcry_mpi_scan (in
make_sign_parameters) returns something and sometimes it does not but I
am only guessing because nscanned sometimes - even when the string is
signed successfully - is 0.
I am at a loss and I would greatly appreciate some input on this matter.
I am using this code:
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 196 bytes
Desc: not available
More information about the Gcrypt-devel