mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-22 22:55:39 +01:00
Increase hamming distance by changing UECC_SUCCESS from 0 to FFAAAA
Signed-off-by: Andrzej Kurek <andrzej.kurek@arm.com>
This commit is contained in:
parent
a798e5d5cc
commit
c3b69edd2f
@ -85,7 +85,7 @@ extern "C" {
|
|||||||
/* Return values for functions, chosen with large Hamming distances between
|
/* Return values for functions, chosen with large Hamming distances between
|
||||||
* them (especially to SUCESS) to mitigate the impact of fault injection
|
* them (especially to SUCESS) to mitigate the impact of fault injection
|
||||||
* attacks flipping a low number of bits. */
|
* attacks flipping a low number of bits. */
|
||||||
#define UECC_SUCCESS 0
|
#define UECC_SUCCESS 0x00FFAAAA
|
||||||
#define UECC_FAILURE 0x75555555
|
#define UECC_FAILURE 0x75555555
|
||||||
#define UECC_FAULT_DETECTED 0x7aaaaaaa
|
#define UECC_FAULT_DETECTED 0x7aaaaaaa
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user