Anjay Lite
Loading...
Searching...
No Matches
crypto.h File Reference

Cryptographic data descriptors used by Security Object and networking. More...

#include <anj/init.h>
#include <anj/defs.h>

Go to the source code of this file.

Data Structures

struct  anj_crypto_security_info_buffer_t
 
struct  anj_crypto_security_info_external_t
 
struct  anj_crypto_security_info_t
 

Enumerations

enum  anj_crypto_data_source_t { ANJ_CRYPTO_DATA_SOURCE_EMPTY = 0 , ANJ_CRYPTO_DATA_SOURCE_BUFFER , ANJ_CRYPTO_DATA_SOURCE_EXTERNAL }
 
enum  anj_crypto_security_tag_t {
  ANJ_CRYPTO_SECURITY_TAG_CERTIFICATE_CHAIN , ANJ_CRYPTO_SECURITY_TAG_PRIVATE_KEY , ANJ_CRYPTO_SECURITY_TAG_CERT_REVOCATION_LIST , ANJ_CRYPTO_SECURITY_TAG_PSK_IDENTITY ,
  ANJ_CRYPTO_SECURITY_TAG_PSK_KEY
}
 

Detailed Description

Cryptographic data descriptors used by Security Object and networking.

Defines enums and structures for representing credentials such as certificates, private keys, and PSK identity/keys. Data may be provided inline in memory buffers or, if enabled, via opaque external references (e.g. keystore identifiers).

These types are typically used when configuring Security Object Instances or transport security backends.

Enumeration Type Documentation

◆ anj_crypto_data_source_t

Specifies where cryptographic data is obtained from.

Note
Most users will set this when populating anj_dm_security_instance_init_t while adding a Security Object Instance.
See also
anj_crypto_security_info_t
Enumerator
ANJ_CRYPTO_DATA_SOURCE_EMPTY 

No data set.

ANJ_CRYPTO_DATA_SOURCE_BUFFER 

Data is provided inline in the structure. The anj_crypto_security_info_buffer_t::data field must point to a valid memory region of size anj_crypto_security_info_buffer_t::data_size.

See also
anj_crypto_security_info_buffer_t
ANJ_CRYPTO_DATA_SOURCE_EXTERNAL 

Data is provided as an opaque external identifier (e.g., file path, alias in a keystore).

See also
anj_crypto_security_info_external_t

◆ anj_crypto_security_tag_t

Specifies the type of cryptographic security information.

Enumerator
ANJ_CRYPTO_SECURITY_TAG_CERTIFICATE_CHAIN 
ANJ_CRYPTO_SECURITY_TAG_PRIVATE_KEY 
ANJ_CRYPTO_SECURITY_TAG_CERT_REVOCATION_LIST 
ANJ_CRYPTO_SECURITY_TAG_PSK_IDENTITY 
ANJ_CRYPTO_SECURITY_TAG_PSK_KEY