https://123dok.com/document/yjonx3pz-elliptic-curve-cryptography-an-implementation-guide.html