Start verifying that code which should be constant-time really is.
[catacomb] / symm / salsa20.c
index 1528598..ff6efe3 100644 (file)
@@ -767,7 +767,7 @@ static grand *grinit(const void *k, size_t ksz, const void *n,
     g->r.r.ops = ops;
     g->r.ops = myops;
     salsa20_init(&g->ctx, k, ksz, 0);
-    myops->setnonce(g, n);
+    if (n) myops->setnonce(g, n);
     return (&g->r.r);
 }