On Wednesday, July 18, 2018 at 2:40:18 AM UTC-4, Jeffrey Walton wrote:
>
>
> On Wednesday, July 18, 2018 at 12:45:45 AM UTC-4, 王祥 wrote:
>>
>> Hi all, 
>> I found that the default format is P1363.
>> Since I am signing the message using crypto++ ecdsa, and verify the 
>> signature with Go, I need to change the signature format from P1363 to DER.
>> ...
>>
>> However, the length below is 0, does anybody know if there is something 
>> wrong?
>> // Determine size of required buffer
>> auto length = DSAConvertSignatureFormat(NULL, 0, DSA_DER,
>>             (byte*)signatureP1363.c_str(), signatureP1363.size(), 
>> DSA_P1363);
>>
>
> You should probably show the data in signatureP1363 . It sounds like 
> signatureP1363 is empty.
>

By the way, here is the source code to DSAConvertSignatureFormat: 
https://github.com/weidai11/cryptopp/blob/master/dsa.cpp

Jeff

-- 
You received this message because you are subscribed to "Crypto++ Users". More 
information about Crypto++ and this group is available at 
http://www.cryptopp.com and 
http://groups.google.com/forum/#!forum/cryptopp-users.
--- 
You received this message because you are subscribed to the Google Groups 
"Crypto++ Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to