aboutsummaryrefslogtreecommitdiff
path: root/src/ext/ed25519
diff options
context:
space:
mode:
authorYawning Angel <yawning@schwanenlied.me>2015-08-12 16:01:28 +0000
committerYawning Angel <yawning@schwanenlied.me>2015-08-12 16:01:28 +0000
commit78fad380cda75b0de86f0d8d2b4d7e55f239f326 (patch)
treef7b9ca624ea88af62ed4f02b65c6408f404bd214 /src/ext/ed25519
parentaf898f54752f45fa2a8da28ca88379c89ca1f5a0 (diff)
downloadtor-78fad380cda75b0de86f0d8d2b4d7e55f239f326.tar.gz
tor-78fad380cda75b0de86f0d8d2b4d7e55f239f326.zip
Use ed25519-donna's batch verification support when applicable.
The code was always in our Ed25519 wrappers, so enable it when using the ed25519-donna backend, and deal with the mocking related crypto_rand silliness. Implements feature 16533.
Diffstat (limited to 'src/ext/ed25519')
-rw-r--r--src/ext/ed25519/donna/ed25519-randombytes-custom.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ext/ed25519/donna/ed25519-randombytes-custom.h b/src/ext/ed25519/donna/ed25519-randombytes-custom.h
index e49368bbaf..3fb0959fc4 100644
--- a/src/ext/ed25519/donna/ed25519-randombytes-custom.h
+++ b/src/ext/ed25519/donna/ed25519-randombytes-custom.h
@@ -13,5 +13,5 @@
static void
ED25519_FN(ed25519_randombytes_unsafe) (void *p, size_t len)
{
- crypto_rand(p, len);
+ crypto_rand_unmocked(p, len);
}