Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
mbedtls_entropy_config.h@126:9bc33f8b57d5, 2019-07-07 (annotated)
- Committer:
- ocomeni
- Date:
- Sun Jul 07 20:36:41 2019 +0000
- Branch:
- PassingRegression
- Revision:
- 126:9bc33f8b57d5
- Parent:
- 73:6f5021cbe752
added some initial error handling:; - on an mbed os crash, the system now resets.; currently testing
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| ocomeni | 73:6f5021cbe752 | 1 | /* |
| ocomeni | 73:6f5021cbe752 | 2 | * Copyright (C) 2006-2016, ARM Limited, All Rights Reserved |
| ocomeni | 73:6f5021cbe752 | 3 | * SPDX-License-Identifier: Apache-2.0 |
| ocomeni | 73:6f5021cbe752 | 4 | * |
| ocomeni | 73:6f5021cbe752 | 5 | * Licensed under the Apache License, Version 2.0 (the "License"); you may |
| ocomeni | 73:6f5021cbe752 | 6 | * not use this file except in compliance with the License. |
| ocomeni | 73:6f5021cbe752 | 7 | * You may obtain a copy of the License at |
| ocomeni | 73:6f5021cbe752 | 8 | * |
| ocomeni | 73:6f5021cbe752 | 9 | * http://www.apache.org/licenses/LICENSE-2.0 |
| ocomeni | 73:6f5021cbe752 | 10 | * |
| ocomeni | 73:6f5021cbe752 | 11 | * Unless required by applicable law or agreed to in writing, software |
| ocomeni | 73:6f5021cbe752 | 12 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT |
| ocomeni | 73:6f5021cbe752 | 13 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| ocomeni | 73:6f5021cbe752 | 14 | * See the License for the specific language governing permissions and |
| ocomeni | 73:6f5021cbe752 | 15 | * limitations under the License. |
| ocomeni | 73:6f5021cbe752 | 16 | * |
| ocomeni | 73:6f5021cbe752 | 17 | * This file is part of mbed TLS (https://tls.mbed.org) |
| ocomeni | 73:6f5021cbe752 | 18 | */ |
| ocomeni | 73:6f5021cbe752 | 19 | |
| ocomeni | 73:6f5021cbe752 | 20 | #include "select-demo.h" |
| ocomeni | 73:6f5021cbe752 | 21 | |
| ocomeni | 73:6f5021cbe752 | 22 | /* Enable entropy for devices with TRNG. This means entropy is disabled for all other targets. */ |
| ocomeni | 73:6f5021cbe752 | 23 | /* Do **NOT** deploy this code in production on other targets! */ |
| ocomeni | 73:6f5021cbe752 | 24 | /* See https://tls.mbed.org/kb/how-to/add-entropy-sources-to-entropy-pool */ |
| ocomeni | 73:6f5021cbe752 | 25 | #if defined(DEVICE_TRNG) |
| ocomeni | 73:6f5021cbe752 | 26 | #undef MBEDTLS_NO_DEFAULT_ENTROPY_SOURCES |
| ocomeni | 73:6f5021cbe752 | 27 | #undef MBEDTLS_TEST_NULL_ENTROPY |
| ocomeni | 73:6f5021cbe752 | 28 | #endif |