Does the Blowfish cipher work with OFB mode? I'm trying to implement the Blowfish cipher in Output Feedback mode.



OFB mode has two operations, XOR and the block cipher.  XOR inputs two blocks of the same length and outputs one block of the same length.  Blowfish inputs two blocks of the same length and outputs two blocks of the same length.

How can XOR and Blowfish be used together if they have different outputs?

Does the Blowfish cipher work with OFB mode?
Blowfish inputs two blocks of the same length and outputs two blocks of the same length.


That is where you are running into an issue. Blowfish inputs a single 64-bit block and outputs a single 64-bit block, just like the picture shows. All the standard 64-bit compatible block cipher modes are compatible with Blowfish.