Merge remote-tracking branch 'public/pr/2876' into baremetal

This commit is contained in:
Simon Butcher 2019-11-20 12:00:18 +00:00
commit a3877007e6
57 changed files with 319 additions and 290 deletions

View file

@ -82,7 +82,7 @@ int uECC_make_key_with_d(uint8_t *public_key, uint8_t *private_key,
/* This function is designed for test purposes-only (such as validating NIST
* test vectors) as it uses a provided value for d instead of generating
* it uniformly at random. */
memcpy (_private, d, NUM_ECC_BYTES);
mbedtls_platform_memcpy (_private, d, NUM_ECC_BYTES);
/* Computing public-key from private: */
if (EccPoint_compute_public_key(_public, _private, curve)) {