diff options
author | Nick Mathewson <nickm@torproject.org> | 2014-08-26 10:08:44 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2014-08-26 10:08:44 -0400 |
commit | b40ac6808f8a31f2f95de435036a6a7af111fdff (patch) | |
tree | a668d3a32778547b5f91086507cb6be56ab9cad9 /src/ext/ed25519/ref10/fe_0.c | |
parent | fdb7fc70d03d21d967db4928960241a624483a24 (diff) | |
download | tor-b40ac6808f8a31f2f95de435036a6a7af111fdff.tar.gz tor-b40ac6808f8a31f2f95de435036a6a7af111fdff.zip |
Add the ed25519 ref10 code verbatim from supercop-20140622
We might use libsodium or ed25519-donna later on, but for now, let's
see whether this is fast enough. We should use it in all cases when
performance doesn't matter.
Diffstat (limited to 'src/ext/ed25519/ref10/fe_0.c')
-rw-r--r-- | src/ext/ed25519/ref10/fe_0.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/ext/ed25519/ref10/fe_0.c b/src/ext/ed25519/ref10/fe_0.c new file mode 100644 index 0000000000..ec879d7337 --- /dev/null +++ b/src/ext/ed25519/ref10/fe_0.c @@ -0,0 +1,19 @@ +#include "fe.h" + +/* +h = 0 +*/ + +void fe_0(fe h) +{ + h[0] = 0; + h[1] = 0; + h[2] = 0; + h[3] = 0; + h[4] = 0; + h[5] = 0; + h[6] = 0; + h[7] = 0; + h[8] = 0; + h[9] = 0; +} |