blob: 3ba399cb846dd54a5448b5e56b56587681155a03 [file] [log] [blame]
AMCL is very simple to build for Go.
First - decide the modulus and curve type you want to use. Edit ROM.go
where indicated. You will probably want to use one of the curves whose
details are already in there.
Three example API files are provided, MPIN.go which
supports our M-Pin (tm) protocol, ECDH.go which supports elliptic
curve key exchange, digital signature and public key crypto, and RSA.go
which supports the RSA method.
In the ROM.go file you must provide the curve constants. Several examples
are provided there, if you are willing to use one of these.
For a quick jumpstart:-
export GOPATH=$PWD
go run ./src/
go run ./src/
go run ./src/