anjay
Loading...
Searching...
No Matches
oscore.h
Go to the documentation of this file.
1/*
2 * Copyright 2017-2026 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 {
29 char master_secret[AVS_COAP_OSCORE_MASTER_SECRET_SIZE + 1];
30
39 char master_salt[AVS_COAP_OSCORE_MASTER_SALT_SIZE + 1];
40
47 char sender_id[AVS_COAP_OSCORE_MAX_PEER_ID_LENGTH + 1];
48
55 char recipient_id[AVS_COAP_OSCORE_MAX_PEER_ID_LENGTH + 1];
56
69 const char *id_context;
71
99 const anjay_oscore_instance_t *instance,
100 anjay_iid_t *inout_iid);
101
108
117 avs_stream_t *out_stream);
118
130 avs_stream_t *in_stream);
131
138
150
151#ifdef __cplusplus
152}
153#endif
154
155#endif /* ANJAY_INCLUDE_ANJAY_OSCORE_H */
uint16_t anjay_iid_t
Definition core.h:1299
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
const char * id_context
Definition oscore.h:69