From 0849f6d77d85b57ec073835c8c556752a45b5882 Mon Sep 17 00:00:00 2001 From: Vincent Hanquez Date: Sat, 16 Jan 2016 11:35:25 +0000 Subject: [PATCH] comment the WIP sysrand_init --- cbits/cryptonite_sysrand.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/cbits/cryptonite_sysrand.c b/cbits/cryptonite_sysrand.c index 39a9c0c..b74ae8c 100644 --- a/cbits/cryptonite_sysrand.c +++ b/cbits/cryptonite_sysrand.c @@ -33,6 +33,14 @@ #include #include "cryptonite_sha512.h" +#if 0 +/* Meant to initialize random buffer with somewhat + * randomized values, without an actual source of entropy. + * commented until this is actually useful for anything + * + * real entropy is supposed to be xored to a sysrand_init'ed + * buffer. + */ void cryptonite_sysrand_init(uint8_t *buf, uint32_t sz) { struct timeval tv; @@ -44,3 +52,4 @@ void cryptonite_sysrand_init(uint8_t *buf, uint32_t sz) cryptonite_sha512_update(&ctx, (uint8_t *) &tv, sizeof(tv)); cryptonite_sha512_finalize(&ctx, out); } +#endif