diff options
author | Nick Mathewson <nickm@torproject.org> | 2014-08-31 19:39:43 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2014-09-25 15:08:32 -0400 |
commit | 7ca470e13c70eaff483010e4b5c8f1f3076b3b7e (patch) | |
tree | 4660148ab6c1925122a50357c06121b3b229d7c5 /src/test/slow_ed25519.py | |
parent | d10e1bdec4415a0676e12f9f909509a38c5d5b39 (diff) | |
download | tor-7ca470e13c70eaff483010e4b5c8f1f3076b3b7e.tar.gz tor-7ca470e13c70eaff483010e4b5c8f1f3076b3b7e.zip |
Add a reference implementation of our ed25519 modifications
Also, use it to generate test vectors, and add those test vectors
to test_crypto.c
This is based on ed25519.py from the ed25519 webpage; the kludgy hacks
are my own.
Diffstat (limited to 'src/test/slow_ed25519.py')
-rw-r--r-- | src/test/slow_ed25519.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/test/slow_ed25519.py b/src/test/slow_ed25519.py index 338007951a..f44708b200 100644 --- a/src/test/slow_ed25519.py +++ b/src/test/slow_ed25519.py @@ -2,7 +2,11 @@ # http://ed25519.cr.yp.to/python/ed25519.py . # It is in the public domain. # -# It isn't constant-time. Don't use it except for testing. +# It isn't constant-time. Don't use it except for testing. Also, see +# warnings about how very slow it is. Only use this for generating +# test vectors, I'd suggest. +# +# Don't edit this file. Mess with ed25519_ref.py import hashlib |