mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-07-05 23:50:49 +02:00
80 lines
2.7 KiB
C
80 lines
2.7 KiB
C
/* test_she.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_SHE_H
|
|
#define WOLFCRYPT_TEST_SHE_H
|
|
|
|
#include <tests/api/api_decl.h>
|
|
|
|
int test_wc_SHE_Init(void);
|
|
int test_wc_SHE_Init_Id(void);
|
|
int test_wc_SHE_Init_Label(void);
|
|
int test_wc_SHE_Free(void);
|
|
int test_wc_SHE_ImportM1M2M3(void);
|
|
int test_wc_SHE_AesMp16(void);
|
|
int test_wc_SHE_GenerateM1M2M3(void);
|
|
int test_wc_SHE_GenerateM4M5(void);
|
|
#ifdef WOLFSSL_SHE_EXTENDED
|
|
int test_wc_SHE_SetKdfConstants(void);
|
|
int test_wc_SHE_SetM2M4Header(void);
|
|
#endif
|
|
#if defined(WOLF_CRYPTO_CB) && defined(WOLFSSL_SHE)
|
|
int test_wc_SHE_CryptoCb(void);
|
|
#ifndef NO_WC_SHE_LOADKEY
|
|
int test_wc_SHE_LoadKey(void);
|
|
int test_wc_SHE_LoadKey_Verify(void);
|
|
#endif
|
|
#endif
|
|
|
|
#define TEST_SHE_DECLS \
|
|
TEST_DECL_GROUP("she", test_wc_SHE_Init), \
|
|
TEST_DECL_GROUP("she", test_wc_SHE_Init_Id), \
|
|
TEST_DECL_GROUP("she", test_wc_SHE_Init_Label), \
|
|
TEST_DECL_GROUP("she", test_wc_SHE_Free), \
|
|
TEST_DECL_GROUP("she", test_wc_SHE_ImportM1M2M3), \
|
|
TEST_DECL_GROUP("she", test_wc_SHE_AesMp16), \
|
|
TEST_DECL_GROUP("she", test_wc_SHE_GenerateM1M2M3), \
|
|
TEST_DECL_GROUP("she", test_wc_SHE_GenerateM4M5)
|
|
|
|
#ifdef WOLFSSL_SHE_EXTENDED
|
|
#define TEST_SHE_EXT_DECLS \
|
|
TEST_DECL_GROUP("she", test_wc_SHE_SetKdfConstants), \
|
|
TEST_DECL_GROUP("she", test_wc_SHE_SetM2M4Header)
|
|
#else
|
|
#define TEST_SHE_EXT_DECLS
|
|
#endif
|
|
|
|
#if defined(WOLF_CRYPTO_CB) && defined(WOLFSSL_SHE)
|
|
#if !defined(NO_WC_SHE_LOADKEY)
|
|
#define TEST_SHE_CB_DECLS \
|
|
TEST_DECL_GROUP("she", test_wc_SHE_CryptoCb), \
|
|
TEST_DECL_GROUP("she", test_wc_SHE_LoadKey), \
|
|
TEST_DECL_GROUP("she", test_wc_SHE_LoadKey_Verify)
|
|
#else
|
|
#define TEST_SHE_CB_DECLS \
|
|
TEST_DECL_GROUP("she", test_wc_SHE_CryptoCb)
|
|
#endif
|
|
#else
|
|
#define TEST_SHE_CB_DECLS
|
|
#endif
|
|
|
|
#endif /* WOLFCRYPT_TEST_SHE_H */
|