Skip to content

Commit

Permalink
comments the performance of TRNG
Browse files Browse the repository at this point in the history
Signed-off-by: PARKJIHOON <jh6186.park@samsung.com>
  • Loading branch information
jh6186 authored and andrewc-arm committed Jan 22, 2020
1 parent 3ba075b commit 8b0fb5f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions targets/TARGET_Samsung/security_subsystem/api/trng_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ int trng_get_bytes(trng_t *obj, uint8_t *output, size_t length, size_t *output_l
unsigned int ret = 0;

stRANDOM.pu08Data = (u08 *)output;
//generate an approximation of 1
ret = sss_generate_rawrandom(&stRANDOM, length);

*output_length = (size_t)stRANDOM.u32DataByteLen;
Expand Down

0 comments on commit 8b0fb5f

Please sign in to comment.