wolfssl: always export wc_ecc_set_rng
authorDavid Bauer <mail@david-bauer.net>
Wed, 5 May 2021 23:48:04 +0000 (01:48 +0200)
committerDavid Bauer <mail@david-bauer.net>
Mon, 21 Jun 2021 20:43:15 +0000 (22:43 +0200)
commitf6d8c0cf2b47b55474f6f2604ac57bc8aedfeb08
tree8418e7aca3592c0cf49a7704d0d311a62a45e7d1
parent56228e939365d543933a87cac11109a7d5ccc619
wolfssl: always export wc_ecc_set_rng

Since commit 6467de5a8840 ("Randomize z ordinates in scalar
mult when timing resistant") wolfssl requires a RNG for an EC
key when the hardened built option is selected.

wc_ecc_set_rng is only available when built hardened, so there
is no safe way to install the RNG to the key regardless whether
or not wolfssl is compiled hardened.

Always export wc_ecc_set_rng so tools such as hostapd can install
RNG regardless of the built settings for wolfssl.

Signed-off-by: David Bauer <mail@david-bauer.net>
(cherry picked from commit ef9b103107aebd1a54f4360af3d9cf28d0544f13)
package/libs/wolfssl/Makefile
package/libs/wolfssl/patches/200-ecc-rng.patch [new file with mode: 0644]