Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Salt entropy pool mixer with hw RTC date and time #206

Open
5 tasks
isaacvr opened this issue Oct 31, 2019 · 0 comments
Open
5 tasks

Salt entropy pool mixer with hw RTC date and time #206

isaacvr opened this issue Oct 31, 2019 · 0 comments
Labels

Comments

@isaacvr
Copy link
Contributor

isaacvr commented Oct 31, 2019

Feature description

Supply device RTC (i.e. RTC_TR and RTC_DR BCD registers) date and time when salting entropy

Is your feature request related to a problem? Please describe.
Need salt sources

Additional context
RTC not implemented in libopencm3 for STM32F2 family.

This is a type 3 salt source.

Possible implementation

  • Reimplement for f2 the RTC API for F1 in our local copy of libopencm3
  • Initialize RTC for the device in firmware's setup.c using the previous API
    • consider e.g. this example as a reference
    • Random date values at startup would be fine
  • Prepare for RTC periodic (auto) wakeup unit
  • Read RTC raw values and mix with entropy pool mixer
  • Convert RTC values to string and mix with entropy pool mixer

Notice that RCC clock source might already be initialized for SysTick timer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant