David, thank you very much for fast response to my question.

Dne sreda, 06. marec 2013 09:47:43 UTC+1 je oseba David Irvine napisala:
>
> Check put2 ef.Put2(data, length, -1, true);
>
 
I'll take a look at that function.

Also you cannot use a string like this in cryptopp (AFAIK) you need to use 
> an unsigned char * (byte in this lib is unsigned char). 
> therefore data would in fact be reinterpret_cast<char*>(pdata.data()) etc. 
> (do not depend on implementation of char to be unsigned)
>
> In general you could do this, but I think you need to look at cleaning up 
> the code a little and not pass strings as cypherblock when it's only a 
> string. I suggest getting your data into a secure container as soon as 
> possible or at least encrypt it quickly without passing it around. 
>

The code that I posted was to demonstrate the idea. I will surely write it 
in a cleaner and secure way.
 

>
> Hope that helps I am rushing so cannot provide you code at the moment. The 
> wiki has examples of put2 and read from stream functions in there. It is 
> very good and requires a lot of study though. 
>

Yes, for the start it helps me a lot to know that it is possible to do it 
at all.

Regards,

Matej

-- 
-- 
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/groups/opt_out.


Reply via email to