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.
23 lines
676 B
C
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());
|
|
}
|