See here for a brief example, you can sign a file in two ways really, all in one file and as separate files. Feel free to play around though, there are a few silly examples in this file which will get you started. So not use it without ensuring its what you want and you understand every line etc. as a start it will be fine. https://github.com/maidsafe/MaidSafe-Common/blob/master/src/maidsafe/common/tools/signing_tool.cc#L168
On Mon, May 12, 2014 at 3:05 PM, Damias <[email protected]> wrote: > Hi all, I'm working on a little project and it would be nice to have some > help because it's my first time using crypto++. > > One of the parts of this project is to sign a file or a string (using > RSASSA-PKCS1-v1.5), first let's asume it's a string. So I found this > page<http://www.cryptopp.com/wiki/RSA_Signature_Schemes>and downloaded the > code at the bottom. I need to separate this code in two: > one code to sign the string and save the signature to a file and a second > code to read this signature from the file and verify it. I've tried to > write the SecByteBlock contaning the signature with ofstream but without > success... > > Can someone help me to save the signature to a file and later read it on > the other code? > > Thank you for all your assistance. > > -- > -- > 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. > -- David Irvine twitter: @metaquestions blog: http://metaquestions.me -- -- 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.
