projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
SEC: Add OMAC1/2 message authentication.
[bertos.git]
/
bertos
/
sec
/
prng
/
isaac.c
diff --git
a/bertos/sec/prng/isaac.c
b/bertos/sec/prng/isaac.c
index 72d4a320734e0ac159553d696fbc07b6b542dc94..4e031c0be5d9a36d234088b8a39cd460a8a721d1 100644
(file)
--- a/
bertos/sec/prng/isaac.c
+++ b/
bertos/sec/prng/isaac.c
@@
-173,6
+173,7
@@
void isaac_init(IsaacContext *ctx)
ctx->prng.reseed = isaac_reseed;
ctx->prng.generate = isaac_generate;
ctx->prng.seed_len = sizeof(ctx->randrsl) / 2;
+ ctx->prng.seeded = 0;
ctx->randcnt = CONFIG_ISAAC_RANDSIZ*4;
memset(ctx->randrsl, 0, sizeof(ctx->randrsl));