https://123dok.net/document/nzwpg21q-hardware-and-arithmetic-for-hyperelliptic-curves-cryptography.html