aboutsummaryrefslogtreecommitdiffstats
path: root/lib/mpi/longlong.h
diff options
context:
space:
mode:
authorMichal Marek <[email protected]>2016-02-17 13:46:59 +0000
committerHerbert Xu <[email protected]>2016-02-27 19:26:30 +0000
commit3ee0cb5fb5eea2110db1b5cb7f67029b7be8a376 (patch)
tree1e4d55e95009a958d84441ef97025c28f060ba72 /lib/mpi/longlong.h
parentcrypto: rockchip - add hash support for crypto engine in rk3288 (diff)
downloadkernel-3ee0cb5fb5eea2110db1b5cb7f67029b7be8a376.tar.gz
kernel-3ee0cb5fb5eea2110db1b5cb7f67029b7be8a376.zip
lib/mpi: Endianness fix
The limbs are integers in the host endianness, so we can't simply iterate over the individual bytes. The current code happens to work on little-endian, because the order of the limbs in the MPI array is the same as the order of the bytes in each limb, but it breaks on big-endian. Fixes: 0f74fbf77d45 ("MPI: Fix mpi_read_buffer") Signed-off-by: Michal Marek <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
Diffstat (limited to 'lib/mpi/longlong.h')
0 files changed, 0 insertions, 0 deletions