mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-22 16:45:41 +01:00
Change the tinycrypt return values to be below 256
Thanks to this change the produced ASM does not need an additional instruction to place the constant value in a register, but can compare it directly. Signed-off-by: Andrzej Kurek <andrzej.kurek@arm.com>
This commit is contained in:
parent
858e4325d2
commit
e6d8db0f41
@ -85,9 +85,9 @@ 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 0x00FFAAAA
|
||||
#define UECC_FAILURE 0x75555555
|
||||
#define UECC_FAULT_DETECTED 0x7aaaaaaa
|
||||
#define UECC_SUCCESS 0xCD
|
||||
#define UECC_FAILURE 0x52
|
||||
#define UECC_FAULT_DETECTED 0x3B
|
||||
|
||||
/* Word size (4 bytes considering 32-bits architectures) */
|
||||
#define uECC_WORD_SIZE 4
|
||||
|
Loading…
Reference in New Issue
Block a user