anjay
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
oscore.h
Go to the documentation of this file.
1/*
2 * Copyright 2017-2025 AVSystem <avsystem@avsystem.com>
3 * AVSystem Anjay LwM2M SDK
4 * All rights reserved.
5 *
6 * Licensed under AVSystem Anjay LwM2M Client SDK - Non-Commercial License.
7 * See the attached LICENSE file for details.
8 */
9
10#ifndef ANJAY_INCLUDE_ANJAY_OSCORE_H
11#define ANJAY_INCLUDE_ANJAY_OSCORE_H
12
13#include <anjay/dm.h>
14
15#include <avsystem/coap/oscore.h>
16
17#ifdef __cplusplus
18extern "C" {
19#endif
20
21typedef struct {
28 char master_secret[AVS_COAP_OSCORE_AES_128_KEY_LENGTH + 1];
29
37 char master_salt[AVS_COAP_OSCORE_MAX_MASTER_SALT_LENGTH + 1];
38
45 char sender_id[AVS_COAP_OSCORE_MAX_PEER_ID_LENGTH + 1];
46
53 char recipient_id[AVS_COAP_OSCORE_MAX_PEER_ID_LENGTH + 1];
55
83 const anjay_oscore_instance_t *instance,
84 anjay_iid_t *inout_iid);
85
92
101 avs_stream_t *out_stream);
102
114 avs_stream_t *in_stream);
115
122
134
135#ifdef __cplusplus
136}
137#endif
138
139#endif /* ANJAY_INCLUDE_ANJAY_OSCORE_H */
uint16_t anjay_iid_t
Definition core.h:1326
struct anjay_struct anjay_t
Definition core.h:49
void anjay_oscore_object_purge(anjay_t *anjay)
int anjay_oscore_object_install(anjay_t *anjay)
avs_error_t anjay_oscore_object_persist(anjay_t *anjay, avs_stream_t *out_stream)
bool anjay_oscore_object_is_modified(anjay_t *anjay)
int anjay_oscore_add_instance(anjay_t *anjay, const anjay_oscore_instance_t *instance, anjay_iid_t *inout_iid)
avs_error_t anjay_oscore_object_restore(anjay_t *anjay, avs_stream_t *in_stream)
Definition oscore.h:21