Skip to content

Commit 638a856

Browse files
committed
Update ret code to match docs and update docs
1 parent f407c3f commit 638a856

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

doc/dox_comments/header_files/random.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,7 @@ int wc_RNG_DRBG_Reseed(WC_RNG* rng, const byte* seed, word32 seedSz);
476476
477477
\return 0 If valid
478478
\return BAD_FUNC_ARG If seed is NULL
479-
\return RNG_FAILURE_E Validation failed
479+
\return ENTROPY_RT_E || ENTROPY_APT_E Validation failed
480480
481481
\param seed Seed to test
482482
\param seedSz Seed size

wolfcrypt/src/random.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -797,7 +797,7 @@ int wc_RNG_TestSeed(const byte* seed, word32 seedSz)
797797
int aptFailed = 0;
798798

799799
if (seed == NULL || seedSz == 0) {
800-
return DRBG_CONT_FAILURE;
800+
return BAD_FUNC_ARG;
801801
}
802802

803803
/* SP800-90B 4.4.1 - Repetition Count Test (RCT)

0 commit comments

Comments
 (0)