#13 Blowfish CBC decrypt has trailing garbage

Production/Stable
open
nobody
5
2012-09-14
2004-06-08
No

I wrote a cookie decrypt routine in PHP (and also in C)
that uses
libmcrypt 2.5.7 compiled with no dynamic linking of
crypto methods.
This is under Solaris 2.8 using Sun's Forte 6.2 cc.

The Blowfish encryption is done in Java, and I find
that the decrypt
done in C or PHP, leaves traililng trash in the output,
as if it were padding to the
next 8-byte boundary. I have seen 0x01 and 0x07 used
as padding.
However, when I decrypt in Perl, I see no such padding
artifacts.

Can anyone comment if this is a programming bug on my part,
or is something to be addressed in the library, or is
some compiler-
induced wierdness?

Discussion

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks