/* * Copyright (C) 2021 Freie Universität Berlin * * This file is subject to the terms and conditions of the GNU Lesser * General Public License v2.1. See the file LICENSE in the top level * directory for more details. */ /** * @addtogroup unittests * @{ * * @file * @brief Unittests for the ``crypto`` module * * @author Nils Ollrogge */ #ifndef TESTS_CRYPTO_H #define TESTS_CRYPTO_H #include #include #include "embUnit.h" #ifdef __cplusplus extern "C" { #endif static inline int compare(const uint8_t *a, const uint8_t *b, uint8_t len) { int result = 1; for (uint8_t i = 0; i < len; ++i) { result &= a[i] == b[i]; } return result; } Test *tests_crypto_modes_ccm_tests_128(void); Test *tests_crypto_modes_ccm_tests_192(void); Test *tests_crypto_modes_ccm_tests_256(void); #ifdef __cplusplus } #endif #endif /* TESTS_CRYPTO_H */ /** @} */