Merge pull request #3619 from AndrzejKurek/fi-uecc-return-value

Change the tinycrypt return values to be below 256
This commit is contained in:
Andrzej Kurek 2020-08-31 14:53:39 +02:00 committed by GitHub
commit a00c3eeaca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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