Add tests to check TRNG block in PKA HW
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux-bluefield (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
Focal |
Fix Released
|
Medium
|
Mahantesh Salimath |
Bug Description
There are a number of tests that can be carried out to verify the True Random Number Generator (TRNG) block in PKA HW. Perform these tests before using TRNG. These tests check if TRNG is functioning as expected. Disable TRNG if any of these tests fail.
SRU Justification:
[Impact]
* TRNG block in PKA HW may not be functioning as expected, without carrying out tests there is no way to verify its functionality. These tests are carried out early in the boot stage during ATF (ARM Trusted Firmware), carry out these tests again while loading PKA linux driver.
[Fix]
* Add tests to verify TRNG "pka: Test TRNG block before making it available."
[Test Case]
* Derive random bytes from TRNG in PKA HW via OpenSSL using 'pka' engine.
Ex:# openssl rand -engine pka 512.
[Regression Potential]
* If the any of the tests fail then TRNG will be disabled. Hence random bytes cannot be derived from PKA HW.
Changed in linux-bluefield (Ubuntu Focal): | |
status: | New → In Progress |
Changed in linux-bluefield (Ubuntu): | |
status: | New → Invalid |
Changed in linux-bluefield (Ubuntu Focal): | |
assignee: | nobody → Mahantesh Salimath (mahantesh92) |
importance: | Undecided → Medium |
status: | In Progress → Fix Committed |
This bug is awaiting verification that the kernel in -proposed solves the problem. Please test the kernel and update this bug with the results. If the problem is solved, change the tag 'verification- needed- focal' to 'verification- done-focal' . If the problem still exists, change the tag 'verification- needed- focal' to 'verification- failed- focal'.
If verification is not done by 5 working days from today, this fix will be dropped from the source code, and this bug will be closed.
See https:/ /wiki.ubuntu. com/Testing/ EnableProposed for documentation how to enable and use -proposed. Thank you!