diff options
Diffstat (limited to 'common/ec_efs.c')
-rw-r--r-- | common/ec_efs.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/common/ec_efs.c b/common/ec_efs.c index 9cc4061882..9952e0bc1c 100644 --- a/common/ec_efs.c +++ b/common/ec_efs.c @@ -281,6 +281,16 @@ void ec_efs_print_status(void) #endif } +#ifdef CR50_RELAXED +void ec_efs_corrupt_hash(void) +{ + int i; + + for (i = 0; i < SHA256_DIGEST_SIZE; i++) + ec_efs_ctx.hash[i] = ~ec_efs_ctx.hash[i] + 0x01; +} +#endif + #ifdef BOARD_HOST uint8_t ec_efs_get_boot_mode(void) { |