Vergil Cola
/
MQTTGateway2
Fork of my original MQTTGateway
mbedtls_entropy_config.h@0:a1734fe1ec4b, 2017-04-08 (annotated)
- Committer:
- vpcola
- Date:
- Sat Apr 08 14:43:14 2017 +0000
- Revision:
- 0:a1734fe1ec4b
Initial commit
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
vpcola | 0:a1734fe1ec4b | 1 | /* |
vpcola | 0:a1734fe1ec4b | 2 | * Copyright (C) 2006-2016, ARM Limited, All Rights Reserved |
vpcola | 0:a1734fe1ec4b | 3 | * SPDX-License-Identifier: Apache-2.0 |
vpcola | 0:a1734fe1ec4b | 4 | * |
vpcola | 0:a1734fe1ec4b | 5 | * Licensed under the Apache License, Version 2.0 (the "License"); you may |
vpcola | 0:a1734fe1ec4b | 6 | * not use this file except in compliance with the License. |
vpcola | 0:a1734fe1ec4b | 7 | * You may obtain a copy of the License at |
vpcola | 0:a1734fe1ec4b | 8 | * |
vpcola | 0:a1734fe1ec4b | 9 | * http://www.apache.org/licenses/LICENSE-2.0 |
vpcola | 0:a1734fe1ec4b | 10 | * |
vpcola | 0:a1734fe1ec4b | 11 | * Unless required by applicable law or agreed to in writing, software |
vpcola | 0:a1734fe1ec4b | 12 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT |
vpcola | 0:a1734fe1ec4b | 13 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
vpcola | 0:a1734fe1ec4b | 14 | * See the License for the specific language governing permissions and |
vpcola | 0:a1734fe1ec4b | 15 | * limitations under the License. |
vpcola | 0:a1734fe1ec4b | 16 | * |
vpcola | 0:a1734fe1ec4b | 17 | * This file is part of mbed TLS (https://tls.mbed.org) |
vpcola | 0:a1734fe1ec4b | 18 | */ |
vpcola | 0:a1734fe1ec4b | 19 | #ifndef __MBEDTLS_ENTROPY_H__ |
vpcola | 0:a1734fe1ec4b | 20 | #define __MBEDTLS_ENTROPY_H__ |
vpcola | 0:a1734fe1ec4b | 21 | |
vpcola | 0:a1734fe1ec4b | 22 | /* Enable entropy for K64F and K22F. This means entropy is disabled for all other targets. */ |
vpcola | 0:a1734fe1ec4b | 23 | /* Do **NOT** deploy this code in production on other targets! */ |
vpcola | 0:a1734fe1ec4b | 24 | /* See https://tls.mbed.org/kb/how-to/add-entropy-sources-to-entropy-pool */ |
vpcola | 0:a1734fe1ec4b | 25 | #if defined(TARGET_K64F) || defined(TARGET_K22F) || defined(TARGET_NUCLEO_L476RG) |
vpcola | 0:a1734fe1ec4b | 26 | #undef MBEDTLS_NO_DEFAULT_ENTROPY_SOURCES |
vpcola | 0:a1734fe1ec4b | 27 | #undef MBEDTLS_TEST_NULL_ENTROPY |
vpcola | 0:a1734fe1ec4b | 28 | #endif |
vpcola | 0:a1734fe1ec4b | 29 | |
vpcola | 0:a1734fe1ec4b | 30 | #if !defined(MBEDTLS_ENTROPY_HARDWARE_ALT) && \ |
vpcola | 0:a1734fe1ec4b | 31 | !defined(MBEDTLS_ENTROPY_NV_SEED) && !defined(MBEDTLS_TEST_NULL_ENTROPY) |
vpcola | 0:a1734fe1ec4b | 32 | #error "This hardware does not have an entropy source." |
vpcola | 0:a1734fe1ec4b | 33 | #endif /* !MBEDTLS_ENTROPY_HARDWARE_ALT && !MBEDTLS_ENTROPY_NV_SEED && |
vpcola | 0:a1734fe1ec4b | 34 | * !MBEDTLS_TEST_NULL_ENTROPY */ |
vpcola | 0:a1734fe1ec4b | 35 | |
vpcola | 0:a1734fe1ec4b | 36 | #if !defined(MBEDTLS_SHA1_C) |
vpcola | 0:a1734fe1ec4b | 37 | #define MBEDTLS_SHA1_C |
vpcola | 0:a1734fe1ec4b | 38 | #endif /* !MBEDTLS_SHA1_C */ |
vpcola | 0:a1734fe1ec4b | 39 | |
vpcola | 0:a1734fe1ec4b | 40 | /* |
vpcola | 0:a1734fe1ec4b | 41 | * This value is sufficient for handling 2048 bit RSA keys. |
vpcola | 0:a1734fe1ec4b | 42 | * |
vpcola | 0:a1734fe1ec4b | 43 | * Set this value higher to enable handling larger keys, but be aware that this |
vpcola | 0:a1734fe1ec4b | 44 | * will increase the stack usage. |
vpcola | 0:a1734fe1ec4b | 45 | */ |
vpcola | 0:a1734fe1ec4b | 46 | #define MBEDTLS_MPI_MAX_SIZE 256 |
vpcola | 0:a1734fe1ec4b | 47 | |
vpcola | 0:a1734fe1ec4b | 48 | #define MBEDTLS_MPI_WINDOW_SIZE 1 |
vpcola | 0:a1734fe1ec4b | 49 | |
vpcola | 0:a1734fe1ec4b | 50 | #endif |