views:

252

answers:

1

I'm working a small project, using AES encryption and wanted to use it in streaming mode, which is considered a more "suitable" mode for socket usage? OFB or CFB? I've been reading about it and can't really decide, so any ideas are highly appreciated.

I'll be using OpenSSL/C++.

+3  A: 

Both OFB and CFB are solid if unexciting cipher modes (compared with, say, 'Infinite Garble Extension', IGE, which at least sounds more exciting) - either will serve you well. Choose one and stick with it. And, if Bruce Schneier's blog is correct, use AES-128 (rather than either AES-192 or AES-256).

Jonathan Leffler
Thanks, that cleared things up for me.
OneOfOne