Symmetric functions self-test. More...
#include "common.h"
Go to the source code of this file.
Functions | |
QSC_EXPORT_API bool | qsc_selftest_aes_test (void) |
Tests the AES cipher for correct operation. | |
QSC_EXPORT_API bool | qsc_selftest_chacha_test (void) |
Tests the ChaCha cipher for correct operation. | |
QSC_EXPORT_API bool | qsc_selftest_csx_test (void) |
Tests the CSX cipher for correct operation. | |
QSC_EXPORT_API bool | qsc_selftest_rcs_test (void) |
Tests the RCS cipher for correct operation. | |
QSC_EXPORT_API bool | qsc_selftest_sha2_test (void) |
Tests the SHA2 digests, HKDF and HMAC for correct operation. | |
QSC_EXPORT_API bool | qsc_selftest_sha3_test (void) |
Tests the SHA3 digests, SHAKE, cSHAKE, and KMAC for correct operation. | |
QSC_EXPORT_API bool | qsc_selftest_symmetric_run (void) |
Runs the library self tests. | |
Symmetric functions self-test.
This header provides self-test functions for the cryptographic library's symmetric primitives including AES, ChaCha, CSX, RCS, SHA2, and SHA3 implementations. These tests perform known-answer tests (KATs) to verify correct operation of the implementations.
QSC_EXPORT_API bool qsc_selftest_aes_test | ( | void | ) |
Tests the AES cipher for correct operation.
QSC_EXPORT_API bool qsc_selftest_chacha_test | ( | void | ) |
Tests the ChaCha cipher for correct operation.
QSC_EXPORT_API bool qsc_selftest_csx_test | ( | void | ) |
Tests the CSX cipher for correct operation.
QSC_EXPORT_API bool qsc_selftest_rcs_test | ( | void | ) |
Tests the RCS cipher for correct operation.
QSC_EXPORT_API bool qsc_selftest_sha2_test | ( | void | ) |
Tests the SHA2 digests, HKDF and HMAC for correct operation.
QSC_EXPORT_API bool qsc_selftest_sha3_test | ( | void | ) |
Tests the SHA3 digests, SHAKE, cSHAKE, and KMAC for correct operation.
QSC_EXPORT_API bool qsc_selftest_symmetric_run | ( | void | ) |
Runs the library self tests.
Tests the symmetric primitives with a set of known-answer tests.