From a9b88826e7826a6f9422680fb6240f75511cf2c7 Mon Sep 17 00:00:00 2001 From: Jiaqi Gao Date: Mon, 30 Oct 2023 13:46:20 +0800 Subject: [PATCH] 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 --- third_party/fiat/curve25519_64_adx.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/third_party/fiat/curve25519_64_adx.h b/third_party/fiat/curve25519_64_adx.h index 9dcbb69fa..0906fda81 100644 --- a/third_party/fiat/curve25519_64_adx.h +++ b/third_party/fiat/curve25519_64_adx.h @@ -1,7 +1,6 @@ #include #include #include -#include 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;