blob: 5d41f282f1fdc8f7dce1db51c112354a2730a4a5 [file] [log] [blame]
Darryl Greena40a1012018-01-05 15:33:17 +00001/**
2 * \file config-picocoin.h
Manuel Pégourié-Gonnard8119dad2015-08-06 10:59:26 +02003 *
Darryl Greena40a1012018-01-05 15:33:17 +00004 * \brief Reduced configuration used by Picocoin.
5 */
6/*
Manuel Pégourié-Gonnard8119dad2015-08-06 10:59:26 +02007 * Copyright (C) 2006-2015, ARM Limited, All Rights Reserved
Manuel Pégourié-Gonnard37ff1402015-09-04 14:21:07 +02008 * SPDX-License-Identifier: Apache-2.0
9 *
10 * Licensed under the Apache License, Version 2.0 (the "License"); you may
11 * not use this file except in compliance with the License.
12 * You may obtain a copy of the License at
13 *
14 * http://www.apache.org/licenses/LICENSE-2.0
15 *
16 * Unless required by applicable law or agreed to in writing, software
17 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
18 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19 * See the License for the specific language governing permissions and
20 * limitations under the License.
Manuel Pégourié-Gonnard8119dad2015-08-06 10:59:26 +020021 *
22 * This file is part of mbed TLS (https://tls.mbed.org)
Manuel Pégourié-Gonnard8119dad2015-08-06 10:59:26 +020023 */
24/*
Manuel Pégourié-Gonnard43b29862014-06-24 11:25:43 +020025 * Reduced configuration used by Picocoin.
26 *
27 * See README.txt for usage instructions.
28 *
29 * Distinguishing features:
30 * - no SSL/TLS;
31 * - no X.509;
32 * - ECDSA/PK and some other chosen crypto bits.
33 */
34
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +020035#ifndef MBEDTLS_CONFIG_H
36#define MBEDTLS_CONFIG_H
Manuel Pégourié-Gonnard43b29862014-06-24 11:25:43 +020037
38/* System support */
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +020039#define MBEDTLS_HAVE_ASM
40#define MBEDTLS_HAVE_TIME
Manuel Pégourié-Gonnard43b29862014-06-24 11:25:43 +020041
Manuel Pégourié-Gonnardb4fe3cb2015-01-22 16:11:05 +000042/* mbed TLS feature support */
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +020043#define MBEDTLS_CIPHER_MODE_CBC
44#define MBEDTLS_CIPHER_PADDING_PKCS7
45#define MBEDTLS_ECP_DP_SECP256K1_ENABLED
46#define MBEDTLS_ECDSA_DETERMINISTIC
47#define MBEDTLS_PK_PARSE_EC_EXTENDED
48#define MBEDTLS_ERROR_STRERROR_DUMMY
49#define MBEDTLS_FS_IO
Manuel Pégourié-Gonnard43b29862014-06-24 11:25:43 +020050
Manuel Pégourié-Gonnardb4fe3cb2015-01-22 16:11:05 +000051/* mbed TLS modules */
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +020052#define MBEDTLS_AESNI_C
53#define MBEDTLS_AES_C
54#define MBEDTLS_ASN1_PARSE_C
55#define MBEDTLS_ASN1_WRITE_C
56#define MBEDTLS_BASE64_C
57#define MBEDTLS_BIGNUM_C
58#define MBEDTLS_ECDSA_C
59#define MBEDTLS_ECP_C
60#define MBEDTLS_ENTROPY_C
61#define MBEDTLS_HMAC_DRBG_C
62#define MBEDTLS_MD_C
63#define MBEDTLS_OID_C
64#define MBEDTLS_PADLOCK_C
65#define MBEDTLS_PK_C
66#define MBEDTLS_PK_PARSE_C
67#define MBEDTLS_PK_WRITE_C
68#define MBEDTLS_RIPEMD160_C
69#define MBEDTLS_SHA1_C
70#define MBEDTLS_SHA256_C
Manuel Pégourié-Gonnard43b29862014-06-24 11:25:43 +020071
Pascal Bach5e4c2062015-09-15 21:38:12 +020072#include "mbedtls/check_config.h"
Manuel Pégourié-Gonnard43b29862014-06-24 11:25:43 +020073
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +020074#endif /* MBEDTLS_CONFIG_H */