This is the sample program that can see the decode result of barcode data on Watson IoT.

Dependencies:   AsciiFont DisplayApp GR-PEACH_video LCD_shield_config LWIPBP3595Interface_STA_for_mbed-os USBDevice

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers mbedtls_mbed_client_config.h Source File

mbedtls_mbed_client_config.h

00001 /*
00002  *  Minimal configuration for using mbedtls as part of mbed-client
00003  *
00004  *  Copyright (C) 2006-2016, ARM Limited, All Rights Reserved
00005  *  SPDX-License-Identifier: Apache-2.0
00006  *
00007  *  Licensed under the Apache License, Version 2.0 (the "License"); you may
00008  *  not use this file except in compliance with the License.
00009  *  You may obtain a copy of the License at
00010  *
00011  *  http://www.apache.org/licenses/LICENSE-2.0
00012  *
00013  *  Unless required by applicable law or agreed to in writing, software
00014  *  distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
00015  *  WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00016  *  See the License for the specific language governing permissions and
00017  *  limitations under the License.
00018  *
00019  *  This file is part of mbed TLS (https://tls.mbed.org)
00020  */
00021 
00022 
00023 #ifndef MBEDTLS_CUSTOM_CONFIG_H
00024 #define MBEDTLS_CUSTOM_CONFIG_H
00025 
00026 /* System support */
00027 #define MBEDTLS_HAVE_ASM
00028 
00029 /* mbed TLS feature support */
00030 #define MBEDTLS_ECP_DP_SECP256R1_ENABLED
00031 #define MBEDTLS_ECP_NIST_OPTIM
00032 #define MBEDTLS_SSL_MAX_FRAGMENT_LENGTH
00033 #define MBEDTLS_SSL_PROTO_TLS1_2
00034 #define MBEDTLS_SSL_PROTO_DTLS
00035 #define MBEDTLS_SSL_DTLS_ANTI_REPLAY
00036 #define MBEDTLS_SSL_DTLS_HELLO_VERIFY
00037 #define MBEDTLS_SSL_EXPORT_KEYS
00038 
00039 /* mbed TLS modules */
00040 #define MBEDTLS_AES_C
00041 #define MBEDTLS_ASN1_PARSE_C
00042 #define MBEDTLS_ASN1_WRITE_C
00043 #define MBEDTLS_BIGNUM_C
00044 #define MBEDTLS_CCM_C
00045 #define MBEDTLS_CIPHER_C
00046 #define MBEDTLS_CTR_DRBG_C
00047 #define MBEDTLS_ECP_C
00048 #define MBEDTLS_ENTROPY_C
00049 #define MBEDTLS_MD_C
00050 #define MBEDTLS_OID_C
00051 #define MBEDTLS_PK_C
00052 #define MBEDTLS_PK_PARSE_C
00053 #define MBEDTLS_SHA256_C
00054 #define MBEDTLS_SSL_COOKIE_C
00055 #define MBEDTLS_SSL_CLI_C
00056 #define MBEDTLS_SSL_SRV_C
00057 #define MBEDTLS_SSL_TLS_C
00058 
00059 // XXX mbedclient needs these: mbedtls_x509_crt_free, mbedtls_x509_crt_init, mbedtls_x509_crt_parse
00060 #define MBEDTLS_X509_USE_C
00061 #define MBEDTLS_X509_CRT_PARSE_C
00062 // a bit wrong way to get mbedtls_ssl_conf_psk:
00063 // XXX: this should be ifdef'd out from client too
00064 #define MBEDTLS_KEY_EXCHANGE__SOME__PSK_ENABLED
00065 
00066 // XXX: clean these up!!
00067 #define MBEDTLS_KEY_EXCHANGE__WITH_CERT__ENABLED
00068 #define MBEDTLS_KEY_EXCHANGE__SOME__ECDHE_ENABLED
00069 #define MBEDTLS_KEY_EXCHANGE_ECDHE_ECDSA_ENABLED
00070 #define MBEDTLS_SHA512_C
00071 #define MBEDTLS_ECDH_C
00072 #define MBEDTLS_GCM_C
00073 #define MBEDTLS_CCM_C
00074 
00075 #define MBEDTLS_PKCS1_V15
00076 
00077 #define MBEDTLS_CIPHER_MODE_CBC
00078 #define MBEDTLS_ECDH_C
00079 #define MBEDTLS_ECDSA_C
00080 #define MBEDTLS_X509_CRT_PARSE_C
00081 
00082 // Remove RSA, save 20KB at total
00083 #undef MBEDTLS_RSA_C
00084 #undef MBEDTLS_KEY_EXCHANGE_ECDHE_RSA_ENABLED
00085 
00086 // Remove error messages, save 10KB of ROM
00087 #undef MBEDTLS_ERROR_C
00088 
00089 // Remove selftesting and save 11KB of ROM
00090 #undef MBEDTLS_SELF_TEST
00091 
00092 #undef MBEDTLS_SSL_COOKIE_C
00093 
00094 // Reduces ROM size by 30 kB
00095 #undef MBEDTLS_ERROR_STRERROR_DUMMY
00096 #undef MBEDTLS_VERSION_FEATURES
00097 #undef MBEDTLS_DEBUG_C
00098 
00099 // needed for parsing the certificates
00100 #define MBEDTLS_PEM_PARSE_C
00101 // dep of the previous
00102 #define MBEDTLS_BASE64_C
00103 
00104 // reduce IO buffer to save RAM, default is 16KB
00105 #define MBEDTLS_SSL_MAX_CONTENT_LEN 2048
00106 
00107 // define to save 8KB RAM at the expense of ROM
00108 #undef MBEDTLS_AES_ROM_TABLES
00109 
00110 // Save ROM and a few bytes of RAM by specifying our own ciphersuite list
00111 #define MBEDTLS_SSL_CIPHERSUITES MBEDTLS_TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384,MBEDTLS_TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256
00112 
00113 #include "mbedtls/check_config.h"
00114 
00115 #endif /* MBEDTLS_CUSTOM_CONFIG_H */