RIOT/tests/unittests/tests-crypto/tests-crypto.c
Koen Zandberg 730286903a
crypto/helper: Add test for crypto_secure_wipe
The test added for crypto_secure_wipe wipes a buffer with a secret in
it. Only the last byte is kept as it was. The last byte is used to check
that the function doesn't write outside the supplied buffer.
2018-11-07 18:27:10 +01:00

23 lines
676 B
C

/*
* Copyright (C) 2014 Philipp Rosenkranz
* Copyright (C) 2014 Nico von Geyso
*
* 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.
*/
#include "tests-crypto.h"
void tests_crypto(void)
{
TESTS_RUN(tests_crypto_helper_tests());
TESTS_RUN(tests_crypto_chacha_tests());
TESTS_RUN(tests_crypto_aes_tests());
TESTS_RUN(tests_crypto_cipher_tests());
TESTS_RUN(tests_crypto_modes_ccm_tests());
TESTS_RUN(tests_crypto_modes_ecb_tests());
TESTS_RUN(tests_crypto_modes_cbc_tests());
TESTS_RUN(tests_crypto_modes_ctr_tests());
}