File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 1
1
/**
2
2
* Copyright Notice:
3
- * Copyright 2021-2022 DMTF. All rights reserved.
3
+ * Copyright 2021-2024 DMTF. All rights reserved.
4
4
* License: BSD 3-Clause License. For full text see link: https://github.com/DMTF/libspdm/blob/main/LICENSE.md
5
5
**/
6
6
23
23
#include "hal/library/cryptlib.h"
24
24
25
25
#define INVALID_SESSION_ID 0
26
+ /* The SPDM specification does not limit the values of CTExponent and RDTExponent.
27
+ * libspdm artificially limits their values to 31, which corresponds to approximately 35 minutes
28
+ * for CT and RDT. If an endpoint takes longer than 35 minutes to generate an SPDM message then
29
+ * libspdm assumes the Integrator would not want to interact with such an endpoint. A maximum value
30
+ * of 31 also means that, when calculating CT and RDT, a left-shift will not result in C undefined
31
+ * behavior.
32
+ */
26
33
#define LIBSPDM_MAX_CT_EXPONENT 31
27
34
#define LIBSPDM_MAX_RDT_EXPONENT 31
28
35
You can’t perform that action at this time.
0 commit comments