Files
wolfssl/tests/api/test_hash.h
T
Daniele Lacamera afe37aabd1 tests: MC/DC gap-closing for the deferred Part-3 modules
Close API-reachable and file-static gaps in the smaller modules (+52 union
conditions): kdf 75->91, coding 48->64, wolfentropy 9->13, curve448 54->58
(100%), chacha20_poly1305 43->46 (100%), hash 6->7 (100%), wc_encrypt 16->19,
pwdbased 14->17, signature 30->32. Additive cases in the existing tests (one
new test_wc_HashTypeConvert), plus wolfentropy/random white-box drivers.
Remaining are justified residuals (WOLFSSL_LOCAL wc_CryptKey, dead defensive
branches, alloc/crypto-failure err-chains, platform seed sources).
2026-07-17 08:56:03 +02:00

61 lines
2.3 KiB
C

/* test_hash.h
*
* Copyright (C) 2006-2026 wolfSSL Inc.
*
* This file is part of wolfSSL.
*
* wolfSSL is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* wolfSSL 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
*/
#ifndef WOLFCRYPT_TEST_HASH_H
#define WOLFCRYPT_TEST_HASH_H
#include <tests/api/api_decl.h>
int test_wc_HashInit(void);
int test_wc_HashUpdate(void);
int test_wc_HashFinal(void);
int test_wc_HashNewDelete(void);
int test_wc_HashGetDigestSize(void);
int test_wc_HashGetBlockSize(void);
int test_wc_Hash(void);
int test_wc_HashSetFlags(void);
int test_wc_HashGetFlags(void);
int test_wc_Hash_Algs(void);
int test_wc_HashGetOID(void);
int test_wc_OidGetHash(void);
int test_wc_HashTypeConvert(void);
int test_wc_HashDecisionCoverage(void);
int test_wc_HashFeatureCoverage(void);
#define TEST_HASH_DECLS \
TEST_DECL_GROUP("hash", test_wc_HashInit), \
TEST_DECL_GROUP("hash", test_wc_HashUpdate), \
TEST_DECL_GROUP("hash", test_wc_HashFinal), \
TEST_DECL_GROUP("hash", test_wc_HashNewDelete), \
TEST_DECL_GROUP("hash", test_wc_HashGetDigestSize), \
TEST_DECL_GROUP("hash", test_wc_HashGetBlockSize), \
TEST_DECL_GROUP("hash", test_wc_Hash), \
TEST_DECL_GROUP("hash", test_wc_HashSetFlags), \
TEST_DECL_GROUP("hash", test_wc_HashGetFlags), \
TEST_DECL_GROUP("hash", test_wc_Hash_Algs), \
TEST_DECL_GROUP("hash", test_wc_HashGetOID), \
TEST_DECL_GROUP("hash", test_wc_OidGetHash), \
TEST_DECL_GROUP("hash", test_wc_HashTypeConvert), \
TEST_DECL_GROUP("hash", test_wc_HashDecisionCoverage), \
TEST_DECL_GROUP("hash", test_wc_HashFeatureCoverage)
#endif /* WOLFCRYPT_TEST_HASH_H */