aboutsummaryrefslogtreecommitdiff
path: root/core/tee
diff options
context:
space:
mode:
authorJens Wiklander <jens.wiklander@linaro.org>2018-06-14 11:12:01 +0200
committerJérôme Forissier <jerome.forissier@linaro.org>2018-06-18 10:01:13 +0200
commitea6cd9133a2627a0973855fa4c94bb02079e967e (patch)
treecf8357a915ad41ef2cc084e176f36ba2d4879fd7 /core/tee
parent249c24a353272a94c17898d3dfc0aaf8b2eda032 (diff)
Remove get_rng_array()
Removes get_rng_array() in favor of crypto_rng_read() which always uses the configured RNG implementation to draw random. Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
Diffstat (limited to 'core/tee')
-rw-r--r--core/tee/tee_cryp_utl.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/core/tee/tee_cryp_utl.c b/core/tee/tee_cryp_utl.c
index a7dfe342..aeaea6cb 100644
--- a/core/tee/tee_cryp_utl.c
+++ b/core/tee/tee_cryp_utl.c
@@ -15,23 +15,6 @@
#include <trace.h>
#include <utee_defines.h>
-#if !defined(CFG_WITH_SOFTWARE_PRNG)
-TEE_Result get_rng_array(void *buffer, int len)
-{
- char *buf_char = buffer;
- int i;
-
-
- if (buf_char == NULL)
- return TEE_ERROR_BAD_PARAMETERS;
-
- for (i = 0; i < len; i++)
- buf_char[i] = hw_get_random_byte();
-
- return TEE_SUCCESS;
-}
-#endif
-
TEE_Result tee_hash_get_digest_size(uint32_t algo, size_t *size)
{
switch (algo) {