summaryrefslogtreecommitdiff
path: root/scripts/parse-maintainers.pl
diff options
context:
space:
mode:
authorArd Biesheuvel <ard.biesheuvel@linaro.org>2019-10-23 11:50:44 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-12-13 08:43:09 +0100
commit8e6d97c5b01df9b069f8a32d104d57cde92c96aa (patch)
tree7b64d470d9c7705f46070e325da08f662c48a8b5 /scripts/parse-maintainers.pl
parentf1702e2047298bf19f502657f20290d6fbecee7f (diff)
crypto: ecdh - fix big endian bug in ECC library
commit f398243e9fd6a3a059c1ea7b380c40628dbf0c61 upstream. The elliptic curve arithmetic library used by the EC-DH KPP implementation assumes big endian byte order, and unconditionally reverses the byte and word order of multi-limb quantities. On big endian systems, the byte reordering is not necessary, while the word ordering needs to be retained. So replace the __swab64() invocation with a call to be64_to_cpu() which should do the right thing for both little and big endian builds. Fixes: 3c4b23901a0c ("crypto: ecdh - Add ECDH software support") Cc: <stable@vger.kernel.org> # v4.9+ Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts/parse-maintainers.pl')
0 files changed, 0 insertions, 0 deletions