From c3b69edd2f84a121325a466748469c799d409e18 Mon Sep 17 00:00:00 2001 From: Andrzej Kurek Date: Thu, 16 Jul 2020 11:33:34 -0400 Subject: [PATCH] Increase hamming distance by changing UECC_SUCCESS from 0 to FFAAAA Signed-off-by: Andrzej Kurek --- include/tinycrypt/ecc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/tinycrypt/ecc.h b/include/tinycrypt/ecc.h index 57aa5087d..4c20729ac 100644 --- a/include/tinycrypt/ecc.h +++ b/include/tinycrypt/ecc.h @@ -85,7 +85,7 @@ extern "C" { /* Return values for functions, chosen with large Hamming distances between * them (especially to SUCESS) to mitigate the impact of fault injection * attacks flipping a low number of bits. */ -#define UECC_SUCCESS 0 +#define UECC_SUCCESS 0x00FFAAAA #define UECC_FAILURE 0x75555555 #define UECC_FAULT_DETECTED 0x7aaaaaaa