From 09b9f335159b1d2c1f0df606a022bb345b28f908 Mon Sep 17 00:00:00 2001 From: Ngo Iok Ui Date: Sun, 13 Jun 2021 18:29:12 +0800 Subject: [PATCH] Fix cc warnings --- third_party/fiat/curve25519.c | 2 +- third_party/fiat/internal.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/third_party/fiat/curve25519.c b/third_party/fiat/curve25519.c index e84073861..60237932a 100644 --- a/third_party/fiat/curve25519.c +++ b/third_party/fiat/curve25519.c @@ -3010,7 +3010,7 @@ void GFp_x25519_fe_neg(fe *f) { fe_carry(f, &t); } -void GFp_x25519_fe_tobytes(uint8_t s[32], const fe *h) { +void GFp_x25519_fe_tobytes(uint8_t *s, const fe *h) { fe_tobytes(s, h); } diff --git a/third_party/fiat/internal.h b/third_party/fiat/internal.h index 8f5f97a29..f859ef836 100644 --- a/third_party/fiat/internal.h +++ b/third_party/fiat/internal.h @@ -126,7 +126,7 @@ void GFp_x25519_ge_double_scalarmult_vartime(ge_p2 *r, const uint8_t *a, const ge_p3 *A, const uint8_t *b); int GFp_x25519_ge_frombytes_vartime(ge_p3 *h, const uint8_t *s); -void GFp_x25519_ge_scalarmult_base(ge_p3 *h, const uint8_t a[32]); +void GFp_x25519_ge_scalarmult_base(ge_p3 *h, const uint8_t *a); void GFp_x25519_sc_muladd(uint8_t *s, const uint8_t *a, const uint8_t *b, const uint8_t *c); void GFp_x25519_sc_mask(uint8_t a[32]); -- GitLab