mirror of
https://github.com/yuzu-mirror/mbedtls.git
synced 2026-04-04 22:19:05 +00:00
replace user rand by platform rand in ecc delays
Signed-off-by: Shelly Liberman <shelly.liberman@arm.com>
This commit is contained in:
parent
6f3a987ae3
commit
05beb9ac70
3 changed files with 30 additions and 1 deletions
|
|
@ -67,6 +67,7 @@
|
|||
#include "mbedtls/platform_util.h"
|
||||
#include "mbedtls/sha256.h"
|
||||
#include <string.h>
|
||||
#include "mbedtls/platform_util.h"
|
||||
|
||||
/* Parameters for curve NIST P-256 aka secp256r1 */
|
||||
const uECC_word_t curve_p[NUM_ECC_WORDS] = {
|
||||
|
|
@ -427,7 +428,7 @@ void ecc_wait_state_reset(ecc_wait_state_t *ws)
|
|||
return;
|
||||
|
||||
ws->i = 0;
|
||||
g_rng_function(ws->delays, sizeof(ws->delays));
|
||||
mbedtls_platform_random_buf(ws->delays, sizeof(ws->delays));
|
||||
}
|
||||
|
||||
/* Computes result = left * right. Result must be 2 * num_words long.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue