Software APIs
sw
device
tests
crypto
cryptotest
json
commands.h
1
// Copyright lowRISC contributors (OpenTitan project).
2
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
3
// SPDX-License-Identifier: Apache-2.0
4
5
#ifndef OPENTITAN_SW_DEVICE_TESTS_CRYPTO_CRYPTOTEST_JSON_COMMANDS_H_
6
#define OPENTITAN_SW_DEVICE_TESTS_CRYPTO_CRYPTOTEST_JSON_COMMANDS_H_
7
#include "sw/device/lib/ujson/ujson_derive.h"
8
#ifdef __cplusplus
9
extern
"C"
{
10
#endif
11
12
// clang-format off
13
14
#define COMMAND(_, value) \
15
value(_, Aes) \
16
value(_, Drbg) \
17
value(_, Ecdsa) \
18
value(_, Ecdh) \
19
value(_, Hash) \
20
value(_, Hmac) \
21
value(_, Kmac) \
22
value(_, SphincsPlus)
23
UJSON_SERDE_ENUM(CryptotestCommand, cryptotest_cmd_t, COMMAND);
24
25
// clang-format on
26
27
#ifdef __cplusplus
28
}
29
#endif
30
#endif
// OPENTITAN_SW_DEVICE_TESTS_CRYPTO_CRYPTOTEST_JSON_COMMANDS_H_
Return to
OpenTitan Documentation