summaryrefslogtreecommitdiff
path: root/lib/crypto
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2019-01-07 22:47:42 -0800
committerOri Bernstein <ori@eigenstate.org>2019-01-12 00:03:23 -0800
commite24656bb54b092b936c28ba5c5147d2e91fd0169 (patch)
tree3dc366beffe45947d9f41a303b213ac3463789ff /lib/crypto
parente2253ed191455e8e7d1a97583a8eb13cbde8e129 (diff)
downloadmc-e24656bb54b092b936c28ba5c5147d2e91fd0169.tar.gz
Improve manpages (thanks BurnZeZ)
Diffstat (limited to 'lib/crypto')
-rw-r--r--lib/crypto/x25519.myr5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/crypto/x25519.myr b/lib/crypto/x25519.myr
index d267338..bef8ff2 100644
--- a/lib/crypto/x25519.myr
+++ b/lib/crypto/x25519.myr
@@ -50,7 +50,7 @@
use std
pkg crypto =
- const fdiff : (out : felem[:], in : felem[:] -> void)
+ const x25519 : (out : byte[:], inu : byte[:], inpt : byte[:] -> void)
;;
type felem = uint64
@@ -640,3 +640,6 @@ const curve25519 = {pub : byte[:/*32*/], secret : byte[:/*32*/], basepoint : byt
fmul(z[:], x[:], zmone[:])
fcontract(pub[:], z[:])
}
+
+const x25519 = {out, inu, inscalar
+}