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