"Feng Li" lifeng8425@stu.xmu.edu.cn writes:
We agree with this approach. We believe updating the documentation to explicitly require a non‑zero IV length is necessary. As for the code change, we suggest adding assert(length > 0); at the beginning of the function body of gcm_set_iv in nettle/gcm.c.
Done now, see https://git.lysator.liu.se/nettle/nettle/-/commit/bb9bba13cc327d578e7dab2921...
Regards, /Niels