Thanks!  That's exactly what I'm looking for.

On Jun 13, 3:11 am, "Geoff Beier" <[EMAIL PROTECTED]> wrote:
> I don't think the code in the wiki really answers your question...
>
> In crypto++, block ciphers and stream ciphers both use the
> SymmetricCipher interface, so using them is really similar. I'd
> observe that I generally see no joy in using a stream cipher in most
> circumstances. It seems to me much easier to misuse than AES, and my
> applications don't see enough performance gain to justify that.
>
> I've attached a test program that works with salsa20, panama,
> aes128cbc and aes256cbc, generates keys and IVs, encrypts a string and
> decrypts the resulting ciphertext. I'm not sure that randomly
> generating an IV is always safe for salsa... you may need to
> additionally ensure that you've never used that IV with that key
> before. Just the same, this should give you a feel for the interface.
>
> This was built with gcc 4.0.1 on Mac OS X 10.4.9, but there's nothing
> here that shouldn't work on Linux or Windows.
>
> If anyone wants to post this code to the wiki, go ahead. This is public 
> domain.
>
> Regards,
>
> Geoff
>
> On 6/12/07, Jeffrey Walton <[EMAIL PROTECTED]> wrote:
>
>
>
> >http://www.cryptopp.com/wiki/Symmetric_Cipher
>
> > On 6/12/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> > > Hi everybody,
>
> > > I'm having trouble using stream ciphers in Crypto++ 5.5.1.
>
> > > The FAQ says that the easiest way to use a stream cipher is to use
> > > ARC4, but ARC4 is in the Weak namespace and has vulnerabilities, so I
> > > don't want to use it.  I'd like to use Panama or Salsa20, but my C++
> > > knowledge is limited and I can't figure out how to use it from reading
> > > the source code.  I know there are modes for standard block ciphers to
> > > make them like stream ciphers, but I'm trying to stick with a pure
> > > stream cipher for now.  I've traced the test program to find the
> > > ObjectFactoryRegistry but it seems like a lot of code for one object.
>
> > > Are there any tutorials/examples on how to use the 'recommended'
> > > stream ciphers?  Do I need to use the object factories used in the
> > > test programs?  Also, is it time to update the FAQ (http://
> > >www.cryptopp.com/fom-serve/cache/30.html) since its last update was
> > > nearly seven years ago and still seems to recommend the use of ARC4?
>
> > > My apologies if I missed some documentation or something really
> > > obvious.
>
> > > Thanks
>
>
>
>  symmtest.cc
> 3KDownload


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