mirror of
https://github.com/tillitis/tillitis-key1.git
synced 2024-12-29 17:36:26 -05:00
testfw: test that UDI can't be read app-mode
This commit is contained in:
parent
11c8eec7b8
commit
c1b71b7ba6
@ -187,6 +187,13 @@ int main()
|
||||
anyfailed = 1;
|
||||
}
|
||||
|
||||
// Should NOT be able to read from UDI in app-mode.
|
||||
wordcpy(udi_local, (void *)udi, UDI_WORDS);
|
||||
if (!memeq(udi_local, zeros, UDI_WORDS * 4)) {
|
||||
puts("FAIL: Read from UDI in app-mode\r\n");
|
||||
anyfailed = 1;
|
||||
}
|
||||
|
||||
uint32_t cdi_local[CDI_WORDS];
|
||||
uint32_t cdi_local2[CDI_WORDS];
|
||||
wordcpy(cdi_local, (void *)cdi, CDI_WORDS);
|
||||
|
Loading…
Reference in New Issue
Block a user