Files
wolfssl/tests/api/test_poly1305.h
T
Sean Parkinson b764aac074 API testing additions: cipher tests
Fixed wc_AesEaxAuthDataUpdate to check eax for NULL before
dereferencing.

Fix AesSivCipher to delete/free AES if new/initialization succeeded.
Memsetting to 0 doesn't work when WC_DEBUG_CIPHER_LIFECYCLE is defined.

Added tests for:
 - AES-EAX streaming
 - AES-SIV
 - Poly1305
 - DES-CBC
2026-04-10 15:43:21 +10:00

39 lines
1.4 KiB
C

/* test_poly1305.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_POLY1305_H
#define WOLFCRYPT_TEST_POLY1305_H
#include <tests/api/api_decl.h>
int test_wc_Poly1305SetKey(void);
int test_wc_Poly1305UpdateFinal(void);
int test_wc_Poly1305_MAC(void);
int test_wc_Poly1305_PadEncodeSizes(void);
#define TEST_POLY1305_DECLS \
TEST_DECL_GROUP("poly1305", test_wc_Poly1305SetKey), \
TEST_DECL_GROUP("poly1305", test_wc_Poly1305UpdateFinal), \
TEST_DECL_GROUP("poly1305", test_wc_Poly1305_MAC), \
TEST_DECL_GROUP("poly1305", test_wc_Poly1305_PadEncodeSizes)
#endif /* WOLFCRYPT_TEST_POLY1305_H */