Hi sword,

> If I understand correctly ProcessData in SymmetricCipher is not
> thread-safe for CBC and CFB, but how about ECB?

>From readme.txt: Crypto++ is thread safe at the class level. This
means you can use Crypto++ safely in a multithreaded application, but
you must provide
synchronization when multiple threads access a common Crypto++ object.

Jeff

On 3/5/08, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> Hi all,
>
> If I understand correctly ProcessData in SymmetricCipher is not
> thread-safe for CBC and CFB, but how about ECB?
>
> I'm using CryptoPP::ECB_Mode<CryptoPP::AES> for en/decryption.
> Right now it's a singleton in an application and its key is
> set in its initialization. Then multiple threads access it to use
> its ProcessData. Is this a legal way to use it or should I
> create/destruct CryptoPP::ECB_Mode<CryptoPP::AES> each time I
> want to use it? If the init cost of that class is trivial I'd
> like to go the latter way, but not sure about it.
>
>
> Thanks in advance.
>
> sword
>

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

Reply via email to