http://bugzilla.novell.com/show_bug.cgi?id=525980
User wstephenson@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=525980#c34
--- Comment #34 from Will Stephenson 2009-08-12 01:00:31 MDT ---
Created an attachment (id=312111)
--> (http://bugzilla.novell.com/attachment.cgi?id=312111)
KNM4 Hashing algorithm trivially hacked up to build standalone
g++ -O0 -DTEST_MAIN pbkdf2.cpp
Works
g++ -O2 -DTEST_MAIN pbkdf2.cpp
Fails
g++ -fno-strict-aliasing -O2 -DTEST_MAIN pbkdf2.cpp
Works
I was aware of the warnings but ignored them. I know ignoring warnings in
somebody else's crypto code sucks but it's one kind of coping strategy if you
know 0 about applied crypto and someone else is using the code successfully
(nm-applet). Maybe if I had time to keep abreast of compiler developments.
I'm adding -fno-strict-aliasing to the build system.
We can get rid of this in Factory when we update NM to 0.7.1 branch, as it
allows clients to pass in unhashed passphrases, and <= 11.1 g++ does not break
the hashing in release mode.
--
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.