Sample program for communicating with Fujitsuu IoT Platform using HTTP
Dependencies: AsciiFont GR-PEACH_video GraphicsFramework LCD_shield_config R_BSP USBHost_custom easy-connect-gr-peach mbed-http picojson BM1383GLV KX022 rohm-sensor-hal rohm-bh1745
mbedtls_entropy_config.h
00001 /* 00002 * Copyright (C) 2006-2016, ARM Limited, All Rights Reserved 00003 * SPDX-License-Identifier: Apache-2.0 00004 * 00005 * Licensed under the Apache License, Version 2.0 (the "License"); you may 00006 * not use this file except in compliance with the License. 00007 * You may obtain a copy of the License at 00008 * 00009 * http://www.apache.org/licenses/LICENSE-2.0 00010 * 00011 * Unless required by applicable law or agreed to in writing, software 00012 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 00013 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00014 * See the License for the specific language governing permissions and 00015 * limitations under the License. 00016 * 00017 * This file is part of mbed TLS (https://tls.mbed.org) 00018 */ 00019 00020 #include "select-demo.h" 00021 00022 /* Enable entropy for K64F and K22F. This means entropy is disabled for all other targets. */ 00023 /* Do **NOT** deploy this code in production on other targets! */ 00024 /* See https://tls.mbed.org/kb/how-to/add-entropy-sources-to-entropy-pool */ 00025 #if defined(TARGET_K64F) || defined(TARGET_K22F) 00026 #undef MBEDTLS_NO_DEFAULT_ENTROPY_SOURCES 00027 #undef MBEDTLS_TEST_NULL_ENTROPY 00028 #endif 00029 00030 #if DEMO == DEMO_HTTPS 00031 00032 #if !defined(MBEDTLS_ENTROPY_HARDWARE_ALT) && \ 00033 !defined(MBEDTLS_ENTROPY_NV_SEED) && !defined(MBEDTLS_TEST_NULL_ENTROPY) 00034 #error "This hardware does not have an entropy source." 00035 #endif /* !MBEDTLS_ENTROPY_HARDWARE_ALT && !MBEDTLS_ENTROPY_NV_SEED && 00036 * !MBEDTLS_TEST_NULL_ENTROPY */ 00037 00038 #if !defined(MBEDTLS_SHA1_C) 00039 #define MBEDTLS_SHA1_C 00040 #endif /* !MBEDTLS_SHA1_C */ 00041 00042 #if !defined(MBEDTLS_RSA_C) 00043 #define MBEDTLS_RSA_C 00044 #endif /* !MBEDTLS_RSA_C */ 00045 00046 /* 00047 * This value is sufficient for handling 2048 bit RSA keys. 00048 * 00049 * Set this value higher to enable handling larger keys, but be aware that this 00050 * will increase the stack usage. 00051 */ 00052 #define MBEDTLS_MPI_MAX_SIZE 1024 00053 00054 #define MBEDTLS_MPI_WINDOW_SIZE 1 00055 00056 #endif 00057
Generated on Wed Jul 13 2022 06:45:29 by 1.7.2