Increase the Hamming distance of uECC_generate_random_int returns

Signed-off-by: Andrzej Kurek <andrzej.kurek@arm.com>
This commit is contained in:
Andrzej Kurek 2020-06-12 06:32:13 -04:00
parent 8f52a8a8c0
commit 3a0df03364
No known key found for this signature in database
GPG key ID: 89A90840DC388527
3 changed files with 8 additions and 7 deletions

View file

@ -155,7 +155,8 @@ extern const uECC_word_t curve_b[NUM_ECC_WORDS];
* @param random OUT -- random integer in the range 0 < random < top
* @param top IN -- upper limit
* @param num_words IN -- number of words
* @return a random integer in the range 0 < random < top
* @return UECC_SUCCESS in case of success
* @return UECC_FAILURE upon failure
*/
int uECC_generate_random_int(uECC_word_t *random, const uECC_word_t *top,
wordcount_t num_words);