]> git.ipfire.org Git - thirdparty/hostap.git/commit
wolfSSL: Fix crypto_bignum_rshift() wrapper
authorJouni Malinen <jouni@codeaurora.org>
Thu, 17 May 2018 19:02:02 +0000 (22:02 +0300)
committerJouni Malinen <j@w1.fi>
Thu, 17 May 2018 19:02:02 +0000 (22:02 +0300)
commit9973129646af03565f6df8a5d173d3dee2bddcb2
treed220cb695ca8f31f2a377828728cd68ecaa4dcfc
parent4b2e03c42af69684665b53b3b7a51a82622aa3b5
wolfSSL: Fix crypto_bignum_rshift() wrapper

The n argument to this function is number of bits, not bytes, to shift.
As such, need to use mp_rshb() instead of mp_rshd(). This fixes EAP-pwd
with P-521 curve.

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
src/crypto/crypto_wolfssl.c