random: use private buffer

TEE_GenerateRandom() has the [out] annotation which mandates that the
buffer "SHALL not reside in a block of shared memory owned by a client
of the Trusted Application" [1]. Fix this by allocating a temporary
buffer from the heap.

[1] TEE Internal Core API Specification v1.1

Signed-off-by: Jerome Forissier <jerome@forissier.org>
Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org>
1 file changed
tree: c1a7aee2e6f6ba7a56329976d33bd2e3d56a9a47
  1. acipher/
  2. aes/
  3. hello_world/
  4. hotp/
  5. random/
  6. secure_storage/
  7. .gitignore
  8. Android.mk
  9. CMakeLists.txt
  10. CMakeToolchain.txt
  11. LICENSE
  12. Makefile
  13. README.md
README.md

OP-TEE Sample Applications

This git contains source code for sample host and Trusted Application that can be used directly in the OP-TEE project.

All official OP-TEE documentation has moved to http://optee.readthedocs.io. The information that used to be here in this git can be found under optee_examples.

// OP-TEE core maintainers