Software APIs
sw
device
silicon_creator
lib
keymgr_binding_value.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_SILICON_CREATOR_LIB_KEYMGR_BINDING_VALUE_H_
6
#define OPENTITAN_SW_DEVICE_SILICON_CREATOR_LIB_KEYMGR_BINDING_VALUE_H_
7
8
#include <
stdint.h
>
9
10
#include "
sw/device/lib/base/macros.h
"
11
12
#ifdef __cplusplus
13
extern
"C"
{
14
#endif
// __cplusplus
15
16
/**
17
* Binding value used by key manager to derive secret values.
18
*
19
* A change in this value changes the secret value of key manager, and
20
* consequently, the versioned keys and identity seeds generated at subsequent
21
* boot stages.
22
*
23
* Note: The size of this value is an implementation detail of the key manager
24
* hardware.
25
*/
26
typedef
struct
keymgr_binding_value
{
27
uint32_t data[8];
28
}
keymgr_binding_value_t
;
29
30
OT_ASSERT_MEMBER_OFFSET
(
keymgr_binding_value_t
, data, 0);
31
OT_ASSERT_SIZE
(
keymgr_binding_value_t
, 32);
32
33
#ifdef __cplusplus
34
}
// extern "C"
35
#endif
// __cplusplus
36
37
#endif
// OPENTITAN_SW_DEVICE_SILICON_CREATOR_LIB_KEYMGR_BINDING_VALUE_H_
Return to
OpenTitan Documentation