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>
Fri, 21 May 2021 13:43:57 +0000 (15:43 +0200)
commitef9b103107aebd1a54f4360af3d9cf28d0544f13
tree7c001897b830f1ec00a3fc862323349c193fe6cd
parenta9ebd3a0ea968c7f28f9c0763089b67610ce1c1b
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>
package/libs/wolfssl/Makefile
package/libs/wolfssl/patches/200-ecc-rng.patch [new file with mode: 0644]