diff --git a/wolfcrypt/src/random.c b/wolfcrypt/src/random.c index 1c45b0f04..941faaf55 100644 --- a/wolfcrypt/src/random.c +++ b/wolfcrypt/src/random.c @@ -149,11 +149,11 @@ enum { typedef struct DRBG { Sha256 sha; + word32 reseedCtr; + word32 lastBlock; byte digest[SHA256_DIGEST_SIZE]; byte V[DRBG_SEED_LEN]; byte C[DRBG_SEED_LEN]; - word32 reseedCtr; - word32 lastBlock; byte matchCount; } DRBG; diff --git a/wolfssl/wolfcrypt/random.h b/wolfssl/wolfcrypt/random.h index 46103192c..c61c78e5d 100644 --- a/wolfssl/wolfcrypt/random.h +++ b/wolfssl/wolfcrypt/random.h @@ -82,8 +82,8 @@ struct DRBG; /* Private DRBG state */ /* Hash-based Deterministic Random Bit Generator */ typedef struct RNG { - OS_Seed seed; struct DRBG* drbg; + OS_Seed seed; byte status; } RNG;