1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
/* Needed for OSCORE_KEYID_MAXLEN */
/** @file */
/** @ingroup oscore_api
*
* @addtogroup oscore_helpers Generic OSCORE helper definitions
*
* @brief Data structures commonly used between different OSCORE components
*
* This section housed structures that can't reside in @ref oscore_protection
* or @ref oscore_contextpair because they would create cyclic references
* there.
*
* @{
*/
/** @brief The Partial IV length defined for OSCORE */
/** @brief Number of bytes in the IV that are not usable for key IDs */
/** @brief Maximum length of a Key ID
*
* This may be lower for particular algorithms (as they need space in their IV
* length), but this size can be used when storing Key IDs.
* */
/** @brief Maximum lenfgth of a Key ID
*
* The length given here limits the length of KID context values that can be
* processed. It also affects the lengths usable with B.2 negotiation.
*
* The value can be overridden at build time by predefining it to a numeric
* value in the compiler invocation.
* */
/** @brief Message correlation data
*
* This type contains all the information that needs to be kept around to match
* a request and a response. On the server side, it contains information on
* whether the request's partial IV can be reused.
*
* @warning The Request ID does not keep a reference to the full security
* context (but to parts of it). It is crucial that all calls in which an @ref
* oscore_requestid_t is used are always done with the same security context.
*
* @warning A @ref oscore_requestid_t must never be copied around by the
* application. If a copy is needed (eg. to build observation notifications
* from), use the @ref oscore_requestid_clone function.
*
* @todo Decide whether it may be moved (as it may be part of the
* invalidation-at-context-mutation game).
*/
typedef struct oscore_requestid_t;
/** @brief Portability helper for declaring pointers non-null
*
* Prefix this to a function signature to declare that none of its pointers
* may ever be NULL pointers.
*/
/** @} */