diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2016-01-06 03:09:00 +0100 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2016-01-06 03:09:00 +0100 |
commit | 2dae1ed53a73d81bfb86778793a6bda265d5140d (patch) | |
tree | e037c4a663fc9d17906cc2045c488232ac223ece /sys/src/libauthsrv/ed448.mp | |
parent | e064752dd476b7a2f76567f8cc15f9c2645e5d3d (diff) |
auth: release dp9ik implementation and reentrant factotum
Diffstat (limited to 'sys/src/libauthsrv/ed448.mp')
-rw-r--r-- | sys/src/libauthsrv/ed448.mp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/sys/src/libauthsrv/ed448.mp b/sys/src/libauthsrv/ed448.mp new file mode 100644 index 000000000..89c57727b --- /dev/null +++ b/sys/src/libauthsrv/ed448.mp @@ -0,0 +1,11 @@ +# Edwards Curve Ed448-Goldilocks + +# x^2+y^2 = 1-39081x^2y^2 +# modulo p = 2^448 - 1^224 - 1 +ed448_curve(p,a,d,x,y) { + p = (1<<448) - (1<<224) - 1; + a = 1; + d = -39081; + x = 117812161263436946737282484343310064665180535357016373416879082147939404277809514858788439644911793978499419995990477371552926308078495; + y = 19; +} |