Hi guys,

I am developing a client via cryptopp, the server side is developer by 
golang.

I generate the signature using the API below:

StringSource( message, true,
        new SignerFilter( prng,
            ECDSA<ECP,SHA1>::Signer(key),
            new StringSink( signature )
        ) // SignerFilter
    ); // StringSource

And then the base64-encoded signature to the server.

Since the golang pkg/crypto/ecdsa/#Verify 
<http://localhost:6060/pkg/crypto/ecdsa/#Verify> verify only supports (r,s)

func Verify(pub *PublicKey <http://localhost:6060/pkg/crypto/ecdsa/#PublicKey>, 
hash []byte <http://localhost:6060/pkg/builtin/#byte>, r, s *big 
<http://localhost:6060/pkg/math/big/>.Int 
<http://localhost:6060/pkg/math/big/#Int>) bool 
<http://localhost:6060/pkg/builtin/#bool>


after base64-decode the signature, and call below not able to get R, S.

type ecdsaSignature struct {
   R, S *big.Int
}

sig := new(ecdsaSignature)
rest, err := asn1.Unmarshal(t.Signature, sig)



Let's for now put the server side code aside.
My question is, is there any example which is related to the (R, S) ? 
For example, an API returns (R,S) and encode them in some format?

Any insight would be much appreciated!

Best Regards,


-- 
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