diff options
Diffstat (limited to 'components/service/crypto/provider/mbedcrypto/entropy_source/mock/mock_entropy_source.c')
-rw-r--r-- | components/service/crypto/provider/mbedcrypto/entropy_source/mock/mock_entropy_source.c | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/components/service/crypto/provider/mbedcrypto/entropy_source/mock/mock_entropy_source.c b/components/service/crypto/provider/mbedcrypto/entropy_source/mock/mock_entropy_source.c deleted file mode 100644 index f76448170..000000000 --- a/components/service/crypto/provider/mbedcrypto/entropy_source/mock/mock_entropy_source.c +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright (c) 2020, Arm Limited and Contributors. All rights reserved. - * - * SPDX-License-Identifier: BSD-3-Clause - */ -#include <mbedtls/entropy_poll.h> -#include <stdint.h> - -/* - * A mock entropy source without any hardware dependencies. Should not be - * used in production deployments. - */ -int mbedtls_hardware_poll(void *data, unsigned char *output, size_t len, size_t *olen) -{ - ((void) data); - ((void) output); - *olen = 0; - - if (len < sizeof(unsigned char) ) - return (0); - - *olen = sizeof(unsigned char); - - return (0); -} |