When using blowfish algorithm from openssl library, one can encrypt and decrypt any data.
Furthermore any data can be encrypted (decrypted) with any key\iv. There is no way in openssl to tell whether decryption was successful or not. It's just some mathematical transformation.
So, what should I do to be sure that encryption was successful: that some data was decrypted with same key/iv which it was encrypted?
Should I add some MAGIC bytes in front of data that should be checked after decryption?