Michael Schwarcz
0024733ea0
Add update/get APIs for RTC time.
...
- rtc_update API does nothing if no RTC.
- rtc_get API returns 0 if no RTC.
2018-12-04 16:24:58 -06:00
Danny Shavit
be1bc94a0b
Fix secure_time_get_impl
...
We now handle the case of invalid boot_time, returning stored_time + secs_since_boot
2018-12-04 16:24:58 -06:00
Michael Schwarcz
493f1fc006
Disable secure-time on EV_COG_AD3029LZ due to small RAM size (64KB) and fix replay_blob test
2018-12-04 16:24:58 -06:00
Michael Schwarcz
fdfe8aed38
Disable secure-time on KL82Z due to small flash size (128KB)
2018-12-04 16:24:58 -06:00
Michael Schwarcz
6cd9af7070
Review fixes
2018-12-04 16:24:58 -06:00
Michael Schwarcz
139ce3891b
Disable secure-time on NUCLEO_F410RB due to small flash size (128KB)
2018-12-04 16:24:58 -06:00
Michael Schwarcz
bc86f4c3dd
Fix K22F build
2018-12-04 16:24:57 -06:00
Michael Schwarcz
0dd966dd0d
Build secure-time only on platform with NVSTORE and DEVICE_TRNG
...
- Add mbed_lib.json with SECURE_TIME_ENABLED macro defaulted to 1.
- Disable SECURE_TIME_ENABLED if NVSTORE or DEVICE_TRNG are disabled.
- Compile secure-time sources only if SECURE_TIME_ENABLED is enabled.
2018-12-04 16:24:57 -06:00
Michael Schwarcz
0476b21c69
CR fixes
2018-12-04 16:24:57 -06:00
Michael Schwarcz
53a86fb9b3
Use mbedtls_entropy_* for random bytes generation
2018-12-04 16:24:57 -06:00
Michael Schwarcz
e381a5f40e
Fix travis build
2018-12-04 16:24:57 -06:00
Michael Schwarcz
44f6b8a07c
Add secure_time library implementation
2018-12-04 16:24:57 -06:00