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++.
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).