Fix the parameter type of gf_serialize
authorBernd Edlinger <bernd.edlinger@hotmail.de>
Sun, 22 Aug 2021 19:28:51 +0000 (21:28 +0200)
committerTomas Mraz <tomas@openssl.org>
Fri, 17 Sep 2021 12:44:41 +0000 (14:44 +0200)
commita7f58bdc1abe245dd09790e8f97d91df271578f4
tree3276e62b28e188258b5d21a6fed77298adaa3f31
parent9e51f877930dbd4216438a5da3c9612bf4d0a918
Fix the parameter type of gf_serialize

It is better to use array bounds for improved
gcc warning checks.

While "uint8_t*" allows arbitrary pointer arithmetic
using "uint8_t[SER_BYTES]" limits the pointer arithmetic
to the range 0..SER_BYTES.

Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/16376)
crypto/ec/curve448/f_generic.c
crypto/ec/curve448/field.h