Embedded SDK
Embedded SDK
Loading...
Searching...
No Matches
Classes | Macros | Typedefs | Enumerations | Functions
tlv_use_case_dynamic_descriptor.h File Reference
#include "tlv_library.h"
#include "buffer.h"
#include "tokens.h"
Include dependency graph for tlv_use_case_dynamic_descriptor.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  tlv_dynamic_descriptor_out_s
 

Macros

#define DER_SIGNATURE_MIN_SIZE   64
 
#define DER_SIGNATURE_MAX_SIZE   72
 

Typedefs

typedef struct tlv_dynamic_descriptor_out_s tlv_dynamic_descriptor_out_t
 
typedef enum tlv_dynamic_descriptor_status_e tlv_dynamic_descriptor_status_t
 

Enumerations

enum  tlv_dynamic_descriptor_status_e {
  TLV_DYNAMIC_DESCRIPTOR_SUCCESS = 0 , TLV_DYNAMIC_DESCRIPTOR_PARSING_ERROR = 1 , TLV_DYNAMIC_DESCRIPTOR_MISSING_STRUCTURE_TAG = 2 , TLV_DYNAMIC_DESCRIPTOR_WRONG_TYPE = 3 ,
  TLV_DYNAMIC_DESCRIPTOR_MISSING_TAG = 4 , TLV_DYNAMIC_DESCRIPTOR_WRONG_APPLICATION_NAME = 5 , TLV_DYNAMIC_DESCRIPTOR_UNKNOWN_VERSION = 6 , TLV_DYNAMIC_DESCRIPTOR_SIGNATURE_ERROR = 0x80
}
 

Functions

tlv_dynamic_descriptor_status_t tlv_use_case_dynamic_descriptor (const buffer_t *payload, tlv_dynamic_descriptor_out_t *out)
 Processes a TLV dynamic descriptor use case.
 

Macro Definition Documentation

◆ DER_SIGNATURE_MAX_SIZE

#define DER_SIGNATURE_MAX_SIZE   72

Definition at line 37 of file tlv_use_case_dynamic_descriptor.h.

◆ DER_SIGNATURE_MIN_SIZE

#define DER_SIGNATURE_MIN_SIZE   64

Definition at line 36 of file tlv_use_case_dynamic_descriptor.h.

Typedef Documentation

◆ tlv_dynamic_descriptor_out_t

◆ tlv_dynamic_descriptor_status_t

Enumeration Type Documentation

◆ tlv_dynamic_descriptor_status_e

Enumerator
TLV_DYNAMIC_DESCRIPTOR_SUCCESS 
TLV_DYNAMIC_DESCRIPTOR_PARSING_ERROR 
TLV_DYNAMIC_DESCRIPTOR_MISSING_STRUCTURE_TAG 
TLV_DYNAMIC_DESCRIPTOR_WRONG_TYPE 
TLV_DYNAMIC_DESCRIPTOR_MISSING_TAG 
TLV_DYNAMIC_DESCRIPTOR_WRONG_APPLICATION_NAME 
TLV_DYNAMIC_DESCRIPTOR_UNKNOWN_VERSION 
TLV_DYNAMIC_DESCRIPTOR_SIGNATURE_ERROR 

Definition at line 55 of file tlv_use_case_dynamic_descriptor.h.

Function Documentation

◆ tlv_use_case_dynamic_descriptor()

tlv_dynamic_descriptor_status_t tlv_use_case_dynamic_descriptor ( const buffer_t payload,
tlv_dynamic_descriptor_out_t out 
)

Processes a TLV dynamic descriptor use case.

This function parses the provided payload buffer and extracts dynamic descriptor information, storing the results in the output structure.

Parameters
[in]payloadPointer to the buffer containing the TLV payload data.
[out]outPointer to the structure where the parsed dynamic descriptor will be stored.
Returns
Status code indicating the result of the operation. See tlv_dynamic_descriptor_status_t for possible values.

Definition at line 119 of file tlv_use_case_dynamic_descriptor.c.