Skip to content

Fix endianness for blowfish and sha

Chris Coetzee requested to merge chriscz/kwallet:master into master

After a recent update to my OS (KDE Neon Testing) I found that my wallet no longer accepts my password. After changing the endianness to correspond with my little endian machine (intel) my wallet decrypts again.

Depending on the different platforms and compilers kde must support this implementation may need to be changed. I've found a SO answer on checking endianness which does offer a more comprehensive approach, though I'm sure someone else on the KDE project might have a better solution!

Merge request reports