Skip to content
This repository was archived by the owner on Mar 5, 2024. It is now read-only.

Commit 629c715

Browse files
fixing usage of additional input when generating ctr prng output
1 parent 853e01c commit 629c715

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/source/ctr_prng.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ int32_t tc_ctr_prng_generate(TCCtrPrng_t * const ctx,
279279
}
280280

281281
/* 10.2.1.5.1 step 6 */
282-
tc_ctr_prng_update(ctx, 0);
282+
tc_ctr_prng_update(ctx, additional_input_buf);
283283

284284
/* 10.2.1.5.1 step 7 */
285285
ctx->reseedCount++;

0 commit comments

Comments
 (0)