~mdw
/
catacomb
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
pub/t/x*: Rearrange the Monte-Carlo tests.
[catacomb]
/
symm
/
chacha.c
diff --git
a/symm/chacha.c
b/symm/chacha.c
index
655ecd0
..
2dcb125
100644
(file)
--- a/
symm/chacha.c
+++ b/
symm/chacha.c
@@
-747,7
+747,7
@@
static grand *grinit(const void *k, size_t ksz, const void *n,
g->r.r.ops = ops;
g->r.ops = myops;
chacha_init(&g->ctx, k, ksz, 0);
- myops->setnonce(g, n);
+
if (n)
myops->setnonce(g, n);
return (&g->r.r);
}