[v1, 10/10] examples/fips_validation: add extra space in JSON buffer
Dooley, Brian
brian.dooley at intel.com
Mon Feb 27 10:27:45 CET 2023
Hi Gowrishankar,
> -----Original Message-----
> From: Gowrishankar Muthukrishnan <gmuthukrishn at marvell.com>
> Sent: Monday 6 February 2023 14:46
> To: dev at dpdk.org
> Cc: Anoob Joseph <anoobj at marvell.com>; jerinj at marvell.com; Akhil Goyal
> <gakhil at marvell.com>; Dooley, Brian <brian.dooley at intel.com>; Gowrishankar
> Muthukrishnan <gmuthukrishn at marvell.com>
> Subject: [v1, 10/10] examples/fips_validation: add extra space in JSON buffer
>
> Current test buffer to copy input data of maximum possible length did not
> account NULL character, due to which a last input character is always ignored
> and it causes tests like RSA SIGVER for modulo of 4096 bits to fail. This patch
> fixes it.
>
> Fixes: 0b65d54f3a4 ("examples/fips_validation: fix JSON buffer size")
>
> Signed-off-by: Gowrishankar Muthukrishnan <gmuthukrishn at marvell.com>
> ---
> examples/fips_validation/fips_validation.h | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/examples/fips_validation/fips_validation.h
> b/examples/fips_validation/fips_validation.h
> index c4988053c1..abc1d64742 100644
> --- a/examples/fips_validation/fips_validation.h
> +++ b/examples/fips_validation/fips_validation.h
> @@ -247,7 +247,7 @@ struct ecdsa_interim_data {
> * Esp, in asym op, modulo bits decide char buffer size.
> * max = (modulo / 4)
> */
> -#define FIPS_TEST_JSON_BUF_LEN (4096 / 4)
> +#define FIPS_TEST_JSON_BUF_LEN ((4096 / 4) + 1)
>
> struct fips_test_json_info {
> /* Information used for reading from json */
> --
> 2.25.1
Acked-by: Brian Dooley <brian.dooley at intel.com>
More information about the dev
mailing list