blob: 049fb329a9bc3e510287604cc978286225cc4b97 [file] [log] [blame]
Tamas Banafc4f3c2024-08-13 11:46:58 +02001/*
2 * Copyright (c) 2024, Arm Limited. All rights reserved.
3 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 *
6 */
7
8#ifndef _CMD_H_
9#define _CMD_H_
10
11enum cmd {
12 CBOR, /* CBOR encoded */
Tamas Ban628192c2024-08-13 13:35:58 +020013 DC, /* DeriveContext */
14 CK, /* CertifyKey */
15 GCC, /* GetCertificateChain*/
16 RND, /* Random DPE command */
Tamas Banafc4f3c2024-08-13 11:46:58 +020017 MAX_CMD_VAL
18};
19
20int exec_dpe_cmd(enum cmd cmd, const char *cmd_in_buf, size_t cmd_in_size, int *context_handle);
21
22void dpe_lib_init(int *context_handle);
23
24#endif /* _CMD_H_ */