blob: 5bfccf6ac9a519cb8a8cd7d9ebf413c6f11b165e [file] [log] [blame]
Manuel Pégourié-Gonnard43b29862014-06-24 11:25:43 +02001/*
Manuel Pégourié-Gonnard8119dad2015-08-06 10:59:26 +02002 * Reduced configuration used by Picocoin.
3 *
4 * Copyright (C) 2006-2015, ARM Limited, All Rights Reserved
5 *
6 * This file is part of mbed TLS (https://tls.mbed.org)
7 *
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License along
19 * with this program; if not, write to the Free Software Foundation, Inc.,
20 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
21 */
22/*
Manuel Pégourié-Gonnard43b29862014-06-24 11:25:43 +020023 * Reduced configuration used by Picocoin.
24 *
25 * See README.txt for usage instructions.
26 *
27 * Distinguishing features:
28 * - no SSL/TLS;
29 * - no X.509;
30 * - ECDSA/PK and some other chosen crypto bits.
31 */
32
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +020033#ifndef MBEDTLS_CONFIG_H
34#define MBEDTLS_CONFIG_H
Manuel Pégourié-Gonnard43b29862014-06-24 11:25:43 +020035
36/* System support */
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +020037#define MBEDTLS_HAVE_ASM
38#define MBEDTLS_HAVE_TIME
Manuel Pégourié-Gonnard43b29862014-06-24 11:25:43 +020039
Manuel Pégourié-Gonnardb4fe3cb2015-01-22 16:11:05 +000040/* mbed TLS feature support */
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +020041#define MBEDTLS_CIPHER_MODE_CBC
42#define MBEDTLS_CIPHER_PADDING_PKCS7
43#define MBEDTLS_ECP_DP_SECP256K1_ENABLED
44#define MBEDTLS_ECDSA_DETERMINISTIC
45#define MBEDTLS_PK_PARSE_EC_EXTENDED
46#define MBEDTLS_ERROR_STRERROR_DUMMY
47#define MBEDTLS_FS_IO
Manuel Pégourié-Gonnard43b29862014-06-24 11:25:43 +020048
Manuel Pégourié-Gonnardb4fe3cb2015-01-22 16:11:05 +000049/* mbed TLS modules */
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +020050#define MBEDTLS_AESNI_C
51#define MBEDTLS_AES_C
52#define MBEDTLS_ASN1_PARSE_C
53#define MBEDTLS_ASN1_WRITE_C
54#define MBEDTLS_BASE64_C
55#define MBEDTLS_BIGNUM_C
56#define MBEDTLS_ECDSA_C
57#define MBEDTLS_ECP_C
58#define MBEDTLS_ENTROPY_C
59#define MBEDTLS_HMAC_DRBG_C
60#define MBEDTLS_MD_C
61#define MBEDTLS_OID_C
62#define MBEDTLS_PADLOCK_C
63#define MBEDTLS_PK_C
64#define MBEDTLS_PK_PARSE_C
65#define MBEDTLS_PK_WRITE_C
66#define MBEDTLS_RIPEMD160_C
67#define MBEDTLS_SHA1_C
68#define MBEDTLS_SHA256_C
Manuel Pégourié-Gonnard43b29862014-06-24 11:25:43 +020069
70#include "check_config.h"
71
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +020072#endif /* MBEDTLS_CONFIG_H */