diff options
author | Martin Schanzenbach <schanzen@gnunet.org> | 2022-09-22 00:30:24 +0900 |
---|---|---|
committer | Martin Schanzenbach <schanzen@gnunet.org> | 2022-09-22 00:30:24 +0900 |
commit | c50fba92d14a20c4321768c26b3dd6e417c46f23 (patch) | |
tree | c843774b5cc9462a6882ff3f0bab77405f311497 | |
parent | d9a0342d77f4489e56678d9a8e6afc9e25d8163d (diff) |
UTIL: Remove outdated test. Fixes #7361
-rw-r--r-- | src/util/Makefile.am | 6 | ||||
-rw-r--r-- | src/util/test_crypto_ecc.c | 57 |
2 files changed, 0 insertions, 63 deletions
diff --git a/src/util/Makefile.am b/src/util/Makefile.am index b86fa0f12..9cb7da15b 100644 --- a/src/util/Makefile.am +++ b/src/util/Makefile.am @@ -292,7 +292,6 @@ check_PROGRAMS = \ test_container_heap \ test_crypto_symmetric \ test_crypto_crc \ - test_crypto_ecc \ test_crypto_cs \ test_crypto_ecdsa \ test_crypto_eddsa \ @@ -461,11 +460,6 @@ test_crypto_cs_LDADD = \ libgnunetutil.la \ -lsodium -test_crypto_ecc_SOURCES = \ - test_crypto_ecc.c -test_crypto_ecc_LDADD = \ - libgnunetutil.la - test_crypto_ecdsa_SOURCES = \ test_crypto_ecdsa.c test_crypto_ecdsa_LDADD = \ diff --git a/src/util/test_crypto_ecc.c b/src/util/test_crypto_ecc.c deleted file mode 100644 index ebfa04c45..000000000 --- a/src/util/test_crypto_ecc.c +++ /dev/null @@ -1,57 +0,0 @@ -/* - This file is part of GNUnet. - Copyright (C) 2002-2015 GNUnet e.V. - - GNUnet is free software: you can redistribute it and/or modify it - under the terms of the GNU Affero General Public License as published - by the Free Software Foundation, either version 3 of the License, - or (at your option) any later version. - - GNUnet is distributed in the hope that it will be useful, but - WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Affero General Public License for more details. - - You should have received a copy of the GNU Affero General Public License - along with this program. If not, see <http://www.gnu.org/licenses/>. - - SPDX-License-Identifier: AGPL3.0-or-later - - */ -/** - * @file util/test_crypto_ecc.c - * @brief test case for crypto_ecc.c GNUNET_CRYPTO_ecdsa_sign_raw() function - * @author Tristan Schwieren - */ -#include "platform.h" -#include "gnunet_util_lib.h" - -static int -test_GNUNET_CRYPTO_ecdsa_sign_raw () -{ - struct GNUNET_CRYPTO_EcdsaPrivateKey skey; - struct GNUNET_CRYPTO_EcdsaPublicKey pkey; - struct GNUNET_CRYPTO_EcdsaSignature sig; - const char *test_data = "Hello World!"; - - /* Generate keys */ - GNUNET_CRYPTO_ecdsa_key_create (&skey); - GNUNET_CRYPTO_ecdsa_key_get_public (&skey, &pkey); - - GNUNET_assert (GNUNET_OK == - GNUNET_CRYPTO_ecdsa_sign_raw (&skey, - test_data, - strlen (test_data), - &sig)); - - return 0; -} - -int -main (int argc, char *argv[]) -{ - return test_GNUNET_CRYPTO_ecdsa_sign_raw (); -} - - -/* end of test_crypto_ecc.c */ |