Dear Gui-Ye, Joost, i added your fixes to upstream (being myself the upstream dev) https://github.com/stef/liboprf/commit/8129a40faeda9c0457317c3a039c783d57dd4fb6
however i find it curious, that on riscv the test `ulimit -s 66000; ./tp-dkg-corrupt 3 2 ` segfaults, whil the other `ulimit -s 66000; ./tp-dkg 3 2` does not, i would love to debug this, but i have no hw to test this on. my suspicion is that maybe the stack size needs to be increased. would you try increasing the ulimit -s to something higher (e.g. double?) and see if that eliminates the segfault? thx.s