summaryrefslogtreecommitdiffstats
path: root/crypto/ec
diff options
context:
space:
mode:
authorJuergen Christ <jchrist@linux.ibm.com>2021-05-20 13:27:43 +0200
committerTomas Mraz <tomas@openssl.org>2021-05-24 14:39:01 +0200
commit7217decc7c454eec4a6d4ce163ac44b4558fe03b (patch)
treedb412ddc85e992a5d7d54d50b0a846f4e0e9bd3e /crypto/ec
parent733094ec6b718ebced449b275a780ec3d0a361a5 (diff)
Fix warning in gf_serialize
Compiling under -Werror fails in gf_serialize: crypto/ec/curve448/f_generic.c:21:27: error: argument 1 of type 'uint8_t[56]' {aka 'unsigned char[56]'} with mismatched bound [-Werror=array-parameter=] 21 | void gf_serialize(uint8_t serial[SER_BYTES], const gf x, int with_hibit) | ~~~~~~~~^~~~~~~~~~~~~~~~~ In file included from crypto/ec/curve448/f_generic.c:12: crypto/ec/curve448/field.h:65:28: note: previously declared as 'uint8_t *' {aka 'unsigned char *'} void gf_serialize(uint8_t *serial, const gf x, int with_highbit); ~~~~~~~~~^~~~~~ Changed parameter to pointer to fix this warning. Signed-off-by: Juergen Christ <jchrist@linux.ibm.com> Reviewed-by: Paul Dale <pauli@openssl.org> Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/15376)
Diffstat (limited to 'crypto/ec')
-rw-r--r--crypto/ec/curve448/f_generic.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/ec/curve448/f_generic.c b/crypto/ec/curve448/f_generic.c
index 7e63998a21..3f4d7c7a9e 100644
--- a/crypto/ec/curve448/f_generic.c
+++ b/crypto/ec/curve448/f_generic.c
@@ -18,7 +18,7 @@ static const gf MODULUS = {
};
/* Serialize to wire format. */
-void gf_serialize(uint8_t serial[SER_BYTES], const gf x, int with_hibit)
+void gf_serialize(uint8_t *serial, const gf x, int with_hibit)
{
unsigned int j = 0, fill = 0;
dword_t buffer = 0;