third_party/fiat: replace memcpy with OPENSSL_memcpy

Align with the other use of `OPENSSL_memcpy` in `curve25519_64_adx.h`.
`string.h` will no longer be needed.

Signed-off-by: Jiaqi Gao <jiaqi.gao@intel.com>
This commit is contained in:
Jiaqi Gao 2023-10-30 13:46:20 +08:00 committed by Brian Smith
parent 1432533ce9
commit a9b88826e7

View File

@ -1,7 +1,6 @@
#include <stdbool.h>
#include <stdint.h>
#include <immintrin.h>
#include <string.h>
typedef uint64_t fe4[4];
typedef uint8_t fiat_uint1;
@ -469,7 +468,7 @@ __attribute__((target("adx,bmi2")))
void x25519_scalar_mult_adx(uint8_t out[32], const uint8_t scalar[32],
const uint8_t point[32]) {
uint8_t e[32];
memcpy(e, scalar, 32);
OPENSSL_memcpy(e, scalar, 32);
e[0] &= 248;
e[31] &= 127;
e[31] |= 64;