plan9fox/sys/src/libsec
cinap_lenrek a6d5f9ccae fix blowfish endianess confusion (thanks erik)
from /n/sources/patch/blowfish/readme:

Blowfish is broken. The order of the bytes in the ciphertext
is wrong. The problem is the conversion from the ciphertext
plaintext block to the array of u32int used by the core funcions
and vice versa.

This code has been tested on big endian and little endian
machines.

A test program is also included, bftets.c. It uses the
test vectors of blowfish available at
https://www.schneier.com/code/vectors.txt
2014-02-20 18:32:47 +01:00
..
386 Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
alpha Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
amd64 libc and ape support for amd64 2014-02-01 10:31:41 +01:00
arm Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
mips Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
port fix blowfish endianess confusion (thanks erik) 2014-02-20 18:32:47 +01:00
power Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
mkfile Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00