~mdw
/
catacomb
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
progs/perftest.c: Use from Glibc syscall numbers.
[catacomb]
/
math
/
f25519.h
diff --git
a/math/f25519.h
b/math/f25519.h
index
fc75546
..
7ecb6c9
100644
(file)
--- a/
math/f25519.h
+++ b/
math/f25519.h
@@
-55,6
+55,13
@@
typedef union {
# define F25519_IMPL 10
#endif
# define F25519_IMPL 10
#endif
+#if F25519_IMPL == 26
+ typedef int32 f25519_piece;
+#endif
+#if F25519_IMPL == 10
+ typedef int16 f25519_piece;
+#endif
+
/*----- Functions provided ------------------------------------------------*/
/* --- @f25519_set@ --- *
/*----- Functions provided ------------------------------------------------*/
/* --- @f25519_set@ --- *
@@
-85,7
+92,7
@@
extern void f25519_set(f25519 */*x*/, int /*a*/);
* toleration of them is considered a performance feature.
*
* Some specifications, e.g., RFC7748, require the topmost bit
* toleration of them is considered a performance feature.
*
* Some specifications, e.g., RFC7748, require the topmost bit
- * (i.e., bit 7 of @
w
v[31]@) to be ignored. Callers
+ * (i.e., bit 7 of @
x
v[31]@) to be ignored. Callers
* implementing such specifications should clear the bit
* explicitly. (It's much easier for a caller who wants the bit
* to be ignored to clear it than for a caller who wants the bit
* implementing such specifications should clear the bit
* explicitly. (It's much easier for a caller who wants the bit
* to be ignored to clear it than for a caller who wants the bit