Skip to content

Commit

Permalink
architecture: porting_guidelines: mention HWRNG PTA
Browse files Browse the repository at this point in the history
Mention HWRNG PTA service configuration switch added since 3.14.0.

Acked-by: Jens Wiklander <jens.wiklander@linaro.org>
Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org>
  • Loading branch information
etienne-lms authored and jbech-linaro committed Feb 5, 2023
1 parent 2412f48 commit 6fede30
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions architecture/porting_guidelines.rst
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,14 @@ If your platform has a hardware entropy source, you should set
``CFG_WITH_SOFTWARE_PRNG`` to ``n``, and provide an implementation for
``hw_get_random_bytes()``, which returns multiple bytes of entropy.

When ``CFG_WITH_SOFTWARE_PRNG=n``, the platform can enable a PTA service for
normal world to retrieve good quality random bytes. See configuration
switches ``CFG_HWRNG_PTA`` and ``CFG_HWRNG_QUALITY``, from 0 to 1024.

When ``CFG_WITH_SOFTWARE_PRNG=n``, the random number generator is made
available to OP-TEE drivers and frameworks, including Trusted Applications
(thoguh GP TEE Internal Core API) and normal world (when ``CFG_HWRNG_PTA=y``).

Power Management / PSCI
***********************
In the :ref:`add_a_new_platform` section where we talked about the file
Expand Down

0 comments on commit 6fede30

Please sign in to comment.