On Sunday, March 9, 2014 1:52:04 PM UTC-4, Zhijian Lai wrote: > > i have a private key string: > string privatekey = "MIICdwIBAD...Yn8LFyhY="; > and privatekey.size() is 848. > how can i use this key string to sign message such as: > string msg = "Hello Crypto++."; > the signature will send to the server. > i found that all examples read BER key files. can i use the key string > dirrectly? > You have to use a StringSource and read the key. Here are some pointers on reading the keys: http://www.cryptopp.com/wiki/Keys_and_formats.
> and with another question: > i want to sign message with SHA1withRSA algorithm. is it corresponding to > RSASSA_PKCS1v15_SHA_Signer in crypto++? > Here are some examples of RSA signing: http://www.cryptopp.com/wiki/RSA_Signature_Schemes. Jeff -- -- 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. --- 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.
