]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: Octeon: Make octeon-md5 driver endian-agnostic
authorPaul Martin <paul.martin@codethink.co.uk>
Mon, 30 Mar 2015 16:01:00 +0000 (17:01 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Wed, 1 Apr 2015 15:22:15 +0000 (17:22 +0200)
commit113ae3ec65a9fe9272daedace533419536cfb752
tree58b14ab3d0390c9082a3796b69910f16debebe3b
parent855706fa86f878fc2e43806c10277f33292155db
MIPS: Octeon: Make octeon-md5 driver endian-agnostic

The octeon crypto co-processor expects values to be big endian.
Wrap the data transfers with cpu_to_be64() and be64_to_cpu()
transformations.

This passes for all the MD5 test vectors in crypto/testmgr.h

Signed-off-by: Paul Martin <paul.martin@codethink.co.uk>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/9631/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/cavium-octeon/crypto/octeon-crypto.h