Hanno Becker | 108fc84 | 2021-01-12 06:39:43 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Copyright The Mbed TLS Contributors |
| 3 | * SPDX-License-Identifier: Apache-2.0 |
| 4 | * |
| 5 | * Licensed under the Apache License, Version 2.0 (the "License"); you may |
| 6 | * not use this file except in compliance with the License. |
| 7 | * You may obtain a copy of the License at |
| 8 | * |
| 9 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | * |
| 11 | * Unless required by applicable law or agreed to in writing, software |
| 12 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT |
| 13 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | * See the License for the specific language governing permissions and |
| 15 | * limitations under the License. |
| 16 | * |
| 17 | * This file is part of mbed TLS (https://tls.mbed.org) |
| 18 | */ |
| 19 | |
| 20 | /** |
| 21 | * \file common.h |
| 22 | * |
| 23 | * \brief Common functions and macros used by MPS |
| 24 | */ |
| 25 | |
| 26 | #ifndef MBEDTLS_MPS_COMMON_H |
| 27 | #define MBEDTLS_MPS_COMMON_H |
| 28 | |
Hanno Becker | 6ed183c | 2021-01-12 06:42:16 +0000 | [diff] [blame^] | 29 | /** |
| 30 | * \name SECTION: MPS Configuration |
| 31 | * |
| 32 | * \{ |
| 33 | */ |
| 34 | |
| 35 | /*! This flag enables/disables assertions on the internal state of MPS. |
| 36 | * |
| 37 | * Assertions are sanity checks that should never trigger when MPS |
| 38 | * is used within the bounds of its API and preconditions. |
| 39 | * |
| 40 | * Enabling this increases security by limiting the scope of |
| 41 | * potential bugs, but comes at the cost of increased code size. |
| 42 | * |
| 43 | * Note: So far, there is no guiding principle as to what |
| 44 | * expected conditions merit an assertion, and which don't. |
| 45 | * |
| 46 | * Comment this to disable assertions. |
| 47 | */ |
| 48 | #define MBEDTLS_MPS_ENABLE_ASSERTIONS |
| 49 | |
| 50 | /* \} name SECTION: MPS Configuration */ |
Hanno Becker | 108fc84 | 2021-01-12 06:39:43 +0000 | [diff] [blame] | 51 | |
| 52 | #endif /* MBEDTLS_MPS_COMMON_H */ |