Anjay Lite
Loading...
Searching...
No Matches
crypto.h
Go to the documentation of this file.
1/*
2 * Copyright 2023-2025 AVSystem <avsystem@avsystem.com>
3 * AVSystem Anjay Lite LwM2M SDK
4 * All rights reserved.
5 *
6 * Licensed under AVSystem Anjay Lite LwM2M Client SDK - Non-Commercial License.
7 * See the attached LICENSE file for details.
8 */
9
10#include <anj/init.h>
11
25#ifndef ANJ_CRYPTO_H
26# define ANJ_CRYPTO_H
27
28# include <anj/defs.h>
29
30# ifdef __cplusplus
31extern "C" {
32# endif
33
34# ifdef ANJ_WITH_SECURITY
35
45typedef enum {
50
60
61# ifdef ANJ_WITH_EXTERNAL_CRYPTO_STORAGE
69# endif // ANJ_WITH_EXTERNAL_CRYPTO_STORAGE
71
82
84typedef struct {
85 const void *data;
86 size_t data_size;
88
89# ifdef ANJ_WITH_EXTERNAL_CRYPTO_STORAGE
91typedef struct {
92 const char *identity;
94
95# endif // ANJ_WITH_EXTERNAL_CRYPTO_STORAGE
96
101typedef struct {
104 union {
106# ifdef ANJ_WITH_EXTERNAL_CRYPTO_STORAGE
108# endif // ANJ_WITH_EXTERNAL_CRYPTO_STORAGE
109 } info;
111
112# endif // ANJ_WITH_SECURITY
113
114# ifdef __cplusplus
115}
116# endif
117
118#endif // ANJ_CRYPTO_H
anj_crypto_security_tag_t
Definition crypto.h:75
@ ANJ_CRYPTO_SECURITY_TAG_CERTIFICATE_CHAIN
Definition crypto.h:76
@ ANJ_CRYPTO_SECURITY_TAG_PSK_IDENTITY
Definition crypto.h:79
@ ANJ_CRYPTO_SECURITY_TAG_PSK_KEY
Definition crypto.h:80
@ ANJ_CRYPTO_SECURITY_TAG_CERT_REVOCATION_LIST
Definition crypto.h:78
@ ANJ_CRYPTO_SECURITY_TAG_PRIVATE_KEY
Definition crypto.h:77
anj_crypto_data_source_t
Definition crypto.h:45
@ ANJ_CRYPTO_DATA_SOURCE_EMPTY
Definition crypto.h:49
@ ANJ_CRYPTO_DATA_SOURCE_EXTERNAL
Definition crypto.h:68
@ ANJ_CRYPTO_DATA_SOURCE_BUFFER
Definition crypto.h:59
Core type and constant definitions for Anjay Lite.
Global configuration validation header for Anjay Lite.
Definition crypto.h:84
const void * data
Definition crypto.h:85
size_t data_size
Definition crypto.h:86
const char * identity
Definition crypto.h:92
Definition crypto.h:101
anj_crypto_data_source_t source
Definition crypto.h:103
anj_crypto_security_tag_t tag
Definition crypto.h:102
anj_crypto_security_info_external_t external
Definition crypto.h:107
anj_crypto_security_info_buffer_t buffer
Definition crypto.h:105