android_kernel_samsung_univ.../lib/mpi
Michal Marek 81b3a56ed8 lib/mpi: Endianness fix
commit 3ee0cb5fb5eea2110db1b5cb7f67029b7be8a376 upstream.

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: 0f74fbf77d ("MPI: Fix mpi_read_buffer")
Signed-off-by: Michal Marek <mmarek@suse.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2016-05-04 14:48:51 -07:00
..
generic_mpih-add1.c
generic_mpih-lshift.c
generic_mpih-mul1.c
generic_mpih-mul2.c
generic_mpih-mul3.c
generic_mpih-rshift.c
generic_mpih-sub1.c
longlong.h move count_zeroes.h out of asm-generic 2015-10-15 00:21:07 +02:00
Makefile
mpi-bit.c
mpi-cmp.c
mpi-inline.h
mpi-internal.h
mpi-pow.c
mpicoder.c lib/mpi: Endianness fix 2016-05-04 14:48:51 -07:00
mpih-cmp.c
mpih-div.c
mpih-mul.c
mpiutil.c