move attestion key to not be part of firmware

This commit is contained in:
Conor Patrick
2018-12-10 20:37:12 -05:00
parent 94140a0aa9
commit a96ff8eb63
3 changed files with 38 additions and 7 deletions

View File

@@ -17,7 +17,7 @@
// Storage of FIDO2 resident keys
#define RK_NUM_PAGES 10
#define RK_START_PAGE (PAGES - 14)
#define RK_END_PAGE (PAGES - 14 + RK_NUM_PAGES)
#define RK_END_PAGE (PAGES - 14 + RK_NUM_PAGES) // not included
// Start of application code
#ifndef APPLICATION_START_PAGE
@@ -25,6 +25,10 @@
#endif
#define APPLICATION_START_ADDR (0x08000000 + ((APPLICATION_START_PAGE)*PAGE_SIZE))
// where attestation key is located
#define ATTESTATION_KEY_PAGE (PAGES - 15)
#define ATTESTATION_KEY_ADDR (0x08000000 + ATTESTATION_KEY_PAGE*PAGE_SIZE)
// End of application code. Leave some extra room for future data storage.
// NOT included in application
#define APPLICATION_END_PAGE ((PAGES - 19))