From f6b786cfb52cf8f4240f235587f907d37753ba6d Mon Sep 17 00:00:00 2001 From: David Garske Date: Wed, 7 Sep 2016 09:23:43 -0700 Subject: [PATCH] Updated the random.h source inline comments to clarify SHA256 and RC4. --- wolfssl/wolfcrypt/random.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wolfssl/wolfcrypt/random.h b/wolfssl/wolfcrypt/random.h index 29d3a9385..1669a6e26 100644 --- a/wolfssl/wolfcrypt/random.h +++ b/wolfssl/wolfcrypt/random.h @@ -48,9 +48,9 @@ /* RNG supports the following sources (in order): * 1. CUSTOM_RAND_GENERATE_BLOCK: Defines name of function as RNG source and * bypasses the P-RNG. - * 2. HAVE_HASHDRBG && !SHA256 (default). Uses SHA256 based P-RNG - * seeded via wc_GenerateSeed. - * 3. !HAVE_HASHDRBG && RC4 enabled. Uses RC4 + * 2. HAVE_HASHDRBG && !NO_SHA256 (SHA256 enabled): Uses SHA256 based P-RNG + * seeded via wc_GenerateSeed. This is the default source. + * 3. !NO_RC4 (RC4 enabled): Uses RC4 */ #if defined(CUSTOM_RAND_GENERATE_BLOCK)