pkg/micro-ecc: Use random API instead of hwrng#7393
pkg/micro-ecc: Use random API instead of hwrng#7393tobhe wants to merge 2 commits intoRIOT-OS:masterfrom
Conversation
|
#7390 has been merged, so there is nothing more this is waiting for |
|
@tobhe basically I agree with your proposal. However, I'm not really familiar with that package and just realized there are two tests, whereas one explicitly requires hwrng. Wouldn't that require changes as well? Please elaborate on that. Furthermore, the pkg REAMDE needs adaptation. |
|
Ping @tobhe? |
|
@PeterKietzmann you're right. I think best would be to merge those tests as both can and should work for every device now. |
353e6e6 to
0077b4c
Compare
|
ok, so i stitched the two old tests together and it is still working for me on 'native'. |
| # Use a custom global timeout for slow hardware. On microbit (nrf51), the | ||
| # test completes in 80s. | ||
| TIMEOUT = 100 | ||
| # test completes in 120s. |
There was a problem hiding this comment.
The 120s are copied from the old pkg_micro-ecc-with-HWRNG test. This is probably bogus, because the test changed quite a bit. Still better than 80s.
|
@tobhe thanks for the cleanup.
|
I have tested this on the nucleo-f411re and on native because that's what i had at hand. Both ran without failures. I guess i could need some help for tests on further hardware here. Any details on what broke on the boards you tested?
Right, i will look it up and fix it.
Good idea, will do. |
|
@tobhe thanks for the feedback!
|
Indeed, i tested it again later yesterday and got the same error. |
|
So, I tested it on a nucleo-f103rb and the test succeeds with the latest fix. @PeterKietzmann it would be nice if you could test and see if it works on your hardware now (whenever you find the time). I still want to look through the documentation and the test once more to see if it is consistent with the changes i made. Also I'd like to make the SHA1PRNG a dependency, but I don't know what I have to do to make this work. Is this just a FEATURES_REQUIRED in the Makefile? |
|
@tobhe thanks for addressing. Did you amend your fix? Cause I can't see what the fix was... I think we need to fix this warning: With boards, the test ( |
|
Same one nucleo-f401rb, nucleo-l073rz and samr21-xpro. Not on native. |
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you want me to ignore this issue, please mark it with the "State: don't stale" label. Thank you for your contributions. |
|
@tobhe will fix this PR before the stalebot closes it? |
Now at least the closing is delayed by another 7 month ;-) |
|
Once again a random ping |
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you want me to ignore this issue, please mark it with the "State: don't stale" label. Thank you for your contributions. |
Use the
random_bytes()function from #7390 instead ofhwrng_read()in the micro-ecc package in order to increase usability for devices which do not support hwrng.There should be no loss of security as random can be seeded with hwrng.