3#include "../crypto_test.h"
4#include <furi_hal_crypto.h>
7 CryptoCommonTestResultOk,
8 CryptoCommonTestResultOkNoWrap,
9 CryptoCommonTestResultFail,
10} CryptoCommonTestResult;
12#define CRYPTO_COMMON_CHECK_STATUS_EQ(expected, actual, tag) \
13 if((expected) != (actual)) { \
15 ANSI_FG_RED "%s: unexpected status (expected = %u, actual = %u)" ANSI_RESET "\r\n", \
23#define CRYPTO_COMMON_CHECK_STATUS(status, tag) \
24 if((status) != FuriHalCryptoStatusOk) { \
25 printf(ANSI_FG_RED "%s operation failed (status = %u)" ANSI_RESET "\r\n", tag, status); \
30void crypto_common_print_buffer_char(
const char* tag,
const uint8_t* buffer, uint16_t length);
32void crypto_common_print_buffer_hex(
const char* tag,
const uint8_t* buffer, uint16_t length);
37 crypto_common_test_result_compose(CryptoCommonTestResult a, CryptoCommonTestResult b);
Definition furi_hal_crypto.h:104