Skip to content

Commit

Permalink
Fix a missing reseed counter incrementation in CTR drbg,
Browse files Browse the repository at this point in the history
see #3

Thanks @jimmy92120 for reporting this.
  • Loading branch information
rben-dev committed Mar 5, 2024
1 parent 95f4cd1 commit 632bda0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ctr_drbg.c
Original file line number Diff line number Diff line change
Expand Up @@ -1105,6 +1105,9 @@ drbg_error ctr_drbg_generate(drbg_ctx *ctx,
goto err;
}

/* Update the reseed counter */
ctx->reseed_counter++;

ret = CTR_DRBG_OK;
err:
return ret;
Expand Down

0 comments on commit 632bda0

Please sign in to comment.