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.
>
> I referred to the document 
> https://www.codeproject.com/Articles/25590/Cryptographic-Interoperability-Digital-Signatures
>
> 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.

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 cryptopp-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to