Skip to content

Commit

Permalink
Merge pull request #4 from libecc/main
Browse files Browse the repository at this point in the history
Fix a missing reseed counter incrementation in CTR drbg,
  • Loading branch information
ae-anssi authored Mar 11, 2024
2 parents 95f4cd1 + 632bda0 commit ea2d18b
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 ea2d18b

Please sign in to comment.