test_driver_common.h (955B)
1 /* Common definitions used by test drivers. */ 2 /* Copyright The Mbed TLS Contributors 3 * SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later 4 */ 5 6 #ifndef PSA_CRYPTO_TEST_DRIVERS_TEST_DRIVER_COMMON_H 7 #define PSA_CRYPTO_TEST_DRIVERS_TEST_DRIVER_COMMON_H 8 9 #include "mbedtls/build_info.h" 10 11 /* Use the same formatting for error code definitions as the standard 12 * error values, which must have a specific sequence of tokens for 13 * interoperability between implementations of different parts of PSA. 14 * This means no space between the cast and the - operator. 15 * This contradicts our code style, so we temporarily disable style checking. 16 * 17 * *INDENT-OFF* 18 */ 19 20 /** Error code that test drivers return when they detect that an input 21 * parameter was not initialized properly. This normally indicates a 22 * bug in the core. 23 */ 24 #define PSA_ERROR_TEST_DETECTED_BAD_INITIALIZATION ((psa_status_t)-0x0201) 25 26 /* *INDENT-ON* */ 27 28 #endif /* test_driver_common.h */