diff options
author | Rob Austein <sra@hactrn.net> | 2016-09-16 08:13:42 -0400 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2016-09-16 08:13:42 -0400 |
commit | e99f94d6b77641fc21830e14ef0df46766573bc4 (patch) | |
tree | b24c50f3410d23fd3f20f3bb2ace2980e1c6c21f /hal_internal.h | |
parent | 38c4b787fa7c1f5e7fbf810cdda136621dd743b7 (diff) |
Revised ks_flash. Compiles, not yet tested.
Diffstat (limited to 'hal_internal.h')
-rw-r--r-- | hal_internal.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/hal_internal.h b/hal_internal.h index a6dc619..e779168 100644 --- a/hal_internal.h +++ b/hal_internal.h @@ -348,6 +348,10 @@ extern hal_error_t hal_set_pin(const hal_user_t user, #define HAL_MKM_FLASH_BACKUP_KLUDGE 1 #endif +#ifndef KEK_LENGTH +#define KEK_LENGTH (bitsToBytes(256)) +#endif + extern hal_error_t hal_mkm_get_kek(uint8_t *kek, size_t *kek_len, const size_t kek_max); extern hal_error_t hal_mkm_volatile_read(uint8_t *buf, const size_t len); @@ -356,7 +360,7 @@ extern hal_error_t hal_mkm_volatile_erase(const size_t len); #if HAL_MKM_FLASH_BACKUP_KLUDGE -#warning MKM flash backup kludge enabled. Do NOT use this in production! +/* #warning MKM flash backup kludge enabled. Do NOT use this in production! */ extern hal_error_t hal_mkm_flash_read(uint8_t *buf, const size_t len); extern hal_error_t hal_mkm_flash_write(const uint8_t * const buf, const size_t len); |